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, | |
sdefresne
2016/05/28 13:04:02
As in GN, this target needs a dependency on the ta
Eugene But (OOO till 7-30)
2016/05/31 17:26:57
Done.
| |
53 'actions': [ | |
54 { | |
55 'action_name': 'test_resources', | |
56 'variables': { | |
57 'grit_grd_file': 'test/test_resources.grd', | |
58 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ios/web/test', | |
59 'grit_additional_defines': [ | |
60 '-E', 'root_gen_dir=<(SHARED_INTERMEDIATE_DIR)', | |
61 ], | |
62 }, | |
63 'includes': [ '../../build/grit_action.gypi' ], | |
64 }, | |
65 ], | |
66 'copies': [ | |
67 { | |
68 'destination': '<(PRODUCT_DIR)', | |
69 'files': [ | |
70 '<(SHARED_INTERMEDIATE_DIR)/ios/web/test/test_resources.pak' | |
71 ], | |
72 }, | |
73 ], | |
74 'direct_dependent_settings': { | |
75 'include_dirs': [ | |
76 '<(SHARED_INTERMEDIATE_DIR)', | |
77 ], | |
78 }, | |
79 }, | |
80 { | |
81 'target_name': 'packed_test_resources', | |
82 'type': 'none', | |
83 'hard_depency': 1, | |
84 'dependencies': [ | |
85 'test_resources', | |
86 ], | |
87 'variables': { | |
88 'repack_path': [ | |
89 '../../tools/grit/grit/format/repack.py', | |
90 ], | |
91 }, | |
92 'actions': [ | |
93 { | |
94 'action_name': 'repack_test_resources', | |
95 'variables': { | |
96 'pak_inputs': [ | |
97 '<(SHARED_INTERMEDIATE_DIR)/ios/web/ios_web_resources.pak', | |
98 '<(SHARED_INTERMEDIATE_DIR)/ios/web/test/test_resources.pak' | |
99 ], | |
100 'pak_output': '<(SHARED_INTERMEDIATE_DIR)/ios/web/test/resources.pak ', | |
101 }, | |
102 'includes': [ '../../build/repack_action.gypi' ], | |
103 }, | |
25 ], | 104 ], |
26 }, | 105 }, |
27 ], | 106 ], |
28 } | 107 } |
OLD | NEW |