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..a166b7e6170b048a1d1a60ee2bacf5e5556fb0a9 |
--- /dev/null |
+++ b/ui/shell_dialogs/BUILD.gn |
@@ -0,0 +1,87 @@ |
+# 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("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) { |
+ deps += [ |
+ "//ui/aura", |
+ ] |
+ } |
+ |
+ if (is_android) { |
+ deps += [ |
+ "//ui/base:ui_base_jni_headers", |
+ ] |
+ |
+ libs += [ |
+ "jnigraphics", |
+ ] |
+ } |
+ |
+#if (is_android && !android_webview_build) { |
awong
2014/07/07 21:52:12
Why are these commented out?
tfarina
2014/07/09 01:43:42
Because we don't have their deps yet.
awong
2014/07/09 01:49:40
Can we only comment out the single line in the dep
tfarina
2014/07/09 01:59:01
We can, but I will do it in a separate patch when
|
+# deps += [ |
+# TOOD(GYP): Convert this target and re-enable this. |
+# "//ui/android:ui_java", |
+# ] |
+#} |
+ |
+#if (is_win) { |
+# deps += [ |
+# "//win8:metro_viewer", |
+# ] |
+#} |
+} |
+ |
+executable("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", |
+ ] |
+} |