mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
181 lines
5.4 KiB
Plaintext
181 lines
5.4 KiB
Plaintext
|
# 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 file contains the list of outputs generated by template_formatter.py.
|
||
|
# To keep repetetive work down, the lists are generated from the languages and
|
||
|
# a placeholder, e.g. some/dir/${lang}/file.ext is expanded by replacing ${lang}
|
||
|
# by all languages. The *_path variables for per-language types (adml, doc etc.)
|
||
|
# contain ${lang} in unexpanded form. They are passed to the scripts to do the
|
||
|
# replacement there.
|
||
|
|
||
|
policy_templates_base_dir = "$root_gen_dir/chrome/app/policy"
|
||
|
|
||
|
# Languages we're going to process.
|
||
|
policy_templates_languages = [
|
||
|
"am",
|
||
|
"ar",
|
||
|
"bg",
|
||
|
"bn",
|
||
|
"ca",
|
||
|
"cs",
|
||
|
"da",
|
||
|
"de",
|
||
|
"el",
|
||
|
"en-GB",
|
||
|
"en-US",
|
||
|
"es",
|
||
|
"es-419",
|
||
|
"et",
|
||
|
"fa",
|
||
|
"fi",
|
||
|
"fil",
|
||
|
"fr",
|
||
|
"gu",
|
||
|
"he",
|
||
|
"hi",
|
||
|
"hr",
|
||
|
"hu",
|
||
|
"id",
|
||
|
"it",
|
||
|
"ja",
|
||
|
"kn",
|
||
|
"ko",
|
||
|
"lt",
|
||
|
"lv",
|
||
|
"ml",
|
||
|
"mr",
|
||
|
"ms",
|
||
|
"nl",
|
||
|
"nb",
|
||
|
"pl",
|
||
|
"pt-BR",
|
||
|
"pt-PT",
|
||
|
"ro",
|
||
|
"ru",
|
||
|
"sk",
|
||
|
"sl",
|
||
|
"sr",
|
||
|
"sv",
|
||
|
"sw",
|
||
|
"ta",
|
||
|
"te",
|
||
|
"th",
|
||
|
"tr",
|
||
|
"uk",
|
||
|
"vi",
|
||
|
"zh-CN",
|
||
|
"zh-TW",
|
||
|
]
|
||
|
policy_templates_languages_str = ""
|
||
|
foreach(lang, policy_templates_languages) {
|
||
|
# Note: The final , is filtered out by scripts. There's no string.join here...
|
||
|
policy_templates_languages_str += lang + ","
|
||
|
}
|
||
|
|
||
|
# Translations. Grit translates policy_templates.json to all languages first.
|
||
|
policy_templates_translation_json_path =
|
||
|
"$policy_templates_base_dir/translations/policy_templates_\${lang}.json"
|
||
|
policy_templates_translation_outputs = []
|
||
|
foreach(lang, policy_templates_languages) {
|
||
|
policy_templates_translation_outputs += [ "$policy_templates_base_dir/translations/policy_templates_${lang}.json" ]
|
||
|
}
|
||
|
|
||
|
# Android outputs.
|
||
|
policy_templates_android_policy_path =
|
||
|
"$policy_templates_base_dir/android/values-v21/restriction_values.xml"
|
||
|
policy_templates_android_outputs = [ policy_templates_android_policy_path ]
|
||
|
|
||
|
# Common outputs.
|
||
|
policy_templates_doc_path =
|
||
|
"$policy_templates_base_dir/common/html/\${lang}/chrome_policy_list.html"
|
||
|
policy_templates_common_outputs = []
|
||
|
foreach(lang, policy_templates_languages) {
|
||
|
policy_templates_common_outputs += [ "$policy_templates_base_dir/common/html/${lang}/chrome_policy_list.html" ]
|
||
|
}
|
||
|
|
||
|
# Linux outputs.
|
||
|
policy_templates_json_path =
|
||
|
"$policy_templates_base_dir/linux/examples/chrome.json"
|
||
|
policy_templates_linux_outputs = [ policy_templates_json_path ]
|
||
|
|
||
|
# Mac outputs.
|
||
|
policy_templates_plist_path =
|
||
|
"$policy_templates_base_dir/mac/app-Manifest.plist"
|
||
|
policy_templates_plist_strings_path =
|
||
|
"$policy_templates_base_dir/mac/strings/\${lang}.lproj/Localizable.strings"
|
||
|
policy_templates_mac_outputs = [ policy_templates_plist_path ]
|
||
|
foreach(lang, policy_templates_languages) {
|
||
|
# Mac uses a slightly different naming convention for languages.
|
||
|
if (lang == "en-US") {
|
||
|
lang = "en"
|
||
|
} else if (lang == "en-GB") {
|
||
|
lang = "en_GB"
|
||
|
} else if (lang == "es-419") {
|
||
|
lang = "es_419"
|
||
|
} else if (lang == "pt-BR") {
|
||
|
lang = "pt_BR"
|
||
|
} else if (lang == "pt-PT") {
|
||
|
lang = "pt_PT"
|
||
|
} else if (lang == "zh-CN") {
|
||
|
lang = "zh_CN"
|
||
|
} else if (lang == "zh-TW") {
|
||
|
lang = "zh_TW"
|
||
|
}
|
||
|
policy_templates_mac_outputs += [ "$policy_templates_base_dir/mac/strings/${lang}.lproj/Localizable.strings" ]
|
||
|
}
|
||
|
|
||
|
# Windows outputs.
|
||
|
policy_templates_win_reg_path =
|
||
|
"$policy_templates_base_dir/windows/examples/chrome.reg"
|
||
|
policy_templates_win_admx_path =
|
||
|
"$policy_templates_base_dir/windows/admx/chrome.admx"
|
||
|
policy_templates_win_adm_path =
|
||
|
"$policy_templates_base_dir/windows/adm/\${lang}/chrome.adm"
|
||
|
policy_templates_win_adml_path =
|
||
|
"$policy_templates_base_dir/windows/admx/\${lang}/chrome.adml"
|
||
|
policy_templates_win_outputs = [
|
||
|
policy_templates_win_reg_path,
|
||
|
policy_templates_win_admx_path,
|
||
|
]
|
||
|
foreach(lang, policy_templates_languages) {
|
||
|
policy_templates_win_outputs += [
|
||
|
"$policy_templates_base_dir/windows/adm/${lang}/chrome.adm",
|
||
|
"$policy_templates_base_dir/windows/admx/${lang}/chrome.adml",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
# Additional Windows outputs for branded builds.
|
||
|
policy_templates_win_google_admx_path =
|
||
|
"$policy_templates_base_dir/windows/admx/google.admx"
|
||
|
policy_templates_win_google_adml_path =
|
||
|
"$policy_templates_base_dir/windows/admx/\${lang}/google.adml"
|
||
|
policy_templates_win_google_outputs = [ policy_templates_win_google_admx_path ]
|
||
|
foreach(lang, policy_templates_languages) {
|
||
|
policy_templates_win_google_outputs +=
|
||
|
[ "$policy_templates_base_dir/windows/admx/${lang}/google.adml" ]
|
||
|
}
|
||
|
|
||
|
# Chrome OS outputs.
|
||
|
policy_templates_chromeos_admx_path =
|
||
|
"$policy_templates_base_dir/chromeos/admx/chromeos.admx"
|
||
|
policy_templates_chromeos_adml_path =
|
||
|
"$policy_templates_base_dir/chromeos/admx/\${lang}/chromeos.adml"
|
||
|
policy_templates_chromeos_outputs = [ policy_templates_chromeos_admx_path ]
|
||
|
foreach(lang, policy_templates_languages) {
|
||
|
policy_templates_chromeos_outputs +=
|
||
|
[ "$policy_templates_base_dir/chromeos/admx/${lang}/chromeos.adml" ]
|
||
|
}
|
||
|
|
||
|
# Additional Chrome OS outputs for branded builds.
|
||
|
policy_templates_chromeos_google_admx_path =
|
||
|
"$policy_templates_base_dir/chromeos/admx/google.admx"
|
||
|
policy_templates_chromeos_google_adml_path =
|
||
|
"$policy_templates_base_dir/chromeos/admx/\${lang}/google.adml"
|
||
|
policy_templates_chromeos_google_outputs =
|
||
|
[ policy_templates_chromeos_google_admx_path ]
|
||
|
foreach(lang, policy_templates_languages) {
|
||
|
policy_templates_chromeos_google_outputs +=
|
||
|
[ "$policy_templates_base_dir/chromeos/admx/${lang}/google.adml" ]
|
||
|
}
|