xref: /haiku/src/kits/package/Jamfile (revision d63ed5844d997a61afd7a6c4b7c9fad0dc01e9f3)
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			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
134			[ BuildFeatureAttribute curl : library ]
135			[ TargetLibstdc++ ]
136			$(TARGET_NETWORK_LIBS)
137			;
138	}
139}
140
141HaikuSubInclude solver ;
142