1SubDir HAIKU_TOP src kits package solver libsolv ; 2 3# add-on implementing a libsolv based BSolver 4 5local architectureObject ; 6for architectureObject in [ MultiArchSubDirSetup ] { 7 on $(architectureObject) { 8 9 UseBuildFeatureHeaders libsolv ; 10 11 local libsolvHeaders 12 = [ BuildFeatureAttribute libsolv : headers : path ] ; 13 UseHeaders [ FDirName $(libsolvHeaders) solv ] ; 14 15 AddResources $(libsolv) : 16 LibsolvSolver.rdef 17 ; 18 19 UsePrivateHeaders shared ; 20 21 SharedLibrary 22 [ MultiArchDefaultGristFiles libpackage-add-on-libsolv.so ] 23 : 24 LibsolvSolver.cpp 25 : 26 package 27 [ BuildFeatureAttribute libsolv : libraries ] 28 be [ TargetLibstdc++ ] 29 ; 30 31 if $(TARGET_PACKAGING_ARCH) != x86_gcc2 { 32 # External headers use the C++20 reserved keyword `requires` 33 ObjectC++Flags LibsolvSolver.cpp : -Wno-error=c++20-compat ; 34 } 35 36 Includes [ FGristFiles LibsolvSolver.cpp ] 37 : [ BuildFeatureAttribute libsolv : headers ] ; 38 } 39} 40