xref: /haiku/src/kits/package/Jamfile (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1SubDir HAIKU_TOP src kits package ;
2
3AddResources libpackage.so : libpackage.rdef ;
4
5UsePrivateHeaders
6	app
7	kernel
8	netservices
9	shared
10	libroot
11	storage
12	support
13	;
14UsePrivateSystemHeaders ;
15
16HPKG_SOURCES =
17	AttributeDataReader.cpp
18	BlockBufferPool.cpp
19	BlockBufferPoolImpl.cpp
20	BlockBufferPoolNoLock.cpp
21	BufferPool.cpp
22	CommitTransactionResult.cpp
23	DataReader.cpp
24	ErrorOutput.cpp
25	FDDataReader.cpp
26	GlobalWritableFileInfo.cpp
27	HPKGDefs.cpp
28	PackageContentHandler.cpp
29	PackageData.cpp
30	PackageDataReader.cpp
31	PackageEntry.cpp
32	PackageEntryAttribute.cpp
33	PackageFileHeapAccessorBase.cpp
34	PackageFileHeapReader.cpp
35	PackageFileHeapWriter.cpp
36	PackageReader.cpp
37	PackageReaderImpl.cpp
38	PackageWriter.cpp
39	PackageWriterImpl.cpp
40	PoolBuffer.cpp
41	ReaderImplBase.cpp
42	RepositoryContentHandler.cpp
43	RepositoryReader.cpp
44	RepositoryReaderImpl.cpp
45	RepositoryWriter.cpp
46	RepositoryWriterImpl.cpp
47	Strings.cpp
48	UserSettingsFileInfo.cpp
49	WriterImplBase.cpp
50
51	# V1 support
52	HPKGDefsV1.cpp
53	PackageContentHandlerV1.cpp
54	PackageDataReaderV1.cpp
55	PackageDataV1.cpp
56	PackageEntryAttributeV1.cpp
57	PackageEntryV1.cpp
58	PackageInfoContentHandlerV1.cpp
59	PackageReaderImplV1.cpp
60	PackageReaderV1.cpp
61	ReaderImplBaseV1.cpp
62	;
63
64local architectureObject ;
65for architectureObject in [ MultiArchSubDirSetup ] {
66	on $(architectureObject) {
67		if [ FIsBuildFeatureEnabled zstd ] {
68			SubDirC++Flags -DZSTD_ENABLED ;
69		}
70		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg ] ;
71		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg v1 ] ;
72		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package manager ] ;
73		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package solver ] ;
74
75		SharedLibrary [ MultiArchDefaultGristFiles libpackage.so ]
76			:
77			ActivateRepositoryCacheJob.cpp
78			ActivateRepositoryConfigJob.cpp
79			ActivationTransaction.cpp
80			AddRepositoryRequest.cpp
81			Attributes.cpp
82			ChecksumAccessors.cpp
83			Context.cpp
84			DaemonClient.cpp
85			DownloadFileRequest.cpp
86			DropRepositoryRequest.cpp
87			FetchFileJob.cpp
88			FetchUtils.cpp
89			InstallationLocationInfo.cpp
90			Job.cpp
91			PackageInfo.cpp
92			PackageInfoContentHandler.cpp
93			PackageInfoParser.cpp
94			PackageInfoSet.cpp
95			PackageResolvable.cpp
96			PackageResolvableExpression.cpp
97			PackageRoster.cpp
98			PackageVersion.cpp
99			PathFinder.cpp
100			RefreshRepositoryRequest.cpp
101			RemoveRepositoryJob.cpp
102			RepositoryCache.cpp
103			RepositoryConfig.cpp
104			RepositoryInfo.cpp
105			Request.cpp
106			TempfileManager.cpp
107			User.cpp
108			ValidateChecksumJob.cpp
109
110			$(HPKG_SOURCES)
111
112			# hpkg, but only libpackage
113			NoErrorOutput.cpp
114			StandardErrorOutput.cpp
115
116			# manager
117			Exceptions.cpp
118			PackageManager.cpp
119			RepositoryBuilder.cpp
120
121			# solver
122			Solver.cpp
123			SolverPackage.cpp
124			SolverPackageSpecifier.cpp
125			SolverPackageSpecifierList.cpp
126			SolverProblem.cpp
127			SolverProblemSolution.cpp
128			SolverRepository.cpp
129			SolverResult.cpp
130			:
131			shared
132			bnetapi
133			be localestub
134			[ MultiArchDefaultGristFiles libnetservices.a ]
135			[ TargetLibstdc++ ]
136			$(TARGET_NETWORK_LIBS)
137			;
138	}
139}
140
141
142SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package manager ] ;
143
144DoCatalogs libpackage.so :
145	x-vnd.Haiku-libpackage
146	:
147	PackageManager.cpp
148	RefreshRepositoryRequest.cpp
149;
150
151HaikuSubInclude solver ;
152