1SubDir HAIKU_TOP src build libpackage ; 2 3UsePrivateBuildHeaders kernel package shared storage ; 4 5SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package ] ; 6SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg ] ; 7SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg v1 ] ; 8SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package solver ] ; 9 10USES_BE_API on libpackage_build.so = true ; 11 12 13{ 14 # The package writer needs to know where the license files are located. 15 local dataDir = [ FDirName $(HAIKU_TOP) data system data ] ; 16 local defines = [ FDefines 17 HAIKU_BUILD_SYSTEM_DATA_DIRECTORY="\\\"$(dataDir)\\\"" 18 ] ; 19 ObjectC++Flags PackageWriterImpl.cpp : $(defines) ; 20} 21 22 23HPKG_SOURCES = 24 AttributeDataReader.cpp 25 BlockBufferPool.cpp 26 BlockBufferPoolImpl.cpp 27 BlockBufferPoolNoLock.cpp 28 BufferPool.cpp 29 PoolBuffer.cpp 30 DataOutput.cpp 31 DataReader.cpp 32 DataWriters.cpp 33 ErrorOutput.cpp 34 FDDataReader.cpp 35 GlobalWritableFileInfo.cpp 36 HPKGDefs.cpp 37 PackageContentHandler.cpp 38 PackageData.cpp 39 PackageDataReader.cpp 40 PackageEntry.cpp 41 PackageEntryAttribute.cpp 42 PackageFileHeapAccessorBase.cpp 43 PackageFileHeapReader.cpp 44 PackageFileHeapWriter.cpp 45 PackageReader.cpp 46 PackageReaderImpl.cpp 47 PackageWriter.cpp 48 PackageWriterImpl.cpp 49 ReaderImplBase.cpp 50 RepositoryContentHandler.cpp 51 RepositoryReader.cpp 52 RepositoryReaderImpl.cpp 53 RepositoryWriter.cpp 54 RepositoryWriterImpl.cpp 55 Strings.cpp 56 UserSettingsFileInfo.cpp 57 WriterImplBase.cpp 58 59 # V1 support 60 HPKGDefsV1.cpp 61 PackageContentHandlerV1.cpp 62 PackageDataReaderV1.cpp 63 PackageDataV1.cpp 64 PackageEntryAttributeV1.cpp 65 PackageEntryV1.cpp 66 PackageInfoContentHandlerV1.cpp 67 PackageReaderImplV1.cpp 68 PackageReaderV1.cpp 69 ReaderImplBaseV1.cpp 70 71 # compression 72 ZlibCompressionBase.cpp 73 ZlibCompressor.cpp 74 ZlibDecompressor.cpp 75; 76 77# locate the library 78MakeLocate libpackage_build.so : $(HOST_BUILD_COMPATIBILITY_LIB_DIR) ; 79 80BuildPlatformSharedLibrary libpackage_build.so 81 : 82 ActivateRepositoryCacheJob.cpp 83 ActivateRepositoryConfigJob.cpp 84 ActivationTransaction.cpp 85 AddRepositoryRequest.cpp 86 Attributes.cpp 87 ChecksumAccessors.cpp 88 Context.cpp 89 DownloadFileRequest.cpp 90 DropRepositoryRequest.cpp 91 FetchFileJob.cpp 92 InstallationLocationInfo.cpp 93 Job.cpp 94 JobQueue.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 RefreshRepositoryRequest.cpp 104 RemoveRepositoryJob.cpp 105 RepositoryCache.cpp 106 RepositoryConfig.cpp 107 RepositoryInfo.cpp 108 Request.cpp 109 TempfileManager.cpp 110 User.cpp 111 ValidateChecksumJob.cpp 112 113 $(HPKG_SOURCES) 114 115 # hpkg, but only libpackage 116 NoErrorOutput.cpp 117 StandardErrorOutput.cpp 118 119 # solver 120 Solver.cpp 121 SolverPackage.cpp 122 SolverPackageSpecifier.cpp 123 SolverPackageSpecifierList.cpp 124 SolverProblem.cpp 125 SolverProblemSolution.cpp 126 SolverRepository.cpp 127 SolverResult.cpp 128 : 129 libshared_build.a $(HOST_LIBBE) z $(HOST_LIBSTDC++) 130; 131 132 133HaikuSubInclude solver ; 134