SubDir HAIKU_TOP src apps haikudepot ;# disable -Werror for this directory onlySubDirC++Flags -Wno-error ;include [ FDirName $(SUBDIR) build jam HdsSchemaGenRules ] ;UsePrivateHeaders interface kernel net netservices package shared storage ;UsePrivateHeaders support locale ;HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY = $(TARGET_COMMON_DEBUG_LOCATE_TARGET) ;# During the build process, some sources are generated into directories. These# are the directories.local dumpExportRepositoryBulkListerTargetDirectory =[ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY)dumpexportrepositorybulklistener ] ;local dumpExportPkgBulkListenerTargetDirectory =[ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY)dumpexportpkgbulklistener ] ;local dumpExportReferenceListenerTargetDirectory =[ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY)dumpexportreferencelistener ] ;local dumpExportPkgModelTargetDirectory =[ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY)dumpexportpkgmodel ] ;local dumpExportRepositoryModelTargetDirectory =[ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY)dumpexportrepositorymodel ] ;local dumpExportReferenceModelTargetDirectory =[ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY)dumpexportreferencemodel ] ;# During the build process, some sources are generated into a directory. In# order to maintain a timestamp on that generation process, a dummy file is# used to signify the target of the generation. The leafname of this dummy file# is defined here.local dummyFile = "dummy.dat" ;local dumpExportRepositoryBulkListerTargetFile =[ FDirName $(dumpExportRepositoryBulkListerTargetDirectory) $(dummyFile) ] ;local dumpExportPkgBulkListenerTargetFile =[ FDirName $(dumpExportPkgBulkListenerTargetDirectory) $(dummyFile) ] ;local dumpExportReferenceListenerTargetFile =[ FDirName $(dumpExportReferenceListenerTargetDirectory) $(dummyFile) ] ;local dumpExportPkgModelTargetFile =[ FDirName $(dumpExportPkgModelTargetDirectory) $(dummyFile) ] ;local dumpExportRepositoryModelTargetFile =[ FDirName $(dumpExportRepositoryModelTargetDirectory) $(dummyFile) ] ;local dumpExportReferenceModelTargetFile =[ FDirName $(dumpExportReferenceModelTargetDirectory) $(dummyFile) ] ;# source directorieslocal sourceDirs =edits_genericiconmodelpackagemanagementpackagemodelprocesstextviewuiui_genericservertarutil;local sourceDir ;for sourceDir in $(sourceDirs) {SEARCH_SOURCE += [ FDirName $(SUBDIR) $(sourceDir) ] ;}SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src servers package ] ;SEARCH_SOURCE += $(dumpExportRepositoryBulkListerTargetDirectory) ;SEARCH_SOURCE += $(dumpExportPkgBulkListenerTargetDirectory) ;SEARCH_SOURCE += $(dumpExportReferenceListenerTargetDirectory) ;SEARCH_SOURCE += $(dumpExportPkgModelTargetDirectory) ;SEARCH_SOURCE += $(dumpExportRepositoryModelTargetDirectory) ;SEARCH_SOURCE += $(dumpExportReferenceModelTargetDirectory) ;local textDocumentSources =# edits_genericCompoundEdit.cppEditContext.cppEditManager.cppUndoableEdit.cpp# textviewBullet.cppBulletData.cppCharacterStyle.cppCharacterStyleData.cppMarkupParser.cppParagraph.cppParagraphLayout.cppParagraphStyle.cppParagraphStyleData.cppTextDocument.cppTextDocumentLayout.cppTextDocumentView.cppTextEditor.cppTextListener.cppTextSelection.cppTextSpan.cppTextView.cppUndoableEditListener.cpp;local applicationSources =App.cppAccessToken.cppBitmapHolder.cppBitmapView.cppCaptcha.cppCreateUserDetail.cppDecisionProvider.cppDeskbarLink.cppFeaturedPackagesView.cppFilterView.cppGeneralContentScrollView.cppIdentityAndAccessUtils.cppIncrementViewCounterProcess.cppJobStateListener.cppJwtTokenHelper.cppLinkView.cppLinkedBitmapView.cppLogger.cppmain.cppMainWindow.cppMarkupTextView.cppModel.cppPackageContentsView.cppPackageInfoListener.cppPackageInfoView.cppPackageListView.cppPackageScreenshotRepository.cppPasswordRequirements.cppRatePackageWindow.cppRatingView.cppRatingStability.cppRatingUtils.cppsupport.cppScreenshotWindow.cppScreenshotCoordinate.cppScrollableGroupView.cppSettingsWindow.cppSharedIcons.cppShuttingDownWindow.cppToLatestUserUsageConditionsWindow.cppUserCredentials.cppUserDetail.cppUserLoginWindow.cppUserUsageConditions.cppUserUsageConditionsWindow.cppValidationFailure.cppValidationUtils.cppWorkStatusView.cpp# iconIconTarPtr.cppPackageIconDefaultRepository.cppPackageIconTarRepository.cpp# packagemanagementAbstractPackageProcess.cppInstallPackageProcess.cppOpenPackageProcess.cppPackageAction.cppPackageManager.cppUninstallPackageProcess.cpp#packagemodelDepotInfo.cppLanguage.cppPackageCategory.cppPackageClassificationInfo.cppPackageCoreInfo.cppPackageFilter.cppPackageFilterSpecification.cppPackageInfo.cppPackageLocalInfo.cppPackageLocalizedText.cppPackagePublisherInfo.cppPackageScreenshotInfo.cppPackageUserRatingInfo.cppPackageVersion.cppScreenshotInfo.cppUserInfo.cppUserRating.cppUserRatingSummary.cpp# network + server / local processesAbstractProcess.cppAbstractProcessNode.cppAbstractServerProcess.cppAbstractSingleFileServerProcess.cppCacheScreenshotProcess.cppLocalPkgDataLoadProcess.cppLocalRepositoryUpdateProcess.cppPopulatePkgChangelogFromServerProcess.cppPopulatePkgSizesProcess.cppPopulatePkgUserRatingsFromServerProcess.cppProcessCoordinator.cppProcessCoordinatorFactory.cppServerHelper.cppServerSettings.cppServerPkgDataUpdateProcess.cppServerReferenceDataUpdateProcess.cppServerRepositoryDataUpdateProcess.cppServerIconExportUpdateProcess.cppStandardMetaDataJsonEventListener.cppStandardMetaData.cppThreadedProcessNode.cppUserDetailVerifierProcess.cppWebAppInterface.cpp# tarTarArchiveHeader.cppTarArchiveService.cpp# utilAppUtils.cppDataIOUtils.cppLanguageMenuUtils.cppLocaleUtils.cppPackageKitUtils.cppPackageUtils.cppStorageUtils.cppStringUtils.cpp# package_daemonProblemWindow.cppResultWindow.cpp;local generatedPkgModelSourceFiles =DumpExportPkg.cppDumpExportPkgCategory.cppDumpExportPkgScreenshot.cppDumpExportPkgVersion.cpp;local generatedRepositoryModelSourceFiles =DumpExportRepository.cppDumpExportRepositorySource.cppDumpExportRepositorySourceMirror.cpp;local generatedReferenceModelSourceFiles =DumpExportReference.cppDumpExportReferenceNaturalLanguage.cppDumpExportReferencePkgCategory.cppDumpExportReferenceUserRatingStability.cppDumpExportReferenceCountry.cpp;local generatedPkgParserSourceFiles =DumpExportPkgJsonListener.cpp;local generatedRepositoryParserSourceFiles =DumpExportRepositoryJsonListener.cpp;local generatedReferenceParserSourceFiles =DumpExportReferenceJsonListener.cpp;Application HaikuDepot:$(applicationSources)$(textDocumentSources)$(generatedPkgModelSourceFiles)$(generatedRepositoryModelSourceFiles)$(generatedReferenceModelSourceFiles)$(generatedPkgParserSourceFiles)$(generatedRepositoryParserSourceFiles)$(generatedReferenceParserSourceFiles):be package bnetapi translation libnetservices.a libcolumnlistview.a shared[ TargetLibstdc++ ] [ TargetLibsupc++ ] localestub:HaikuDepot.rdef;DoCatalogs HaikuDepot :x-vnd.Haiku-HaikuDepot:$(applicationSources);# The following use of rules configures the generation of .cpp and .h files from# JSON schemas that are defined in the HaikuDepotServer system. See the# included Jam rules and actions for the definitions.HdsSchemaGenModel $(dumpExportPkgModelTargetFile): dumpexportpkg.json : jsonschema2cppmodel.py ;HdsSchemaGenModel $(dumpExportRepositoryModelTargetFile): dumpexportrepository.json : jsonschema2cppmodel.py ;HdsSchemaGenModel $(dumpExportReferenceModelTargetFile): dumpexportreference.json : jsonschema2cppmodel.py ;HdsSchemaGenBulkParser $(dumpExportRepositoryBulkListerTargetFile): dumpexportrepository.json : jsonschema2cppparser.py ;HdsSchemaGenBulkParser $(dumpExportPkgBulkListenerTargetFile): dumpexportpkg.json : jsonschema2cppparser.py ;HdsSchemaGenParser $(dumpExportReferenceListenerTargetFile): dumpexportreference.json : jsonschema2cppparser.py ;HdsSchemaGenAppSrcDependsOnGeneration[ FGristFiles $(generatedPkgParserSourceFiles) ][ FGristFiles $(generatedPkgParserSourceFiles:S=.h) ]: $(dumpExportPkgBulkListenerTargetDirectory): $(dumpExportPkgBulkListenerTargetFile) ;HdsSchemaGenAppSrcDependsOnGeneration[ FGristFiles $(generatedRepositoryParserSourceFiles) ][ FGristFiles $(generatedRepositoryParserSourceFiles:S=.h) ]: $(dumpExportRepositoryBulkListerTargetDirectory): $(dumpExportRepositoryBulkListerTargetFile) ;HdsSchemaGenAppSrcDependsOnGeneration[ FGristFiles $(generatedReferenceParserSourceFiles) ][ FGristFiles $(generatedReferenceParserSourceFiles:S=.h) ]: $(dumpExportReferenceListenerTargetDirectory): $(dumpExportReferenceListenerTargetFile) ;HdsSchemaGenAppSrcDependsOnGeneration[ FGristFiles $(generatedRepositoryModelSourceFiles) ][ FGristFiles $(generatedRepositoryModelSourceFiles:S=.h) ]: $(dumpExportRepositoryModelTargetDirectory): $(dumpExportRepositoryModelTargetFile) ;HdsSchemaGenAppSrcDependsOnGeneration[ FGristFiles $(generatedPkgModelSourceFiles) ][ FGristFiles $(generatedPkgModelSourceFiles:S=.h) ]: $(dumpExportPkgModelTargetDirectory): $(dumpExportPkgModelTargetFile) ;HdsSchemaGenAppSrcDependsOnGeneration[ FGristFiles $(generatedReferenceModelSourceFiles) ][ FGristFiles $(generatedReferenceModelSourceFiles:S=.h) ]: $(dumpExportReferenceModelTargetDirectory): $(dumpExportReferenceModelTargetFile) ;# This will ensure that if any of the generated files' header files change, then# the application should be re-built.Includes [ FGristFiles $(applicationSources) ]:$(dumpExportRepositoryBulkListerTargetDirectory)$(dumpExportPkgBulkListenerTargetDirectory)$(dumpExportReferenceListenerTargetDirectory)$(dumpExportPkgModelTargetDirectory)$(dumpExportRepositoryModelTargetDirectory)$(dumpExportReferenceModelTargetDirectory);Depends [ FGristFiles $(applicationSources:S=.o) ]:[ FGristFiles $(generatedPkgParserSourceFiles:S=.h) ][ FGristFiles $(generatedPkgModelSourceFiles:S=.h) ][ FGristFiles $(generatedRepositoryParserSourceFiles:S=.h) ][ FGristFiles $(generatedRepositoryModelSourceFiles:S=.h) ][ FGristFiles $(generatedReferenceParserSourceFiles:S=.h) ][ FGristFiles $(generatedReferenceModelSourceFiles:S=.h) ];