summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-24 13:21:50 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-24 13:21:50 +0000
commita306aaae14d5c582d8f0916624e9c7819df7dee4 (patch)
treec73d933e9ad373a48e4aeef7f8390ffb5f40d96c
parent3137acb9f373e9409a52ac69ccf398fffa2c817c (diff)
downloadchromium_src-a306aaae14d5c582d8f0916624e9c7819df7dee4.zip
chromium_src-a306aaae14d5c582d8f0916624e9c7819df7dee4.tar.gz
chromium_src-a306aaae14d5c582d8f0916624e9c7819df7dee4.tar.bz2
Add more BUILD.gn files to build these targets with GN.
This patch converts the following gyp targets to GN: - favicon_base - query_parser - metro_viewer_messages -> metro_viewer - native_theme BUG=None TEST=None R=scottmg@chromium.org TBR=ben@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/294423004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272739 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--BUILD.gn11
-rw-r--r--components/favicon_base/BUILD.gn20
-rw-r--r--components/query_parser/BUILD.gn18
-rw-r--r--ui/metro_viewer/BUILD.gn17
-rw-r--r--ui/native_theme/BUILD.gn56
5 files changed, 121 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 2e48eb2..2c9b364 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -19,13 +19,15 @@ group("root") {
"//apps/common/api:apps_api",
#"//chrome",
+ "//components/favicon_base",
"//components/language_usage_metrics",
"//components/metrics",
"//components/navigation_metrics",
"//components/onc",
"//components/os_crypt",
- "//components/startup_metric_utils",
+ "//components/query_parser",
"//components/resources:components_resources",
+ "//components/startup_metric_utils",
"//components/tracing",
"//components/translate:translate_core_browser",
"//components/translate:translate_core_common",
@@ -70,6 +72,7 @@ group("root") {
"//ui/events",
"//ui/gfx",
"//ui/gl",
+ "//ui/native_theme",
"//ui/resources",
"//ui/strings",
"//ui/surface",
@@ -83,6 +86,12 @@ group("root") {
]
}
+ if (is_win) {
+ deps += [
+ "//ui/metro_viewer",
+ ]
+ }
+
if (is_android) {
deps -= [
"//content/public/common",
diff --git a/components/favicon_base/BUILD.gn b/components/favicon_base/BUILD.gn
new file mode 100644
index 0000000..3d4f638
--- /dev/null
+++ b/components/favicon_base/BUILD.gn
@@ -0,0 +1,20 @@
+# 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.
+
+source_set("favicon_base") {
+ sources = [
+ "favicon_callback.h",
+ "favicon_types.cc",
+ "favicon_types.h",
+ "select_favicon_frames.cc",
+ "select_favicon_frames.h",
+ ]
+
+ deps = [
+ "//base",
+ "//skia",
+ "//ui/gfx",
+ "//url",
+ ]
+}
diff --git a/components/query_parser/BUILD.gn b/components/query_parser/BUILD.gn
new file mode 100644
index 0000000..9b00546
--- /dev/null
+++ b/components/query_parser/BUILD.gn
@@ -0,0 +1,18 @@
+# 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.
+
+source_set("query_parser") {
+ sources = [
+ "query_parser.cc",
+ "query_parser.h",
+ "snippet.cc",
+ "snippet.h",
+ ]
+
+ deps = [
+ "//base",
+ "//base:i18n",
+ "//third_party/icu",
+ ]
+}
diff --git a/ui/metro_viewer/BUILD.gn b/ui/metro_viewer/BUILD.gn
new file mode 100644
index 0000000..c2a623d
--- /dev/null
+++ b/ui/metro_viewer/BUILD.gn
@@ -0,0 +1,17 @@
+# 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.
+
+source_set("metro_viewer") {
+ sources = [
+ "ime_types.cc",
+ "ime_types.h",
+ "metro_viewer_message_generator.cc",
+ "metro_viewer_message_generator.h",
+ "metro_viewer_messages.h",
+ ]
+
+ deps = [
+ "//base",
+ ]
+}
diff --git a/ui/native_theme/BUILD.gn b/ui/native_theme/BUILD.gn
new file mode 100644
index 0000000..2398ed9
--- /dev/null
+++ b/ui/native_theme/BUILD.gn
@@ -0,0 +1,56 @@
+# 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/ui.gni")
+
+component("native_theme") {
+ sources = [
+ "common_theme.cc",
+ "common_theme.h",
+ "fallback_theme.cc",
+ "fallback_theme.h",
+ "native_theme.cc",
+ "native_theme.h",
+ "native_theme_android.cc",
+ "native_theme_android.h",
+ "native_theme_base.cc",
+ "native_theme_base.h",
+ "native_theme_mac.h",
+ "native_theme_mac.mm",
+ "native_theme_observer.cc",
+ "native_theme_observer.h",
+ "native_theme_switches.cc",
+ "native_theme_switches.h",
+ "native_theme_win.cc",
+ "native_theme_win.h",
+ ]
+
+ if (use_aura) {
+ sources += [
+ "native_theme_aura.cc",
+ "native_theme_aura.h",
+ ]
+
+ if (is_win) {
+ sources += [
+ "native_theme_aurawin.cc",
+ "native_theme_aurawin.h",
+ ]
+ }
+ }
+
+ defines = [
+ "NATIVE_THEME_IMPLEMENTATION",
+ ]
+
+ deps = [
+ "//base",
+ "//base/third_party/dynamic_annotations",
+ "//skia",
+ "//ui/base:ui_base",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ "//ui/resources",
+ ]
+}