10 Star 3 Fork 42

OpenHarmony-TPC/chromium_chrome

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
chrome_repack_locales.gni 4.91 KB
一键复制 编辑 原始数据 按行查看 历史
李想 提交于 2023-08-12 11:34 . chromium 0003-ohos-1115.patch
# Copyright 2014 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.
import("//build/config/chrome_build.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//cef/libcef/features/features.gni")
import("//extensions/buildflags/buildflags.gni")
import("//tools/grit/repack.gni")
assert(!is_ios, "Chromium/iOS shouldn't use anything in //chrome")
# Wraps repack_locales(), setting the source_patterns and deps required for
# Chrome.
#
# Extra Parameters:
#
# additional_source_patterns [optional]
# Extra source_patterns for repack_locales().
template("chrome_repack_locales") {
repack_locales(target_name) {
forward_variables_from(invoker, "*", [ "additional_source_patterns" ])
# Each input pak file should also have a deps line.
source_patterns = [
"${root_gen_dir}/chrome/generated_resources_",
"${root_gen_dir}/chrome/locale_settings_",
"${root_gen_dir}/chrome/platform_locale_settings_",
"${root_gen_dir}/components/omnibox/resources/omnibox_pedal_synonyms_",
"${root_gen_dir}/components/omnibox/resources/omnibox_resources_",
"${root_gen_dir}/components/strings/components_locale_settings_",
"${root_gen_dir}/components/strings/components_strings_",
"${root_gen_dir}/third_party/blink/public/strings/blink_accessibility_strings_",
"${root_gen_dir}/third_party/blink/public/strings/blink_strings_",
"${root_gen_dir}/device/bluetooth/strings/bluetooth_strings_",
"${root_gen_dir}/device/fido/strings/fido_strings_",
"${root_gen_dir}/services/strings/services_strings_",
"${root_gen_dir}/third_party/libaddressinput/address_input_strings_",
"${root_gen_dir}/ui/strings/app_locale_settings_",
"${root_gen_dir}/ui/strings/ax_strings_",
"${root_gen_dir}/ui/strings/ui_strings_",
]
if (!defined(deps)) {
deps = []
}
deps += [
"//chrome/app:generated_resources",
"//chrome/app/resources:locale_settings",
"//chrome/app/resources:platform_locale_settings",
"//components/omnibox/resources:omnibox_pedal_synonyms",
"//components/omnibox/resources:omnibox_resources",
"//components/strings:components_locale_settings",
"//components/strings:components_strings",
"//device/bluetooth/strings",
"//device/fido/strings",
"//services/strings",
"//third_party/blink/public/strings",
"//third_party/blink/public/strings:accessibility_strings",
"//third_party/libaddressinput:strings",
"//ui/strings:app_locale_settings",
"//ui/strings:ax_strings",
"//ui/strings:ui_strings",
]
if (defined(invoker.deps)) {
deps += invoker.deps
}
if (defined(ohos_nweb_ex) && ohos_nweb_ex) {
source_patterns += [ "${root_gen_dir}/ohos_nweb_ex/overrides/ui/strings/ohos_nweb_ex_strings_" ]
deps += [ "//ohos_nweb_ex/overrides/ui/strings" ]
}
if (is_chromeos_ash) {
source_patterns += [
"${root_gen_dir}/ash/shortcut_viewer/strings/shortcut_viewer_strings_",
"${root_gen_dir}/ash/strings/ash_strings_",
"${root_gen_dir}/ash/webui/camera_app_ui/resources/strings/ash_camera_app_strings_",
"${root_gen_dir}/chromeos/strings/chromeos_strings_",
"${root_gen_dir}/remoting/resources/",
"${root_gen_dir}/ui/chromeos/strings/ui_chromeos_strings_",
]
deps += [
"//ash/shortcut_viewer/strings",
"//ash/strings",
"//ash/webui/camera_app_ui/resources/strings",
"//chromeos/strings",
"//remoting/resources",
"//ui/chromeos/strings",
]
compress = true
}
if (is_chromeos_lacros) {
source_patterns +=
[ "${root_gen_dir}/chromeos/strings/chromeos_strings_" ]
deps += [ "//chromeos/strings" ]
}
if (enable_cef) {
source_patterns += [ "${root_gen_dir}/cef/cef_strings_" ]
deps += [ "//cef:cef_strings" ]
}
if (enable_extensions) {
source_patterns +=
[ "${root_gen_dir}/extensions/strings/extensions_strings_" ]
deps += [ "//extensions/strings" ]
}
if (is_chrome_branded) {
source_patterns += [
"${root_gen_dir}/chrome/google_chrome_strings_",
"${root_gen_dir}/components/strings/components_google_chrome_strings_",
]
deps += [
"//chrome/app:google_chrome_strings",
"//components/strings:components_google_chrome_strings",
]
} else {
source_patterns += [
"${root_gen_dir}/chrome/chromium_strings_",
"${root_gen_dir}/components/strings/components_chromium_strings_",
]
deps += [
"//chrome/app:chromium_strings",
"//components/strings:components_chromium_strings",
]
}
if (defined(invoker.additional_source_patterns)) {
source_patterns += invoker.additional_source_patterns
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-tpc/chromium_chrome.git
git@gitee.com:openharmony-tpc/chromium_chrome.git
openharmony-tpc
chromium_chrome
chromium_chrome
master

搜索帮助