[M108 Migration] Fix WRTJS build errors 08/288908/4
authorSurya Kumar <surya.kumar7@samsung.com>
Fri, 24 Feb 2023 08:30:23 +0000 (14:00 +0530)
committerBot Blink <blinkbot@samsung.com>
Fri, 24 Feb 2023 15:50:19 +0000 (15:50 +0000)
This patch adds necessary changes to resolve dependency
errors occurring during various wrtjs profile builds.

Reference: https://review.tizen.org/gerrit/271777

Change-Id: I2a00b44c4d9b4d4b22d4c94462b3197ce1adf876
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
packaging/chromium-efl.spec [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index e8e97a4..49fb87b
@@ -236,6 +236,11 @@ BuildRequires: pkgconfig(capi-ui-inputmethod)
 BuildRequires: pkgconfig(privileged-service)
 %endif
 
+# node module is required for nmt and category public features.
+%if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?_with_da_profile}" != "1"
+%define _support_node_module 1
+%endif
+
 %description
 Browser Engine based on Chromium EFL (Shared Library)
 
@@ -487,6 +492,13 @@ install -m 0644 tizen_src/ewk/efl_webview_app/efl_webview_app.png %{buildroot}%{
 install -m 0644 "%{OUTPUT_FOLDER}"/pkgconfig/*.pc    "%{buildroot}"%{_libdir}/pkgconfig/
 install -m 0644 tizen_src/ewk/efl_integration/public/*.h                  "%{buildroot}"%{_includedir}/chromium-ewk/
 install -m 0644 v8/include/*.h "%{buildroot}"%{_includedir}/v8/
+install -d "%{buildroot}"%{_includedir}/v8/cppgc
+install -m 0644 v8/include/cppgc/common.h "%{buildroot}"%{_includedir}/v8/cppgc/
+
+%if 0%{?_support_node_module}
+install -d "%{buildroot}"%{_includedir}/node
+install -m 0644 third_party/electron_node/src/*.h "%{buildroot}"%{_includedir}/node/
+%endif
 
 install -m 0755 "%{OUTPUT_FOLDER}"/libminigbm.so   "%{buildroot}"%{_libdir}
 
@@ -721,6 +733,10 @@ setcap cap_mac_admin=eip %{_bindir}/wrt-service
 %{_libdir}/pkgconfig/*.pc
 %{_includedir}/v8/*
 
+%if 0%{?_support_node_module}
+%{_includedir}/node/*
+%endif
+
 %if 0%{?__enable_wrt_js}
   %{_includedir}/wrt/*
 %endif