From 23bdc3d6369357f1ea05c5a22b983cdf763b253f Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 24 Jan 2019 13:29:45 -0500 Subject: [PATCH] HaikuDepot: Fix build of unit tests after last commit. --- src/apps/haikudepot/Jamfile | 28 +++++++--------------------- src/tests/apps/haikudepot/Jamfile | 5 +++++ 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/src/apps/haikudepot/Jamfile b/src/apps/haikudepot/Jamfile index e81dff6784..2a04c7ba49 100644 --- a/src/apps/haikudepot/Jamfile +++ b/src/apps/haikudepot/Jamfile @@ -5,22 +5,22 @@ include [ FDirName $(HAIKU_TOP) src apps haikudepot build jam UsePrivateHeaders interface kernel net package shared storage support ; -local generatedTargetDirectory = $(TARGET_COMMON_DEBUG_LOCATE_TARGET) ; +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 $(TARGET_COMMON_DEBUG_LOCATE_TARGET) + [ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY) dumpexportrepositorybulklistener ] ; local dumpExportPkgBulkListenerTargetDirectory = - [ FDirName $(TARGET_COMMON_DEBUG_LOCATE_TARGET) + [ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY) dumpexportpkgbulklistener ] ; local dumpExportPkgModelTargetDirectory = - [ FDirName $(TARGET_COMMON_DEBUG_LOCATE_TARGET) + [ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY) dumpexportpkgmodel ] ; local dumpExportRepositoryModelTargetDirectory = - [ FDirName $(TARGET_COMMON_DEBUG_LOCATE_TARGET) + [ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY) dumpexportrepositorymodel ] ; # During the build process, some sources are generated into a directory. In @@ -69,6 +69,7 @@ local textDocumentSources = EditManager.cpp EditStack.cpp UndoableEdit.cpp + # textview Bullet.cpp BulletData.cpp @@ -147,7 +148,7 @@ local applicationSources = TarArchiveHeader.cpp TarArchiveService.cpp - #util + # util AppUtils.cpp DataIOUtils.cpp RepositoryUrlUtils.cpp @@ -180,21 +181,6 @@ local generatedRepositoryParserSourceFiles = DumpExportRepositoryJsonListener.cpp ; -local generatedSourceFiles = - # network + server - model - DumpExportPkg.cpp - DumpExportPkgCategory.cpp - DumpExportPkgScreenshot.cpp - DumpExportPkgVersion.cpp - DumpExportRepository.cpp - DumpExportRepositorySource.cpp - DumpExportRepositorySourceMirror.cpp - - # network + server - parser - DumpExportPkgJsonListener.cpp - DumpExportRepositoryJsonListener.cpp -; - Application HaikuDepot : $(applicationSources) $(textDocumentSources) $(generatedPkgModelSourceFiles) $(generatedRepositoryModelSourceFiles) diff --git a/src/tests/apps/haikudepot/Jamfile b/src/tests/apps/haikudepot/Jamfile index 8b48efb43a..d0b9a0519e 100644 --- a/src/tests/apps/haikudepot/Jamfile +++ b/src/tests/apps/haikudepot/Jamfile @@ -18,11 +18,16 @@ local sourceDir ; for sourceDir in $(sourceDirs) { SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src apps haikudepot $(sourceDir) ] ; } +SEARCH_SOURCE += [ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY) + dumpexportrepositorybulklistener ] ; +SEARCH_SOURCE += [ FDirName $(HAIKUDEPOT_GENERATED_SOURCES_DIRECTORY) + dumpexportrepositorymodel ] ; UnitTestLib haikudepottest.so : HaikuDepotTestAddon.cpp DumpExportRepositorySource.cpp + DumpExportRepositorySourceMirror.cpp DumpExportRepository.cpp DumpExportRepositoryJsonListener.cpp DumpExportRepositoryJsonListenerTest.cpp