1SubDir HAIKU_TOP src kits package ; 2 3AddResources libpackage.so : libpackage.rdef ; 4 5UsePrivateHeaders 6 app 7 kernel 8 shared 9 libroot 10 storage 11 support 12 ; 13UsePrivateSystemHeaders ; 14 15HPKG_SOURCES = 16 AttributeDataReader.cpp 17 BlockBufferPool.cpp 18 BlockBufferPoolImpl.cpp 19 BlockBufferPoolNoLock.cpp 20 BufferPool.cpp 21 CommitTransactionResult.cpp 22 DataReader.cpp 23 ErrorOutput.cpp 24 FDDataReader.cpp 25 GlobalWritableFileInfo.cpp 26 HPKGDefs.cpp 27 PackageContentHandler.cpp 28 PackageData.cpp 29 PackageDataReader.cpp 30 PackageEntry.cpp 31 PackageEntryAttribute.cpp 32 PackageFileHeapAccessorBase.cpp 33 PackageFileHeapReader.cpp 34 PackageFileHeapWriter.cpp 35 PackageReader.cpp 36 PackageReaderImpl.cpp 37 PackageWriter.cpp 38 PackageWriterImpl.cpp 39 PoolBuffer.cpp 40 ReaderImplBase.cpp 41 RepositoryContentHandler.cpp 42 RepositoryReader.cpp 43 RepositoryReaderImpl.cpp 44 RepositoryWriter.cpp 45 RepositoryWriterImpl.cpp 46 Strings.cpp 47 UserSettingsFileInfo.cpp 48 WriterImplBase.cpp 49 50 # V1 support 51 HPKGDefsV1.cpp 52 PackageContentHandlerV1.cpp 53 PackageDataReaderV1.cpp 54 PackageDataV1.cpp 55 PackageEntryAttributeV1.cpp 56 PackageEntryV1.cpp 57 PackageInfoContentHandlerV1.cpp 58 PackageReaderImplV1.cpp 59 PackageReaderV1.cpp 60 ReaderImplBaseV1.cpp 61 ; 62 63local architectureObject ; 64for architectureObject in [ MultiArchSubDirSetup ] { 65 on $(architectureObject) { 66 if [ FIsBuildFeatureEnabled zstd ] { 67 SubDirC++Flags -DZSTD_ENABLED ; 68 } 69 SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg ] ; 70 SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg v1 ] ; 71 SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package manager ] ; 72 SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package solver ] ; 73 74 AddResources $(libsolv) : 75 LibsolvSolver.rdef 76 ; 77 78 SharedLibrary [ MultiArchDefaultGristFiles libpackage.so ] 79 : 80 ActivateRepositoryCacheJob.cpp 81 ActivateRepositoryConfigJob.cpp 82 ActivationTransaction.cpp 83 AddRepositoryRequest.cpp 84 Attributes.cpp 85 ChecksumAccessors.cpp 86 Context.cpp 87 DaemonClient.cpp 88 DownloadFileRequest.cpp 89 DropRepositoryRequest.cpp 90 FetchFileJob.cpp 91 InstallationLocationInfo.cpp 92 Job.cpp 93 PackageInfo.cpp 94 PackageInfoContentHandler.cpp 95 PackageInfoParser.cpp 96 PackageInfoSet.cpp 97 PackageResolvable.cpp 98 PackageResolvableExpression.cpp 99 PackageRoster.cpp 100 PackageVersion.cpp 101 PathFinder.cpp 102 RefreshRepositoryRequest.cpp 103 RemoveRepositoryJob.cpp 104 RepositoryCache.cpp 105 RepositoryConfig.cpp 106 RepositoryInfo.cpp 107 Request.cpp 108 TempfileManager.cpp 109 User.cpp 110 ValidateChecksumJob.cpp 111 112 $(HPKG_SOURCES) 113 114 # hpkg, but only libpackage 115 NoErrorOutput.cpp 116 StandardErrorOutput.cpp 117 118 # manager 119 Exceptions.cpp 120 PackageManager.cpp 121 RepositoryBuilder.cpp 122 123 # solver 124 Solver.cpp 125 SolverPackage.cpp 126 SolverPackageSpecifier.cpp 127 SolverPackageSpecifierList.cpp 128 SolverProblem.cpp 129 SolverProblemSolution.cpp 130 SolverRepository.cpp 131 SolverResult.cpp 132 : 133 shared 134 bnetapi 135 be localestub 136 [ TargetLibstdc++ ] 137 $(TARGET_NETWORK_LIBS) 138 ; 139 } 140} 141 142 143SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package manager ] ; 144 145DoCatalogs libpackage.so : 146 x-vnd.Haiku-libpackage 147 : 148 PackageManager.cpp 149 RefreshRepositoryRequest.cpp 150; 151 152HaikuSubInclude solver ; 153