1SubDir HAIKU_TOP src build libpackage ; 2 3UsePrivateBuildHeaders kernel shared ; 4 5SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package ] ; 6SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg ] ; 7 8USES_BE_API on libpackage_build.so = true ; 9 10 11{ 12 # The package writer needs to know where the license files are located. 13 local dataDir = [ FDirName $(HAIKU_TOP) data system data ] ; 14 local defines = [ FDefines 15 HAIKU_BUILD_SYSTEM_DATA_DIRECTORY="\\\"$(dataDir)\\\"" 16 ] ; 17 ObjectC++Flags PackageWriterImpl.cpp : $(defines) ; 18} 19 20 21HPKG_SOURCES = 22 AttributeDataReader.cpp 23 BlockBufferCache.cpp 24 BlockBufferCacheImpl.cpp 25 BufferCache.cpp 26 CachedBuffer.cpp 27 DataOutput.cpp 28 DataReader.cpp 29 ErrorOutput.cpp 30 FDDataReader.cpp 31 PackageContentHandler.cpp 32 PackageData.cpp 33 PackageDataReader.cpp 34 PackageEntry.cpp 35 PackageEntryAttribute.cpp 36 PackageReader.cpp 37 PackageReaderImpl.cpp 38 PackageWriter.cpp 39 PackageWriterImpl.cpp 40 ReaderImplBase.cpp 41 RepositoryReader.cpp 42 RepositoryReaderImpl.cpp 43 RepositoryWriter.cpp 44 RepositoryWriterImpl.cpp 45 Strings.cpp 46 WriterImplBase.cpp 47 48 # compression 49 ZlibCompressionBase.cpp 50 ZlibCompressor.cpp 51 ZlibDecompressor.cpp 52; 53 54# locate the library 55MakeLocate libpackage_build.so : $(HOST_BUILD_COMPATIBILITY_LIB_DIR) ; 56 57BuildPlatformSharedLibrary libpackage_build.so 58 : 59 ActivateRepositoryCacheJob.cpp 60 ActivateRepositoryConfigJob.cpp 61 AddRepositoryRequest.cpp 62 Attributes.cpp 63 BlockBufferCacheNoLock.cpp 64 ChecksumAccessors.cpp 65 Context.cpp 66 DropRepositoryRequest.cpp 67 FetchFileJob.cpp 68 Job.cpp 69 JobQueue.cpp 70 PackageInfo.cpp 71 PackageInfoContentHandler.cpp 72 PackageInfoSet.cpp 73 PackageResolvable.cpp 74 PackageResolvableExpression.cpp 75 PackageRoster.cpp 76 PackageVersion.cpp 77 RefreshRepositoryRequest.cpp 78 RemoveRepositoryJob.cpp 79 RepositoryCache.cpp 80 RepositoryConfig.cpp 81 RepositoryInfo.cpp 82 Request.cpp 83 TempfileManager.cpp 84 ValidateChecksumJob.cpp 85 86 $(HPKG_SOURCES) 87 : 88 libshared_build.a $(HOST_LIBBE) z $(HOST_LIBSTDC++) 89; 90