OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 { | 4 { |
5 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 }, | 7 }, |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'ios_web_inttests', | 10 'target_name': 'ios_web_inttests', |
11 'type': '<(gtest_target_type)', | 11 'type': '<(gtest_target_type)', |
12 'dependencies': [ | 12 'dependencies': [ |
13 '../../base/base.gyp:base', | 13 '../../base/base.gyp:base', |
14 '../../base/base.gyp:test_support_base', | 14 '../../base/base.gyp:test_support_base', |
| 15 '../../ios/provider/ios_provider_web.gyp:ios_provider_web', |
15 '../../net/net.gyp:net_test_support', | 16 '../../net/net.gyp:net_test_support', |
| 17 '../../services/shell/shell_public.gyp:shell_public', |
16 '../../testing/gtest.gyp:gtest', | 18 '../../testing/gtest.gyp:gtest', |
17 '../../ui/base/ui_base.gyp:ui_base_test_support', | 19 '../../ui/base/ui_base.gyp:ui_base_test_support', |
18 'ios_web.gyp:ios_web', | 20 'ios_web.gyp:ios_web', |
19 'ios_web.gyp:ios_web_test_support', | 21 'ios_web.gyp:ios_web_test_support', |
| 22 'mojo_bindings', |
| 23 'test_resources', |
| 24 'packed_test_resources', |
20 ], | 25 ], |
21 'sources': [ | 26 'sources': [ |
22 'browser_state_web_view_partition_inttest.mm', | 27 'browser_state_web_view_partition_inttest.mm', |
23 'public/test/http_server_inttest.mm', | 28 'public/test/http_server_inttest.mm', |
24 'test/run_all_unittests.cc', | 29 'test/run_all_unittests.cc', |
| 30 'webui/web_ui_mojo_inttest.mm', |
| 31 ], |
| 32 'mac_bundle_resources': [ |
| 33 '<(SHARED_INTERMEDIATE_DIR)/ios/web/test/resources.pak' |
| 34 ], |
| 35 }, |
| 36 { |
| 37 # GN version: //ios/web/test:mojo_bindings |
| 38 'target_name': 'mojo_bindings', |
| 39 # The type of this target must be none. This is so that resources can |
| 40 # depend upon this target for generating the js bindings files. Any |
| 41 # generated cpp files be listed explicitly in browser_ui. |
| 42 'type': 'none', |
| 43 'sources': [ |
| 44 'test/mojo_test.mojom', |
| 45 ], |
| 46 'includes': [ '../../mojo/mojom_bindings_generator.gypi' ], |
| 47 }, |
| 48 { |
| 49 # GN version: //ios/web/test:resources |
| 50 'target_name': 'test_resources', |
| 51 'type': 'none', |
| 52 'hard_dependency': 1, |
| 53 'dependencies': [ |
| 54 'mojo_bindings', |
| 55 ], |
| 56 'actions': [ |
| 57 { |
| 58 'action_name': 'test_resources', |
| 59 'variables': { |
| 60 'grit_grd_file': 'test/test_resources.grd', |
| 61 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ios/web/test', |
| 62 'grit_additional_defines': [ |
| 63 '-E', 'root_gen_dir=<(SHARED_INTERMEDIATE_DIR)', |
| 64 ], |
| 65 }, |
| 66 'includes': [ '../../build/grit_action.gypi' ], |
| 67 }, |
| 68 ], |
| 69 'copies': [ |
| 70 { |
| 71 'destination': '<(PRODUCT_DIR)', |
| 72 'files': [ |
| 73 '<(SHARED_INTERMEDIATE_DIR)/ios/web/test/test_resources.pak' |
| 74 ], |
| 75 }, |
| 76 ], |
| 77 'direct_dependent_settings': { |
| 78 'include_dirs': [ |
| 79 '<(SHARED_INTERMEDIATE_DIR)', |
| 80 ], |
| 81 }, |
| 82 }, |
| 83 { |
| 84 'target_name': 'packed_test_resources', |
| 85 'type': 'none', |
| 86 'hard_depency': 1, |
| 87 'dependencies': [ |
| 88 'test_resources', |
| 89 ], |
| 90 'variables': { |
| 91 'repack_path': [ |
| 92 '../../tools/grit/grit/format/repack.py', |
| 93 ], |
| 94 }, |
| 95 'actions': [ |
| 96 { |
| 97 'action_name': 'repack_test_resources', |
| 98 'variables': { |
| 99 'pak_inputs': [ |
| 100 '<(SHARED_INTERMEDIATE_DIR)/ios/web/ios_web_resources.pak', |
| 101 '<(SHARED_INTERMEDIATE_DIR)/ios/web/test/test_resources.pak' |
| 102 ], |
| 103 'pak_output': '<(SHARED_INTERMEDIATE_DIR)/ios/web/test/resources.pak
', |
| 104 }, |
| 105 'includes': [ '../../build/repack_action.gypi' ], |
| 106 }, |
25 ], | 107 ], |
26 }, | 108 }, |
27 ], | 109 ], |
28 } | 110 } |
OLD | NEW |