ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / ui / shell_dialogs / BUILD.gn
blob77897ffb89436ea6f1f0ef69c9d744c739ec2ecd
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")
7 if (is_android) {
8   import("//build/config/android/config.gni")
11 component("shell_dialogs") {
12   sources = [
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",
35   ]
37   defines = [ "SHELL_DIALOGS_IMPLEMENTATION" ]
39   deps = [
40     "//base",
41     "//base:i18n",
42     "//skia",
43     "//ui/base",
44     "//ui/strings",
45   ]
47   if (use_aura) {
48     if (is_mac) {
49       # Will be automatically filtered out on non-Mac.
50       sources -= [ "select_file_dialog_mac.mm" ]
51     }
52     deps += [ "//ui/aura" ]
53   }
55   if (is_android) {
56     deps += [
57       "//ui/android",
58       "//ui/base:ui_base_jni_headers",
59     ]
60     include_dirs = [ "$root_gen_dir/ui" ]
61     libs = [ "jnigraphics" ]
63     if (!is_android_webview_build) {
64       deps += [ "//ui/android:ui_java" ]
65     }
66   }
68   if (is_win) {
69     deps += [ "//win8:metro_viewer" ]
70   }
73 test("shell_dialogs_unittests") {
74   sources = [
75     "select_file_dialog_win_unittest.cc",
76   ]
78   deps = [
79     ":shell_dialogs",
80     "//base",
81     "//base/test:test_support",
82     "//base/test:run_all_unittests",
83     "//testing/gtest",
84   ]