install -d "%{buildroot}"%{_includedir}/chromium-ewk
install -d "%{buildroot}"%{_includedir}/v8
install -d "%{buildroot}%{CHROMIUM_EXE_DIR}"
+install -d "%{buildroot}%{CHROMIUM_EXE_DIR}"/locales
install -d "%{buildroot}%{CHROMIUM_DATA_DIR}"/themes
+# locale for ewk layer
cp -r "%{OUTPUT_FOLDER}/locale" "%{buildroot}/%{CHROMIUM_LOCALE_DIR}"
+# locale for chromium layer
+install -m 0644 "%{OUTPUT_FOLDER}"/locales/efl/*.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"/locales
+
install -m 0755 "%{OUTPUT_FOLDER}"/libchromium-ewk.so "%{buildroot}"%{_libdir}
install -m 0755 "%{OUTPUT_FOLDER}"/efl_webprocess "%{buildroot}%{CHROMIUM_EXE_DIR}"
install -m 0755 "%{OUTPUT_FOLDER}"/icudtl.dat "%{buildroot}%{CHROMIUM_EXE_DIR}"
install -m 0755 "%{OUTPUT_FOLDER}"/natives_blob.bin "%{buildroot}%{CHROMIUM_EXE_DIR}"
install -m 0755 "%{OUTPUT_FOLDER}"/snapshot_blob.bin "%{buildroot}%{CHROMIUM_EXE_DIR}"
-install -m 0755 "%{OUTPUT_FOLDER}"/content_shell.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"
+install -m 0644 "%{OUTPUT_FOLDER}"/content_shell.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"
install -m 0644 "%{OUTPUT_FOLDER}"/resources/*.edj "%{buildroot}%{CHROMIUM_DATA_DIR}"/themes
mkdir -p "%{buildroot}"/usr/apps/org.tizen.%{name}/bin
%{CHROMIUM_EXE_DIR}/natives_blob.bin
%{CHROMIUM_EXE_DIR}/snapshot_blob.bin
%{CHROMIUM_EXE_DIR}/content_shell.pak
+%{CHROMIUM_EXE_DIR}/locales/*.pak
%{CHROMIUM_DATA_DIR}/themes/*.edj
%{CHROMIUM_LOCALE_DIR}
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/locales.gni")
+import("//tizen_src/ewk/po_tizen/chromium_efl_repack_locales.gni")
+
declare_args() {
msgfmt = "/usr/bin/msgfmt"
}
"zh_TW.po",
]
}
+
+chromium_efl_repack_locales("packed_locales_efl") {
+ input_locales = locales
+ output_locales = locales
+}
--- /dev/null
+# Copyright 2017-2018 Samsung Electronics. All rights reserved.
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This is fork of //android_webview/webview_repack_locales.gni
+# This repacks only minimal set of strings which is need for Chromium-efl.
+# * components_strings
+# * content_strings
+# * bluetooth_strings
+# * libaddressinput_strings
+# * ui_strings
+# * extensions_strings (if chrome extensions are enabled)
+
+import("//extensions/buildflags/buildflags.gni")
+import("//tools/grit/repack.gni")
+
+# Wraps repack_locales(), setting the source_patterns and deps required for
+# EFL WebView.
+template("chromium_efl_repack_locales") {
+ repack_locales(target_name) {
+ forward_variables_from(invoker, "*")
+ if (!defined(deps)) {
+ deps = []
+ }
+
+ source_patterns = [
+ "${root_gen_dir}/components/strings/components_locale_settings_",
+ "${root_gen_dir}/components/strings/components_strings_",
+ "${root_gen_dir}/content/app/strings/content_strings_",
+ "${root_gen_dir}/device/bluetooth/strings/bluetooth_strings_",
+ "${root_gen_dir}/third_party/libaddressinput/address_input_strings_",
+ "${root_gen_dir}/ui/strings/app_locale_settings_",
+ "${root_gen_dir}/ui/strings/ui_strings_",
+ ]
+ deps += [
+ "//components/strings:components_locale_settings",
+ "//components/strings:components_strings",
+ "//content/app/strings",
+ "//device/bluetooth/strings",
+ "//third_party/libaddressinput:strings",
+ "//ui/strings:app_locale_settings",
+ "//ui/strings:ui_strings",
+ ]
+ if (enable_extensions) {
+ source_patterns +=
+ [ "${root_gen_dir}/extensions/strings/extensions_strings_" ]
+ deps += [ "//extensions/strings" ]
+ }
+ output_dir = "$root_out_dir/locales/efl"
+ }
+}