• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        'print_settings_dialog_win.cc',
37        'print_settings_dialog_win.h',
38        'select_file_dialog.cc',
39        'select_file_dialog.h',
40        'select_file_dialog_android.cc',
41        'select_file_dialog_android.h',
42        'select_file_dialog_factory.cc',
43        'select_file_dialog_factory.h',
44        'select_file_dialog_mac.h',
45        'select_file_dialog_mac.mm',
46        'select_file_dialog_win.cc',
47        'select_file_dialog_win.h',
48        'select_file_policy.cc',
49        'select_file_policy.h',
50        'selected_file_info.cc',
51        'selected_file_info.h',
52      ],
53      'conditions': [
54        ['use_aura==1',
55          {
56            'dependencies': [
57              '../aura/aura.gyp:aura',
58            ],
59            'sources/': [
60              ['exclude', 'select_file_dialog_mac.mm'],
61            ],
62          }
63        ],
64        ['OS=="android"',
65          {
66            'dependencies': [
67              '../ui.gyp:ui_base_jni_headers',
68            ],
69            'include_dirs': [
70              '<(SHARED_INTERMEDIATE_DIR)/ui',
71            ],
72            'link_settings': {
73              'libraries': [
74                '-ljnigraphics',
75              ],
76            },
77          }
78        ],
79        ['OS=="android" and android_webview_build==0',
80          {
81            'dependencies': [
82              '../android/ui_android.gyp:ui_java',
83            ],
84          }
85        ],
86      ],
87    },  # target_name: shell_dialogs
88  ],
89}
90