Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Unified Diff: ui/shell_dialogs/BUILD.gn

Issue 393953008: Add ui/display, message_center, webview to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/BUILD.gn ('k') | ui/shell_dialogs/shell_dialogs.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/shell_dialogs/BUILD.gn
diff --git a/ui/shell_dialogs/BUILD.gn b/ui/shell_dialogs/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..3579f17e5d36b788b5af3c9c8f5bb201d99c6baa
--- /dev/null
+++ b/ui/shell_dialogs/BUILD.gn
@@ -0,0 +1,86 @@
+# 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")
+if (is_android) {
+ import("//build/config/android/config.gni")
+}
+
+component("shell_dialogs") {
+ sources = [
+ "android/shell_dialogs_jni_registrar.cc",
+ "android/shell_dialogs_jni_registrar.h",
+ "base_shell_dialog.cc",
+ "base_shell_dialog.h",
+ "base_shell_dialog_win.cc",
+ "base_shell_dialog_win.h",
+ "linux_shell_dialog.cc",
+ "linux_shell_dialog.h",
+ "select_file_dialog.cc",
+ "select_file_dialog.h",
+ "select_file_dialog_android.cc",
+ "select_file_dialog_android.h",
+ "select_file_dialog_factory.cc",
+ "select_file_dialog_factory.h",
+ "select_file_dialog_mac.h",
+ "select_file_dialog_mac.mm",
+ "select_file_dialog_win.cc",
+ "select_file_dialog_win.h",
+ "select_file_policy.cc",
+ "select_file_policy.h",
+ "selected_file_info.cc",
+ "selected_file_info.h",
+ ]
+
+ defines = [ "SHELL_DIALOGS_IMPLEMENTATION" ]
+
+ deps = [
+ "//base",
+ "//base:i18n",
+ "//skia",
+ "//ui/base",
+ "//ui/strings",
+ ]
+
+ if (use_aura) {
+ if (is_mac) {
+ # Will be automatically filtered out on non-Mac.
+ sources -= [ "select_file_dialog_mac.mm" ]
+ }
+ deps += [ "//ui/aura" ]
+ }
+
+ if (is_android) {
+ deps += [ "//ui/base:ui_base_jni_headers" ]
+ include_dirs = [ "$root_gen_dir/ui" ]
+ libs = [ "jnigraphics" ]
+
+ if (!is_android_webview_build) {
+ #deps += [ '../android/ui_android.gyp:ui_java' ] TODO(GYP)
+ }
+ }
+
+ if (is_win) {
+ #deps += [ '../../win8/win8.gyp:metro_viewer' ] TODO(GYP)
+ }
+}
+
+# TODO(GYP) enable shell_dialogs_unittests when media is converted.
+if (false) {
+
+test("shell_dialogs_unittests") {
+ sources = [
+ "select_file_dialog_win_unittest.cc",
+ ]
+
+ deps = [
+ ":shell_dialogs",
+ "//base",
+ "//base/test:test_support",
+ "//base/test:run_all_unittests",
+ "//testing/gtest",
+ ]
+}
+
+} # if false
« no previous file with comments | « ui/ozone/BUILD.gn ('k') | ui/shell_dialogs/shell_dialogs.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698