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 |