summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/media/kaleidoscope/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/media/kaleidoscope/BUILD.gn')
-rw-r--r--chromium/chrome/browser/media/kaleidoscope/BUILD.gn44
1 files changed, 44 insertions, 0 deletions
diff --git a/chromium/chrome/browser/media/kaleidoscope/BUILD.gn b/chromium/chrome/browser/media/kaleidoscope/BUILD.gn
new file mode 100644
index 00000000000..45446236046
--- /dev/null
+++ b/chromium/chrome/browser/media/kaleidoscope/BUILD.gn
@@ -0,0 +1,44 @@
+# Copyright 2020 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("//chrome/browser/buildflags.gni")
+import("//tools/grit/grit_rule.gni")
+
+# If the ENABLE_KALEIDOSCOPE flag is enabled and src-internal is available then
+# include the internal resources. Otherwise, empty resources are used.
+if (enable_kaleidoscope) {
+ grit("kaleidoscope_resources") {
+ source = "kaleidoscope_internal_resources.grd"
+ outputs = [
+ "grit/kaleidoscope_resources.h",
+ "kaleidoscope_resources.pak",
+ ]
+ grit_flags = [
+ "-E",
+ "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
+ ]
+ deps = [
+ "//chrome/browser/media/kaleidoscope/internal:kaleidoscope_strings",
+ "//chrome/browser/media/kaleidoscope/internal/resources:content",
+ "//chrome/browser/media/kaleidoscope/mojom:mojom_js",
+ "//url/mojom:url_mojom_gurl_js",
+ ]
+ }
+} else {
+ grit("kaleidoscope_resources") {
+ source = "kaleidoscope_resources.grd"
+ outputs = [
+ "grit/kaleidoscope_resources.h",
+ "kaleidoscope_resources.pak",
+ ]
+ grit_flags = [
+ "-E",
+ "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
+ ]
+ deps = [
+ "//chrome/browser/media/kaleidoscope/mojom:mojom_js",
+ "//url/mojom:url_mojom_gurl_js",
+ ]
+ }
+}