[VD] Do not add NextBrowser(Chrome Browser) bin files to squashfs img 11/318511/2
authorSugyum Kim <su.g.kim@samsung.com>
Tue, 1 Oct 2024 07:02:51 +0000 (16:02 +0900)
committerSugyum Kim <su.g.kim@samsung.com>
Tue, 8 Oct 2024 04:36:20 +0000 (04:36 +0000)
The binary files of NextBrowser are unnecessary for the squashfs img,
but they are currently included in it and increasing its size.

It is not clear whether it is necessary to move the binary files of
NextBrowser to "%{buildroot}"%{CHROMIUM_LIB_DIR},
but by being moved to this path,
they become included in the squashfs img.

When generating TPK, conditions (generate_tpk)  will be added so that
they are not included in the squashfs img.

Change-Id: Id0df51d72768ebc50b5520221d0883a7c99acbde
Signed-off-by: Sugyum Kim <su.g.kim@samsung.com>
packaging/chromium-efl.spec

index 37e5a315377878d77c0f0e2f10f67fed9da6321d..205099f3c3333cd5573f00c0521db573930e36ef 100644 (file)
@@ -1058,7 +1058,7 @@ mkdir -p %{buildroot}%{_datadir}/gcov/obj
 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
 %endif
 
-%if %{__build_chrome} == 1
+%if %{__build_chrome} == 1 && "%{__generate_tpk}" == "0"
   install -m 0755 "%{OUTPUT_FOLDER}"/%{__browser_binary_name} "%{buildroot}"%{CHROMIUM_LIB_DIR}/bin/%{__browser_binary_name}
   sed 's#@binary@#%{CHROMIUM_LIB_DIR}/bin/%{__browser_binary_name}#' %{SOURCE1} > "%{buildroot}"%{_bindir}/%{__browser_binary_name}
   install -m 0755 "%{OUTPUT_FOLDER}"/chrome_crashpad_handler "%{buildroot}"%{CHROMIUM_LIB_DIR}/bin/chrome_crashpad_handler
@@ -1587,7 +1587,7 @@ rm -rf %{TIZEN_V8_UT_DIR}/v8
 %{CHROMIUM_LIB_DIR}/res/locale
 %{CHROMIUM_LIB_DIR}/res/images/*.png
 
-%if %{__build_chrome} == 1
+%if %{__build_chrome} == 1 && "%{__generate_tpk}" == "0"
   %{CHROMIUM_LIB_DIR}/bin/chrome_100_percent.pak
   %{CHROMIUM_LIB_DIR}/bin/resources.pak
   %{CHROMIUM_LIB_DIR}/bin/%{__browser_binary_name}