Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / shell_dialogs / shell_dialogs.gyp
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.
4
5 {
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/strings/ui_strings.gyp:ui_strings',
18         '../ui.gyp:ui',
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         'gtk/select_file_dialog_impl.cc',
31         'gtk/select_file_dialog_impl.h',
32         'gtk/select_file_dialog_impl_gtk.cc',
33         'gtk/select_file_dialog_impl_kde.cc',
34         'linux_shell_dialog.cc',
35         'linux_shell_dialog.h',
36         'select_file_dialog.cc',
37         'select_file_dialog.h',
38         'select_file_dialog_android.cc',
39         'select_file_dialog_android.h',
40         'select_file_dialog_factory.cc',
41         'select_file_dialog_factory.h',
42         'select_file_dialog_mac.h',
43         'select_file_dialog_mac.mm',
44         'select_file_dialog_win.cc',
45         'select_file_dialog_win.h',
46         'select_file_policy.cc',
47         'select_file_policy.h',
48         'selected_file_info.cc',
49         'selected_file_info.h',
50       ],
51       'conditions': [
52         ['use_aura==1',
53           {
54             'dependencies': [
55               '../aura/aura.gyp:aura',
56             ],
57             'sources/': [
58               ['exclude', 'select_file_dialog_mac.mm'],
59             ],
60           }
61         ],
62         ['OS=="android"',
63           {
64             'dependencies': [
65               '../ui.gyp:ui_base_jni_headers',
66             ],
67             'include_dirs': [
68               '<(SHARED_INTERMEDIATE_DIR)/ui',
69             ],
70             'link_settings': {
71               'libraries': [
72                 '-ljnigraphics',
73               ],
74             },
75           }
76         ],
77         ['OS=="android" and android_webview_build==0',
78           {
79             'dependencies': [
80               '../android/ui_android.gyp:ui_java',
81             ],
82           }
83         ],
84       ],
85     },  # target_name: shell_dialogs
86     {
87       'target_name': 'shell_dialogs_unittests',
88       'type': 'executable',
89       'dependencies': [
90         '../../base/base.gyp:base',
91         '../../base/base.gyp:test_support_base',
92         '../../base/base.gyp:run_all_unittests',
93         '../../testing/gtest.gyp:gtest',
94         'shell_dialogs',
95       ],
96       'sources': [
97         'select_file_dialog_win_unittest.cc',
98       ],
99     },
100   ],
101 }