Move copy_lighthouse_locale_files to third_party/lighthouse
[email protected]
Change-Id: I7cf813725312d93b521dee7cc79b004f459855f5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2300107
Commit-Queue: Tim van der Lippe <[email protected]>
Reviewed-by: Paul Lewis <[email protected]>
diff --git a/all_devtools_files.gni b/all_devtools_files.gni
index a21781e..3f2124d 100644
--- a/all_devtools_files.gni
+++ b/all_devtools_files.gni
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("./scripts/build/ninja/vars.gni")
+
all_devtools_files = [
"front_end/shell.js",
"front_end/accessibility_test_runner/AccessibilityPaneTestRunner.js",
@@ -379,54 +381,59 @@
]
lighthouse_locale_files = [
- "front_end/third_party/lighthouse/locales/ar-XB.json",
- "front_end/third_party/lighthouse/locales/ar.json",
- "front_end/third_party/lighthouse/locales/bg.json",
- "front_end/third_party/lighthouse/locales/ca.json",
- "front_end/third_party/lighthouse/locales/cs.json",
- "front_end/third_party/lighthouse/locales/da.json",
- "front_end/third_party/lighthouse/locales/de.json",
- "front_end/third_party/lighthouse/locales/el.json",
- "front_end/third_party/lighthouse/locales/en-GB.json",
- "front_end/third_party/lighthouse/locales/en-US.json",
- "front_end/third_party/lighthouse/locales/en-XA.json",
- "front_end/third_party/lighthouse/locales/en-XL.json",
- "front_end/third_party/lighthouse/locales/es-419.json",
- "front_end/third_party/lighthouse/locales/es.json",
- "front_end/third_party/lighthouse/locales/fi.json",
- "front_end/third_party/lighthouse/locales/fil.json",
- "front_end/third_party/lighthouse/locales/fr.json",
- "front_end/third_party/lighthouse/locales/he.json",
- "front_end/third_party/lighthouse/locales/hi.json",
- "front_end/third_party/lighthouse/locales/hr.json",
- "front_end/third_party/lighthouse/locales/hu.json",
- "front_end/third_party/lighthouse/locales/id.json",
- "front_end/third_party/lighthouse/locales/it.json",
- "front_end/third_party/lighthouse/locales/ja.json",
- "front_end/third_party/lighthouse/locales/ko.json",
- "front_end/third_party/lighthouse/locales/lt.json",
- "front_end/third_party/lighthouse/locales/lv.json",
- "front_end/third_party/lighthouse/locales/nl.json",
- "front_end/third_party/lighthouse/locales/no.json",
- "front_end/third_party/lighthouse/locales/pl.json",
- "front_end/third_party/lighthouse/locales/pt-PT.json",
- "front_end/third_party/lighthouse/locales/pt.json",
- "front_end/third_party/lighthouse/locales/ro.json",
- "front_end/third_party/lighthouse/locales/ru.json",
- "front_end/third_party/lighthouse/locales/sk.json",
- "front_end/third_party/lighthouse/locales/sl.json",
- "front_end/third_party/lighthouse/locales/sr-Latn.json",
- "front_end/third_party/lighthouse/locales/sr.json",
- "front_end/third_party/lighthouse/locales/sv.json",
- "front_end/third_party/lighthouse/locales/ta.json",
- "front_end/third_party/lighthouse/locales/te.json",
- "front_end/third_party/lighthouse/locales/th.json",
- "front_end/third_party/lighthouse/locales/tr.json",
- "front_end/third_party/lighthouse/locales/uk.json",
- "front_end/third_party/lighthouse/locales/vi.json",
- "front_end/third_party/lighthouse/locales/zh-HK.json",
- "front_end/third_party/lighthouse/locales/zh-TW.json",
- "front_end/third_party/lighthouse/locales/zh.json",
+ "locales/ar-XB.json",
+ "locales/ar.json",
+ "locales/bg.json",
+ "locales/ca.json",
+ "locales/cs.json",
+ "locales/da.json",
+ "locales/de.json",
+ "locales/el.json",
+ "locales/en-GB.json",
+ "locales/en-US.json",
+ "locales/en-XA.json",
+ "locales/en-XL.json",
+ "locales/es-419.json",
+ "locales/es.json",
+ "locales/fi.json",
+ "locales/fil.json",
+ "locales/fr.json",
+ "locales/he.json",
+ "locales/hi.json",
+ "locales/hr.json",
+ "locales/hu.json",
+ "locales/id.json",
+ "locales/it.json",
+ "locales/ja.json",
+ "locales/ko.json",
+ "locales/lt.json",
+ "locales/lv.json",
+ "locales/nl.json",
+ "locales/no.json",
+ "locales/pl.json",
+ "locales/pt-PT.json",
+ "locales/pt.json",
+ "locales/ro.json",
+ "locales/ru.json",
+ "locales/sk.json",
+ "locales/sl.json",
+ "locales/sr-Latn.json",
+ "locales/sr.json",
+ "locales/sv.json",
+ "locales/ta.json",
+ "locales/te.json",
+ "locales/th.json",
+ "locales/tr.json",
+ "locales/uk.json",
+ "locales/vi.json",
+ "locales/zh-HK.json",
+ "locales/zh-TW.json",
+ "locales/zh.json",
]
-all_devtools_files += lighthouse_locale_files
+generated_lighthouse_locale_files = []
+
+foreach(locale, lighthouse_locale_files) {
+ generated_lighthouse_locale_files +=
+ [ "$resources_out_dir/third_party/lighthouse/$locale" ]
+}