fixup! Introduce 'chromium-efl-libs.spec'.
authoryh106.jung <yh106.jung@samsung.com>
Tue, 30 Jun 2015 14:08:29 +0000 (23:08 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
We have to define 'exe_dir' as path of chromium-efl-libs
in order to use properly icu data file.
Pleaes refer to InitializeICU in base/i18n/icu_util.cc.

In addition, define data_dir, edje_dir, locale_dir for later.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13316
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: I5aa967217ebe1df0acdf5a06acc88f64878fce1c
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
tizen_src/packaging/chromium-efl-libs.spec

index 2755dd3..68d180c 100644 (file)
@@ -207,6 +207,13 @@ export GYP_GENERATOR_OUTPUT=$PWD/%{OUTPUT_BASE_FOLDER}
   %global OUTPUT_FOLDER %{OUTPUT_BASE_FOLDER}/Release
 %endif
 
+# Directory for internal chromium executable components
+%global CHROMIUM_EXE_DIR %{_libdir}/%{name}
+# Constant read only data used by chromium-efl port
+%global CHROMIUM_DATA_DIR %{_datadir}/%{name}
+# Directory containing localization files
+%global CHROMIUM_LOCALE_DIR %{_datadir}/%{name}/locale
+
 export GYP_GENERATORS="dump_dependency_json,ninja"
 
 %if %{?_skip_gyp:0}%{!?_skip_gyp:1}
@@ -214,6 +221,10 @@ export GYP_GENERATORS="dump_dependency_json,ninja"
   --xwalk \
   -Dbuilding_crosswalk_bin=0 \
   -Dcomponent=shared_library \
+  -Dexe_dir="%{CHROMIUM_EXE_DIR}" \
+  -Ddata_dir="%{CHROMIUM_DATA_DIR}" \
+  -Dedje_dir="%{CHROMIUM_DATA_DIR}"/themes \
+  -Dlocale_dir="%{CHROMIUM_LOCALE_DIR}" \
 %if 0%{?_remove_webcore_debug_symbols:1}
   -Dremove_webcore_debug_symbols=1 \
 %endif
@@ -263,7 +274,7 @@ tizen_src/build/apply_patches.sh -r
 # pattern, which was mentioned above.
 rm -f "%{OUTPUT_FOLDER}"/lib/libxwalk_backend_lib.so
 
-%define         INSTALL_FOLDER chromium-efl-libs
+%define INSTALL_FOLDER chromium-efl-libs
 
 %install
 # Supporting libraries and resources.