[M120 Migration][Emulator32] Add definition in emulator32 40/308940/4
authoruzair <uzair.jaleel@samsung.com>
Wed, 3 Apr 2024 05:08:53 +0000 (10:38 +0530)
committerBot Blink <blinkbot@samsung.com>
Thu, 4 Apr 2024 01:13:57 +0000 (01:13 +0000)
1. When repository is "emulator32", tizen_emulator_support is true.
2. Define TIZEN_EMULATOR_SUPPORT.
3. Also adds support for macro BUIDFLAG(IS_TIZEN_EMULATOR)

Reference Patch:
https://review.tizen.org/gerrit/#/c/273194

Change-Id: I7c8717b5f694d2444d3505745b5e353a4c0ec359
Signed-off-by: uzair <uzair.jaleel@samsung.com>
build/build_config.h
packaging/chromium-efl.spec
tizen_src/build/config/BUILD.gn
tizen_src/build/config/tizen_features.gni

index c368f65..7410373 100644 (file)
 #define BUILDFLAG_INTERNAL_IS_EFL() (0)
 #endif
 
+#if defined(TIZEN_EMULATOR_SUPPORT)
+#define BUILDFLAG_INTERNAL_IS_TIZEN_EMULATOR() (1)
+#else
+#define BUILDFLAG_INTERNAL_IS_TIZEN_EMULATOR() (0)
+#endif
+
 #if defined(OS_AIX)
 #define BUILDFLAG_INTERNAL_IS_AIX() (1)
 #else
index 31d62ab..a2934b7 100644 (file)
@@ -528,7 +528,7 @@ touch ./tizen_src/downloadable/ewk_api_wrapper_generator.py
 %if "%{?_with_wayland}" == "1"
   "use_wayland=true" \
 %endif
-%if "%{?_repository}" == "emulator" || "%{?_repository}" == "emulator32-x11"
+%if "%{?_repository}" == "emulator" || "%{?_repository}" == "emulator32-x11" || "%{?_repository}" == "emulator32"
   "tizen_emulator_support=true"  \
 %endif
 %if "%{?tizen_profile_name}" == "tv"
index 2742003..81937bb 100644 (file)
@@ -126,6 +126,10 @@ config("tizen_feature_flags") {
   }
 
   if (tizen_vd_lfd || tizen_vd_iwb) {
-    defines += ["TIZEN_VD_ENTERPRISE_FEATURE" ]
+    defines += [ "TIZEN_VD_ENTERPRISE_FEATURE" ]
+  }
+
+  if (tizen_emulator_support) {
+    defines += [ "TIZEN_EMULATOR_SUPPORT" ]
   }
 }
index 32ac689..46dcfe9 100644 (file)
@@ -56,6 +56,7 @@ declare_args() {
 
   enable_wrt_js = false
   tizen_atmos_decoder_enable = false
+  tizen_emulator_support = false
   tizen_pepper_extensions = false
 
   # Tizen multimedia related