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