| OLD | NEW |
| (Empty) |
| 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 # GN version: //ui/shell_dialogs | |
| 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', | |
| 18 '../base/ui_base.gyp:ui_base', | |
| 19 '../strings/ui_strings.gyp:ui_strings', | |
| 20 ], | |
| 21 'defines': [ | |
| 22 'SHELL_DIALOGS_IMPLEMENTATION', | |
| 23 ], | |
| 24 'sources': [ | |
| 25 # Note: file list duplicated in GN build. | |
| 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', | |
| 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 'shell_dialog_linux.cc', | |
| 47 'shell_dialog_linux.h', | |
| 48 ], | |
| 49 'conditions': [ | |
| 50 ['use_aura==1', | |
| 51 { | |
| 52 'dependencies': [ | |
| 53 '../aura/aura.gyp:aura', | |
| 54 ], | |
| 55 'sources!': [ | |
| 56 'select_file_dialog_mac.mm', | |
| 57 ], | |
| 58 } | |
| 59 ], | |
| 60 ['OS=="android"', | |
| 61 { | |
| 62 'dependencies': [ | |
| 63 '../android/ui_android.gyp:ui_android', | |
| 64 '../android/ui_android.gyp:ui_java', | |
| 65 '../base/ui_base.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 ], | |
| 78 }, # target_name: shell_dialogs | |
| 79 { | |
| 80 # GN version: //ui/shell_dialogs:shell_dialogs_unittests | |
| 81 'target_name': 'shell_dialogs_unittests', | |
| 82 'type': 'executable', | |
| 83 'dependencies': [ | |
| 84 '../../base/base.gyp:base', | |
| 85 '../../base/base.gyp:test_support_base', | |
| 86 '../../testing/gtest.gyp:gtest', | |
| 87 '../base/ui_base.gyp:ui_base', | |
| 88 'shell_dialogs', | |
| 89 ], | |
| 90 'sources': [ | |
| 91 # Note: file list duplicated in GN build. | |
| 92 'run_all_unittests.cc', | |
| 93 'select_file_dialog_mac_unittest.mm', | |
| 94 'select_file_dialog_win_unittest.cc', | |
| 95 ], | |
| 96 'conditions' : [ | |
| 97 ['OS=="mac"', | |
| 98 { | |
| 99 'mac_bundle': 1, | |
| 100 'mac_bundle_resources' : [ | |
| 101 '../../chrome/app/nibs/SaveAccessoryView.xib', | |
| 102 # The unittest expects a locale.pak file to exist in the bundle | |
| 103 # for English-US. Copy it in from where it was generated by | |
| 104 # ui_resources.gyp:ui_test_pak. | |
| 105 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak', | |
| 106 ], | |
| 107 'dependencies': [ | |
| 108 # Needed to generate locale.pak. | |
| 109 '../resources/ui_resources.gyp:ui_test_pak', | |
| 110 ], | |
| 111 } | |
| 112 ], | |
| 113 ], | |
| 114 }, | |
| 115 ], | |
| 116 } | |
| OLD | NEW |