xref: /haiku/src/add-ons/kernel/file_systems/packagefs/Jamfile (revision f73f5d4c42a01ece688cbb57b5d332cc0f68b2c6)
1SubDir HAIKU_TOP src add-ons kernel file_systems packagefs ;
2
3
4UseBuildFeatureHeaders zlib ;
5UsePrivateKernelHeaders ;
6UsePrivateHeaders package shared storage ;
7
8
9local subDirs =
10	indices
11	nodes
12	package
13	package_links
14	resolvables
15	util
16	volume
17;
18SEARCH_SOURCE += $(subDirs:D=$(SUBDIR)) ;
19
20
21HAIKU_PACKAGE_FS_SOURCES =
22	AttributeCookie.cpp
23	AttributeDirectoryCookie.cpp
24	AttributeIndex.cpp
25	AutoPackageAttributes.cpp
26	BlockBufferPoolKernel.cpp
27	CachedDataReader.cpp
28	DebugSupport.cpp
29	Dependency.cpp
30	Directory.cpp
31	EmptyAttributeDirectoryCookie.cpp
32	GlobalFactory.cpp
33	Index.cpp
34	IndexedAttributeOwner.cpp
35	kernel_interface.cpp
36	LastModifiedIndex.cpp
37	NameIndex.cpp
38	Node.cpp
39	NodeListener.cpp
40	OldUnpackingNodeAttributes.cpp
41	Query.cpp
42	Package.cpp
43	PackageDirectory.cpp
44	PackageFile.cpp
45	PackageFSRoot.cpp
46	PackageLeafNode.cpp
47	PackageLinkDirectory.cpp
48	PackageLinksDirectory.cpp
49	PackageLinksListener.cpp
50	PackageLinkSymlink.cpp
51	PackageNode.cpp
52	PackageNodeAttribute.cpp
53	PackageSymlink.cpp
54	Resolvable.cpp
55	ResolvableFamily.cpp
56	SizeIndex.cpp
57	String.cpp
58	StringConstants.cpp
59	StringPool.cpp
60	UnpackingAttributeCookie.cpp
61	UnpackingAttributeDirectoryCookie.cpp
62	UnpackingDirectory.cpp
63	UnpackingLeafNode.cpp
64	UnpackingNode.cpp
65	Version.cpp
66	Volume.cpp
67;
68
69HAIKU_PACKAGE_FS_SHARED_SOURCES =
70	QueryParserUtils.cpp
71;
72
73HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES =
74	BlockBufferPoolImpl.cpp
75	BufferPool.cpp
76	DataOutput.cpp
77	DataReader.cpp
78	ErrorOutput.cpp
79	FDDataReader.cpp
80	HPKGDefs.cpp
81	PoolBuffer.cpp
82	PackageContentHandler.cpp
83	PackageData.cpp
84	PackageDataReader.cpp
85	PackageEntry.cpp
86	PackageEntryAttribute.cpp
87	PackageFileHeapAccessorBase.cpp
88	PackageFileHeapReader.cpp
89	PackageReaderImpl.cpp
90	ReaderImplBase.cpp
91
92	# compression
93	ZlibCompressionBase.cpp
94	ZlibDecompressor.cpp
95;
96
97HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES_V1 =
98	HPKGDefsV1.cpp
99	PackageContentHandlerV1.cpp
100	PackageDataV1.cpp
101	PackageDataReaderV1.cpp
102	PackageEntryV1.cpp
103	PackageEntryAttributeV1.cpp
104	PackageReaderImplV1.cpp
105	ReaderImplBaseV1.cpp
106;
107
108Includes
109	[ FGristFiles $(HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES)
110		$(HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES_V1) ]
111	: [ BuildFeatureAttribute zlib : headers ] ;
112
113local libSharedSources =
114	NaturalCompare.cpp
115;
116
117
118KernelAddon packagefs
119	:
120	$(HAIKU_PACKAGE_FS_SOURCES)
121	$(HAIKU_PACKAGE_FS_SHARED_SOURCES)
122	$(HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES)
123	$(HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES_V1)
124	$(libSharedSources)
125
126	: $(TARGET_KERNEL_LIBSUPC++) kernel_libz.a
127;
128
129
130SEARCH on [ FGristFiles $(HAIKU_PACKAGE_FS_SHARED_SOURCES) ]
131	+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;
132SEARCH on [ FGristFiles $(HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES) ]
133	+= [ FDirName $(HAIKU_TOP) src kits package hpkg ] ;
134SEARCH on [ FGristFiles $(HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES_V1) ]
135	+= [ FDirName $(HAIKU_TOP) src kits package hpkg v1 ] ;
136SEARCH on [ FGristFiles $(libSharedSources) ]
137	+= [ FDirName $(HAIKU_TOP) src kits shared ] ;
138