Roll android_tools deps to the latest.
[chromium-blink-merge.git] / ui / shell_dialogs / shell_dialogs.gyp
blob3cc00938d746ec572953ce4bb32c1464821ec4d1
1 # Copyright 2013 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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'shell_dialogs',
12       'type': '<(component)',
13       'dependencies': [
14         '../../base/base.gyp:base',
15         '../../base/base.gyp:base_i18n',
16         '../../skia/skia.gyp:skia',
17         '../base/ui_base.gyp:ui_base',
18         '../strings/ui_strings.gyp:ui_strings',
19       ],
20       'defines': [
21         'SHELL_DIALOGS_IMPLEMENTATION',
22       ],
23       'sources': [
24         'android/shell_dialogs_jni_registrar.cc',
25         'android/shell_dialogs_jni_registrar.h',
26         'base_shell_dialog.cc',
27         'base_shell_dialog.h',
28         'base_shell_dialog_win.cc',
29         'base_shell_dialog_win.h',
30         'linux_shell_dialog.cc',
31         'linux_shell_dialog.h',
32         'select_file_dialog.cc',
33         'select_file_dialog.h',
34         'select_file_dialog_android.cc',
35         'select_file_dialog_android.h',
36         'select_file_dialog_factory.cc',
37         'select_file_dialog_factory.h',
38         'select_file_dialog_mac.h',
39         'select_file_dialog_mac.mm',
40         'select_file_dialog_win.cc',
41         'select_file_dialog_win.h',
42         'select_file_policy.cc',
43         'select_file_policy.h',
44         'selected_file_info.cc',
45         'selected_file_info.h',
46       ],
47       'conditions': [
48         ['use_aura==1',
49           {
50             'dependencies': [
51               '../aura/aura.gyp:aura',
52             ],
53             'sources/': [
54               ['exclude', 'select_file_dialog_mac.mm'],
55             ],
56           }
57         ],
58         ['OS=="android"',
59           {
60             'dependencies': [
61               '../base/ui_base.gyp:ui_base_jni_headers',
62             ],
63             'include_dirs': [
64               '<(SHARED_INTERMEDIATE_DIR)/ui',
65             ],
66             'link_settings': {
67               'libraries': [
68                 '-ljnigraphics',
69               ],
70             },
71           }
72         ],
73         ['OS=="android" and android_webview_build==0',
74           {
75             'dependencies': [
76               '../android/ui_android.gyp:ui_java',
77             ],
78           }
79         ],
80         ['OS=="win"',
81           {
82             'dependencies': [
83               '../../win8/win8.gyp:metro_viewer',
84             ],
85           }
86         ],
87       ],
88     },  # target_name: shell_dialogs
89     {
90       'target_name': 'shell_dialogs_unittests',
91       'type': 'executable',
92       'dependencies': [
93         '../../base/base.gyp:base',
94         '../../base/base.gyp:test_support_base',
95         '../../base/base.gyp:run_all_unittests',
96         '../../testing/gtest.gyp:gtest',
97         'shell_dialogs',
98       ],
99       'sources': [
100         'select_file_dialog_win_unittest.cc',
101       ],
102     },
103   ],