xref: /haiku/src/kits/package/Jamfile (revision a629567a9001547736cfe892cdf992be16868fed)
1SubDir HAIKU_TOP src kits package ;
2
3UsePrivateHeaders
4	app
5	kernel
6	shared
7	storage
8	support
9	;
10UsePrivateSystemHeaders ;
11
12HPKG_SOURCES =
13	AttributeDataReader.cpp
14	BlockBufferPool.cpp
15	BlockBufferPoolImpl.cpp
16	BlockBufferPoolNoLock.cpp
17	BufferPool.cpp
18	CommitTransactionResult.cpp
19	DataReader.cpp
20	ErrorOutput.cpp
21	FDDataReader.cpp
22	GlobalWritableFileInfo.cpp
23	HPKGDefs.cpp
24	PackageContentHandler.cpp
25	PackageData.cpp
26	PackageDataReader.cpp
27	PackageEntry.cpp
28	PackageEntryAttribute.cpp
29	PackageFileHeapAccessorBase.cpp
30	PackageFileHeapReader.cpp
31	PackageFileHeapWriter.cpp
32	PackageReader.cpp
33	PackageReaderImpl.cpp
34	PackageWriter.cpp
35	PackageWriterImpl.cpp
36	PoolBuffer.cpp
37	ReaderImplBase.cpp
38	RepositoryContentHandler.cpp
39	RepositoryReader.cpp
40	RepositoryReaderImpl.cpp
41	RepositoryWriter.cpp
42	RepositoryWriterImpl.cpp
43	Strings.cpp
44	UserSettingsFileInfo.cpp
45	WriterImplBase.cpp
46
47	# V1 support
48	HPKGDefsV1.cpp
49	PackageContentHandlerV1.cpp
50	PackageDataReaderV1.cpp
51	PackageDataV1.cpp
52	PackageEntryAttributeV1.cpp
53	PackageEntryV1.cpp
54	PackageInfoContentHandlerV1.cpp
55	PackageReaderImplV1.cpp
56	PackageReaderV1.cpp
57	ReaderImplBaseV1.cpp
58	;
59
60local architectureObject ;
61for architectureObject in [ MultiArchSubDirSetup ] {
62	on $(architectureObject) {
63		UseBuildFeatureHeaders curl ;
64
65		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg ] ;
66		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg v1 ] ;
67		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package manager ] ;
68		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package solver ] ;
69
70		Includes [ FGristFiles FetchFileJob.cpp ]
71			: [ BuildFeatureAttribute curl : headers ] ;
72		Includes [ FGristFiles InitTerminateLibPackage.cpp ]
73			: [ BuildFeatureAttribute curl : headers ] ;
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			InitTerminateLibPackage.cpp
89			InstallationLocationInfo.cpp
90			Job.cpp
91			JobQueue.cpp
92			PackageInfo.cpp
93			PackageInfoContentHandler.cpp
94			PackageInfoParser.cpp
95			PackageInfoSet.cpp
96			PackageResolvable.cpp
97			PackageResolvableExpression.cpp
98			PackageRoster.cpp
99			PackageVersion.cpp
100			PathFinder.cpp
101			RefreshRepositoryRequest.cpp
102			RemoveRepositoryJob.cpp
103			RepositoryCache.cpp
104			RepositoryConfig.cpp
105			RepositoryInfo.cpp
106			Request.cpp
107			TempfileManager.cpp
108			User.cpp
109			ValidateChecksumJob.cpp
110
111			$(HPKG_SOURCES)
112
113			# hpkg, but only libpackage
114			NoErrorOutput.cpp
115			StandardErrorOutput.cpp
116
117			# manager
118			Exceptions.cpp
119			PackageManager.cpp
120			RepositoryBuilder.cpp
121
122			# solver
123			Solver.cpp
124			SolverPackage.cpp
125			SolverPackageSpecifier.cpp
126			SolverPackageSpecifierList.cpp
127			SolverProblem.cpp
128			SolverProblemSolution.cpp
129			SolverRepository.cpp
130			SolverResult.cpp
131			:
132			[ MultiArchDefaultGristFiles libshared.a ]
133			be
134			[ BuildFeatureAttribute curl : library ]
135			$(TARGET_LIBSTDC++)
136			;
137	}
138}
139
140HaikuSubInclude solver ;
141