1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
6 import("//testing/test.gni")
8 import("//build/config/android/config.gni")
11 component("shell_dialogs") {
13 "android/shell_dialogs_jni_registrar.cc",
14 "android/shell_dialogs_jni_registrar.h",
15 "base_shell_dialog.cc",
16 "base_shell_dialog.h",
17 "base_shell_dialog_win.cc",
18 "base_shell_dialog_win.h",
19 "linux_shell_dialog.cc",
20 "linux_shell_dialog.h",
21 "select_file_dialog.cc",
22 "select_file_dialog.h",
23 "select_file_dialog_android.cc",
24 "select_file_dialog_android.h",
25 "select_file_dialog_factory.cc",
26 "select_file_dialog_factory.h",
27 "select_file_dialog_mac.h",
28 "select_file_dialog_mac.mm",
29 "select_file_dialog_win.cc",
30 "select_file_dialog_win.h",
31 "select_file_policy.cc",
32 "select_file_policy.h",
33 "selected_file_info.cc",
34 "selected_file_info.h",
37 defines = [ "SHELL_DIALOGS_IMPLEMENTATION" ]
49 # Will be automatically filtered out on non-Mac.
50 sources -= [ "select_file_dialog_mac.mm" ]
52 deps += [ "//ui/aura" ]
58 "//ui/android:ui_java",
59 "//ui/base:ui_base_jni_headers",
61 include_dirs = [ "$root_gen_dir/ui" ]
62 libs = [ "jnigraphics" ]
66 deps += [ "//win8:metro_viewer" ]
70 test("shell_dialogs_unittests") {
72 "select_file_dialog_win_unittest.cc",
78 "//base/test:test_support",
79 "//base/test:run_all_unittests",