diff --git a/src/build/libpackage/solver/Jamfile b/src/build/libpackage/solver/Jamfile index 51e83eefea..d8d9e36066 100644 --- a/src/build/libpackage/solver/Jamfile +++ b/src/build/libpackage/solver/Jamfile @@ -10,7 +10,7 @@ UsePrivateHeaders shared ; USES_BE_API on libpackage-add-on-libsolv_build.so = true ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package solver ] ; - +SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package solver libsolv ] ; MakeLocate libpackage-add-on-libsolv_build.so : $(HOST_BUILD_COMPATIBILITY_LIB_DIR) ; @@ -24,6 +24,5 @@ BuildPlatformSharedLibrary libpackage-add-on-libsolv_build.so libbe_build.so $(HOST_LIBSTDC++) ; - Includes [ FGristFiles LibsolvSolver.cpp ] : [ BuildFeatureAttribute libsolv : headers ] ; diff --git a/src/kits/package/Jamfile b/src/kits/package/Jamfile index 9eb761ebe4..b4d2dce13a 100644 --- a/src/kits/package/Jamfile +++ b/src/kits/package/Jamfile @@ -71,10 +71,6 @@ for architectureObject in [ MultiArchSubDirSetup ] { SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package manager ] ; SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package solver ] ; - AddResources $(libsolv) : - LibsolvSolver.rdef - ; - SharedLibrary [ MultiArchDefaultGristFiles libpackage.so ] : ActivateRepositoryCacheJob.cpp diff --git a/src/kits/package/solver/Jamfile b/src/kits/package/solver/Jamfile index e4e75c28f6..004c374f85 100644 --- a/src/kits/package/solver/Jamfile +++ b/src/kits/package/solver/Jamfile @@ -1,41 +1,10 @@ SubDir HAIKU_TOP src kits package solver ; -# add-on implementing a libsolv based BSolver - -local architectureObject ; -for architectureObject in [ MultiArchSubDirSetup ] { - on $(architectureObject) { - - UseBuildFeatureHeaders libsolv ; - - local libsolvHeaders - = [ BuildFeatureAttribute libsolv : headers : path ] ; - UseHeaders [ FDirName $(libsolvHeaders) solv ] ; - - AddResources $(libsolv) : - LibsolvSolver.rdef - ; - - UsePrivateHeaders shared ; - - SharedLibrary - [ MultiArchDefaultGristFiles libpackage-add-on-libsolv.so ] - : - LibsolvSolver.cpp - : - package - [ BuildFeatureAttribute libsolv : libraries ] - be [ TargetLibstdc++ ] - ; - - Includes [ FGristFiles LibsolvSolver.cpp ] - : [ BuildFeatureAttribute libsolv : headers ] ; - } -} - DoCatalogs libsolv : x-vnd.Haiku-libsolvsolver : SolverProblem.cpp SolverProblemSolution.cpp ; + +HaikuSubInclude libsolv ; diff --git a/src/kits/package/solver/libsolv/Jamfile b/src/kits/package/solver/libsolv/Jamfile new file mode 100644 index 0000000000..67a673ebd5 --- /dev/null +++ b/src/kits/package/solver/libsolv/Jamfile @@ -0,0 +1,34 @@ +SubDir HAIKU_TOP src kits package solver libsolv ; + +# add-on implementing a libsolv based BSolver + +local architectureObject ; +for architectureObject in [ MultiArchSubDirSetup ] { + on $(architectureObject) { + + UseBuildFeatureHeaders libsolv ; + + local libsolvHeaders + = [ BuildFeatureAttribute libsolv : headers : path ] ; + UseHeaders [ FDirName $(libsolvHeaders) solv ] ; + + AddResources $(libsolv) : + LibsolvSolver.rdef + ; + + UsePrivateHeaders shared ; + + SharedLibrary + [ MultiArchDefaultGristFiles libpackage-add-on-libsolv.so ] + : + LibsolvSolver.cpp + : + package + [ BuildFeatureAttribute libsolv : libraries ] + be [ TargetLibstdc++ ] + ; + + Includes [ FGristFiles LibsolvSolver.cpp ] + : [ BuildFeatureAttribute libsolv : headers ] ; + } +} diff --git a/src/kits/package/solver/LibsolvSolver.cpp b/src/kits/package/solver/libsolv/LibsolvSolver.cpp similarity index 100% rename from src/kits/package/solver/LibsolvSolver.cpp rename to src/kits/package/solver/libsolv/LibsolvSolver.cpp diff --git a/src/kits/package/solver/LibsolvSolver.h b/src/kits/package/solver/libsolv/LibsolvSolver.h similarity index 100% rename from src/kits/package/solver/LibsolvSolver.h rename to src/kits/package/solver/libsolv/LibsolvSolver.h diff --git a/src/kits/package/solver/LibsolvSolver.rdef b/src/kits/package/solver/libsolv/LibsolvSolver.rdef similarity index 100% rename from src/kits/package/solver/LibsolvSolver.rdef rename to src/kits/package/solver/libsolv/LibsolvSolver.rdef