Add dependency to capi-base-common 46/319046/3 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.231851 accepted/tizen/unified/20241017.114749 accepted/tizen/unified/toolchain/20241022.122454 accepted/tizen/unified/toolchain/20241022.122925 accepted/tizen/unified/x/20241017.170349 accepted/tizen/unified/x/asan/20241022.113457 tizen_9.0_m2_release
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 14 Oct 2024 07:42:32 +0000 (16:42 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 15 Oct 2024 01:04:44 +0000 (10:04 +0900)
It is required for the header tizen.h and enums such as TIZEN_ERROR_*
defined at the header. Those are accessible by the dependency to the
capi-base-common, which is currently pulled in by the dlog. However,
some build environment lack of such indirect dependency would blame
this. Therefore explicitly state the dependency.

Change-Id: I215b2eb2b16bbb931e7565d0d1adb436a425a6d0
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
packaging/hal-api-common.spec
tests/haltests/CMakeLists.txt
tests/unittest/CMakeLists.txt

index d49acc23f1361369ba19b1b4dd211b8002ecc61b..aba731c65069ac0ef44d21e4886862a27a8203bf 100644 (file)
@@ -30,6 +30,7 @@ BuildRequires: pkgconfig(glib-2.0)
 BuildRequires: pkgconfig(libxml-2.0)
 BuildRequires: pkgconfig(gmock)
 BuildRequires: pkgconfig(systemd)
+BuildRequires: pkgconfig(capi-base-common)
 
 %description
 %{name} interface
index f76d3e2e8c2147e4b833f33366313f685c0e94eb..8d572f6bb1b33ab3a33511385eb9f39abdd5f5a9 100644 (file)
@@ -11,7 +11,7 @@ TARGET_INCLUDE_DIRECTORIES(${HAL_COMMON_HALTEST} PUBLIC
 )
 
 INCLUDE(FindPkgConfig)
-pkg_check_modules(common-haltests_pkgs REQUIRED gmock)
+pkg_check_modules(common-haltests_pkgs REQUIRED gmock capi-base-common)
 
 FOREACH(flag ${common-haltests_pkgs_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
index 0cb85198b26102f31502e97418bd158af3859c49..13a3240483a82ec89b2fc9e14741e384465a9528 100644 (file)
@@ -14,7 +14,7 @@ TARGET_INCLUDE_DIRECTORIES(${HAL_API_COMMON_UNITTEST} PUBLIC
 )
 
 INCLUDE(FindPkgConfig)
-pkg_check_modules(hal_api_common_unittest_pkgs REQUIRED gmock glib-2.0 libxml-2.0)
+pkg_check_modules(hal_api_common_unittest_pkgs REQUIRED gmock glib-2.0 libxml-2.0 capi-base-common)
 
 FOREACH(flag ${hal_api_common_unittest_pkgs_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")