From ed50e085f2f8fb16dc1fda9dd0ea4ec3924db500 Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Fri, 24 Mar 2023 12:54:38 +0100 Subject: [PATCH] TMSS-2261: tweaked/trimmed dependencies to reduce build time --- MAC/Services/CMakeLists.txt | 8 +++++++- SAS/TMSS/backend/CMakeLists.txt | 2 +- SAS/TMSS/backend/services/tmss_ra_adapter/CMakeLists.txt | 2 +- SAS/TMSS/backend/src/CMakeLists.txt | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/MAC/Services/CMakeLists.txt b/MAC/Services/CMakeLists.txt index 5a28a358a0b..871ed340d96 100644 --- a/MAC/Services/CMakeLists.txt +++ b/MAC/Services/CMakeLists.txt @@ -1,7 +1,13 @@ # $Id$ -lofar_package(MAC_Services 1.0 DEPENDS PyMessaging OTDB_Services pyparameterset Docker ResourceAssignmentService TBBService TMSSClient) +if(BUILD_TESTING) + lofar_package(MAC_Services 1.0 DEPENDS PyMessaging OTDB_Services pyparameterset Docker ResourceAssignmentService TBBService TMSSBackend) +ELSE() + lofar_package(MAC_Services 1.0 DEPENDS PyMessaging OTDB_Services pyparameterset Docker ResourceAssignmentService TBBService TMSSClient) +ENDIF(BUILD_TESTING) add_subdirectory(src) add_subdirectory(test) lofar_add_package(TBBService TBB) + + diff --git a/SAS/TMSS/backend/CMakeLists.txt b/SAS/TMSS/backend/CMakeLists.txt index 23c473ab1fd..d3c28206941 100644 --- a/SAS/TMSS/backend/CMakeLists.txt +++ b/SAS/TMSS/backend/CMakeLists.txt @@ -1,4 +1,4 @@ -lofar_package(TMSSBackend 0.1 DEPENDS TMSSClient PyCommon pyparameterset PyMessaging MAC_Services sip PyStationModel) +lofar_package(TMSSBackend 0.1 DEPENDS TMSSClient PyCommon pyparameterset PyMessaging sip PyStationModel) lofar_add_package(TMSSBackendLibs src) add_subdirectory(test) diff --git a/SAS/TMSS/backend/services/tmss_ra_adapter/CMakeLists.txt b/SAS/TMSS/backend/services/tmss_ra_adapter/CMakeLists.txt index 790488c1d50..e438befc54e 100644 --- a/SAS/TMSS/backend/services/tmss_ra_adapter/CMakeLists.txt +++ b/SAS/TMSS/backend/services/tmss_ra_adapter/CMakeLists.txt @@ -1,4 +1,4 @@ -lofar_package(TMSSRAAdapter 0.1 DEPENDS TMSSClient ResourceAssigner) +lofar_package(TMSSRAAdapter 0.1 DEPENDS TMSSClient RATaskSpecifiedService) add_subdirectory(lib) add_subdirectory(bin) diff --git a/SAS/TMSS/backend/src/CMakeLists.txt b/SAS/TMSS/backend/src/CMakeLists.txt index 5244300fe48..10fe3f7a4f9 100644 --- a/SAS/TMSS/backend/src/CMakeLists.txt +++ b/SAS/TMSS/backend/src/CMakeLists.txt @@ -1,4 +1,4 @@ -lofar_package(TMSSBackendLibs 0.1 DEPENDS TMSSClient PyCommon pyparameterset PyMessaging MAC_Services sip PyStationModel) +lofar_package(TMSSBackendLibs 0.1 DEPENDS TMSSClient PyCommon pyparameterset PyMessaging sip PyStationModel) set(USE_PYTHON_COMPILATION Off) lofar_find_package(PythonInterp 3.5 REQUIRED) -- GitLab