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