xref: /haiku/src/kits/package/solver/libsolv/Jamfile (revision cbe0a0c436162d78cc3f92a305b64918c839d079)
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		Includes [ FGristFiles LibsolvSolver.cpp ]
32			: [ BuildFeatureAttribute libsolv : headers ] ;
33	}
34}
35