xref: /haiku/src/kits/package/solver/libsolv/Jamfile (revision 909af08f4328301fbdef1ffb41f566c3b5bec0c7)
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		UseHeaders [ FDirName $(HAIKU_TOP) src libs libsolv ] : true ;
10		UseHeaders [ FDirName $(HAIKU_TOP) src libs libsolv solv ] ;
11		UsePrivateHeaders shared ;
12
13		AddResources $(libsolv) :
14			LibsolvSolver.rdef
15			;
16
17		SharedLibrary
18			[ MultiArchDefaultGristFiles libpackage-add-on-libsolv.so ]
19			:
20			LibsolvSolver.cpp
21			:
22			package
23			[ MultiArchDefaultGristFiles libsolv.a libsolvext.a ]
24			be [ TargetLibstdc++ ]
25		;
26
27		if $(TARGET_PACKAGING_ARCH) != x86_gcc2 {
28			# External headers use the C++20 reserved keyword `requires`
29			ObjectC++Flags LibsolvSolver.cpp : -Wno-error=c++20-compat ;
30		}
31	}
32}
33