xref: /haiku/src/kits/package/Jamfile (revision 6889394848e2dc9f41ff53b12141d572822ca0c6)
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		AddResources $(libsolv) :
76			LibsolvSolver.rdef
77			;
78
79		SharedLibrary [ MultiArchDefaultGristFiles libpackage.so ]
80			:
81			ActivateRepositoryCacheJob.cpp
82			ActivateRepositoryConfigJob.cpp
83			ActivationTransaction.cpp
84			AddRepositoryRequest.cpp
85			Attributes.cpp
86			ChecksumAccessors.cpp
87			Context.cpp
88			DaemonClient.cpp
89			DownloadFileRequest.cpp
90			DropRepositoryRequest.cpp
91			FetchFileJob.cpp
92			InitTerminateLibPackage.cpp
93			InstallationLocationInfo.cpp
94			Job.cpp
95			PackageInfo.cpp
96			PackageInfoContentHandler.cpp
97			PackageInfoParser.cpp
98			PackageInfoSet.cpp
99			PackageResolvable.cpp
100			PackageResolvableExpression.cpp
101			PackageRoster.cpp
102			PackageVersion.cpp
103			PathFinder.cpp
104			RefreshRepositoryRequest.cpp
105			RemoveRepositoryJob.cpp
106			RepositoryCache.cpp
107			RepositoryConfig.cpp
108			RepositoryInfo.cpp
109			Request.cpp
110			TempfileManager.cpp
111			User.cpp
112			ValidateChecksumJob.cpp
113
114			$(HPKG_SOURCES)
115
116			# hpkg, but only libpackage
117			NoErrorOutput.cpp
118			StandardErrorOutput.cpp
119
120			# manager
121			Exceptions.cpp
122			PackageManager.cpp
123			RepositoryBuilder.cpp
124
125			# solver
126			Solver.cpp
127			SolverPackage.cpp
128			SolverPackageSpecifier.cpp
129			SolverPackageSpecifierList.cpp
130			SolverProblem.cpp
131			SolverProblemSolution.cpp
132			SolverRepository.cpp
133			SolverResult.cpp
134			:
135			shared
136			bnetapi
137			be localestub
138			[ BuildFeatureAttribute curl : library ]
139			[ TargetLibstdc++ ]
140			$(TARGET_NETWORK_LIBS)
141			;
142	}
143}
144
145HaikuSubInclude solver ;
146