Fix desktop build error on Ubuntu 22.04 87/306387/3
authorGajendra N <gajendra.n@samsung.com>
Wed, 21 Feb 2024 04:15:05 +0000 (09:45 +0530)
committerGajendra N <gajendra.n@samsung.com>
Wed, 21 Feb 2024 04:39:03 +0000 (10:09 +0530)
Error:
Package 'atspi-2' requires 'glib-2.0 >= 2.62.0' but version of glib-2.0 is 2.40.2
Could not run pkg-config.

System's atspi-2 package version is newer on Ubuntu 22.04 which is not compatible
with the older glib version listed in jhbuild. Since atk is not needed for desktop
build, place the related pkg-configs under is_tizen guard.

Change-Id: I77c8d686af36e6fcbf1e555d109b6a1473e1752d
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
tizen_src/build/BUILD.gn

index b71fe1e..c57dcd9 100644 (file)
@@ -95,20 +95,22 @@ tizen_pkg_config("libecore-evas") {
 config("ecore-evas-public") {
 }
 
-config("atk") {
-  ldflags = [ "-latk-1.0" ]
-}
+if (is_tizen) {
+  config("atk") {
+    ldflags = [ "-latk-1.0" ]
+  }
 
-tizen_pkg_config("libatk") {
-  packages = [ "atk" ]
-}
+  tizen_pkg_config("libatk") {
+    packages = [ "atk" ]
+  }
 
-config("atk-bridge") {
-  ldflags = [ "-latk-bridge-2.0" ]
-}
+  config("atk-bridge") {
+    ldflags = [ "-latk-bridge-2.0" ]
+  }
 
-tizen_pkg_config("libatk-bridge") {
-  packages = [ "atk-bridge-2.0" ]
+  tizen_pkg_config("libatk-bridge") {
+    packages = [ "atk-bridge-2.0" ]
+  }
 }
 
 config("eldbus") {