[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 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 | { |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 11 | # GN version: //ui/shell_dialogs |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 12 | 'target_name': 'shell_dialogs', |
| 13 | 'type': '<(component)', |
| 14 | 'dependencies': [ |
| 15 | '../../base/base.gyp:base', |
| 16 | '../../base/base.gyp:base_i18n', |
| 17 | '../../skia/skia.gyp:skia', |
[email protected] | ed8fd915 | 2014-03-13 10:20:37 | [diff] [blame] | 18 | '../base/ui_base.gyp:ui_base', |
[email protected] | e3d7486 | 2014-05-18 14:12:27 | [diff] [blame] | 19 | '../strings/ui_strings.gyp:ui_strings', |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 20 | ], |
| 21 | 'defines': [ |
| 22 | 'SHELL_DIALOGS_IMPLEMENTATION', |
| 23 | ], |
| 24 | 'sources': [ |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 25 | # Note: file list duplicated in GN build. |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 26 | 'android/shell_dialogs_jni_registrar.cc', |
| 27 | 'android/shell_dialogs_jni_registrar.h', |
| 28 | 'base_shell_dialog.cc', |
| 29 | 'base_shell_dialog.h', |
| 30 | 'base_shell_dialog_win.cc', |
| 31 | 'base_shell_dialog_win.h', |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 32 | 'linux_shell_dialog.cc', |
| 33 | 'linux_shell_dialog.h', |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 34 | 'select_file_dialog.cc', |
| 35 | 'select_file_dialog.h', |
| 36 | 'select_file_dialog_android.cc', |
| 37 | 'select_file_dialog_android.h', |
| 38 | 'select_file_dialog_factory.cc', |
| 39 | 'select_file_dialog_factory.h', |
| 40 | 'select_file_dialog_mac.h', |
| 41 | 'select_file_dialog_mac.mm', |
| 42 | 'select_file_dialog_win.cc', |
| 43 | 'select_file_dialog_win.h', |
| 44 | 'select_file_policy.cc', |
| 45 | 'select_file_policy.h', |
| 46 | 'selected_file_info.cc', |
| 47 | 'selected_file_info.h', |
| 48 | ], |
| 49 | 'conditions': [ |
| 50 | ['use_aura==1', |
| 51 | { |
| 52 | 'dependencies': [ |
| 53 | '../aura/aura.gyp:aura', |
| 54 | ], |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 55 | 'sources!': [ |
| 56 | 'select_file_dialog_mac.mm', |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 57 | ], |
| 58 | } |
| 59 | ], |
| 60 | ['OS=="android"', |
| 61 | { |
| 62 | 'dependencies': [ |
jaekyun | e4f9eed | 2015-02-24 02:06:58 | [diff] [blame] | 63 | '../android/ui_android.gyp:ui_android', |
[email protected] | ed8fd915 | 2014-03-13 10:20:37 | [diff] [blame] | 64 | '../base/ui_base.gyp:ui_base_jni_headers', |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 65 | ], |
| 66 | 'include_dirs': [ |
| 67 | '<(SHARED_INTERMEDIATE_DIR)/ui', |
| 68 | ], |
| 69 | 'link_settings': { |
| 70 | 'libraries': [ |
| 71 | '-ljnigraphics', |
| 72 | ], |
| 73 | }, |
| 74 | } |
| 75 | ], |
| 76 | ['OS=="android" and android_webview_build==0', |
| 77 | { |
| 78 | 'dependencies': [ |
[email protected] | f450287d | 2013-11-15 17:52:54 | [diff] [blame] | 79 | '../android/ui_android.gyp:ui_java', |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 80 | ], |
| 81 | } |
| 82 | ], |
[email protected] | 1279d3b | 2014-05-29 00:24:52 | [diff] [blame] | 83 | ['OS=="win"', |
| 84 | { |
| 85 | 'dependencies': [ |
| 86 | '../../win8/win8.gyp:metro_viewer', |
| 87 | ], |
| 88 | } |
| 89 | ], |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 90 | ], |
| 91 | }, # target_name: shell_dialogs |
[email protected] | 886f38b | 2014-02-07 00:57:53 | [diff] [blame] | 92 | { |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 93 | # GN version: //ui/shell_dialogs:shell_dialogs_unittests |
[email protected] | 886f38b | 2014-02-07 00:57:53 | [diff] [blame] | 94 | 'target_name': 'shell_dialogs_unittests', |
| 95 | 'type': 'executable', |
| 96 | 'dependencies': [ |
| 97 | '../../base/base.gyp:base', |
| 98 | '../../base/base.gyp:test_support_base', |
| 99 | '../../base/base.gyp:run_all_unittests', |
| 100 | '../../testing/gtest.gyp:gtest', |
| 101 | 'shell_dialogs', |
| 102 | ], |
| 103 | 'sources': [ |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 104 | # Note: file list duplicated in GN build. |
[email protected] | 886f38b | 2014-02-07 00:57:53 | [diff] [blame] | 105 | 'select_file_dialog_win_unittest.cc', |
| 106 | ], |
| 107 | }, |
[email protected] | 1027c8c | 2013-10-29 01:32:19 | [diff] [blame] | 108 | ], |
| 109 | } |