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