OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # This file contains resources for the ui_unittests test bundle. | 5 # This file contains resources for the ui_unittests test bundle. |
6 # See chrome_dll_bundle.gypi for a description of the techniques here. | 6 # See chrome_dll_bundle.gypi for a description of the techniques here. |
7 { | 7 { |
8 'product_name': 'ui_unittests Framework', | 8 'product_name': 'ui_unittests Framework', |
9 'variables': { | 9 'variables': { |
| 10 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui', |
| 11 |
10 # There is no executable in the mock framework, and so nothing to strip. | 12 # There is no executable in the mock framework, and so nothing to strip. |
11 'mac_strip': 0, | 13 'mac_strip': 0, |
12 }, | 14 }, |
13 'mac_bundle': 1, | 15 'mac_bundle': 1, |
14 'xcode_settings': { | 16 'xcode_settings': { |
15 'CHROMIUM_BUNDLE_ID': 'com.google.ChromiumUITests', | 17 'CHROMIUM_BUNDLE_ID': 'com.google.ChromiumUITests', |
16 'DYLIB_COMPATIBILITY_VERSION': '1.0.0', | 18 'DYLIB_COMPATIBILITY_VERSION': '1.0.0', |
17 'DYLIB_CURRENT_VERSION': '1.0.0', | 19 'DYLIB_CURRENT_VERSION': '1.0.0', |
18 'DYLIB_INSTALL_NAME_BASE': '@executable_path/../Versions/1.0.0.0', | 20 'DYLIB_INSTALL_NAME_BASE': '@executable_path/../Versions/1.0.0.0', |
19 'LD_DYLIB_INSTALL_NAME': | 21 'LD_DYLIB_INSTALL_NAME': |
20 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NA
ME)', | 22 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NA
ME)', |
21 'INFOPLIST_FILE': 'test/framework-Info.plist', | 23 'INFOPLIST_FILE': 'test/framework-Info.plist', |
22 }, | 24 }, |
23 'mac_bundle_resources': [ | 25 'mac_bundle_resources': [ |
24 'test/framework-Info.plist', | 26 'test/framework-Info.plist', |
25 '<(PRODUCT_DIR)/ui_test.pak', | 27 '<(PRODUCT_DIR)/ui_test.pak', |
26 | 28 '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_
INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))', |
27 # Just include the English-US locale made by ui_resources.gyp:ui_test_pak. | |
28 # Note that the file is just a copy of ui_test.pak, with a different path. | |
29 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak', | |
30 ], | 29 ], |
31 'mac_bundle_resources!': [ | 30 'mac_bundle_resources!': [ |
32 'test/framework-Info.plist', | 31 'test/framework-Info.plist', |
33 ], | 32 ], |
34 'postbuilds': [ | 33 'postbuilds': [ |
35 { | 34 { |
36 'postbuild_name': 'Symlink Resources', | 35 'postbuild_name': 'Symlink Resources', |
37 'action': [ | 36 'action': [ |
38 'ln', | 37 'ln', |
39 '-fns', | 38 '-fns', |
40 'Versions/A/Resources', | 39 'Versions/A/Resources', |
41 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Resources' | 40 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Resources' |
42 ], | 41 ], |
43 }, | 42 }, |
44 { | 43 { |
45 # Resource bundle pak names are hardcoded. This allows ui_test.pak to be | 44 # Resource bundle pak names are hardcoded. This allows ui_test.pak to be |
46 # found while running the ResourceBundle tests. | 45 # found while running the ResourceBundle tests. |
47 'postbuild_name': 'Symlink chrome_100_percent for test', | 46 'postbuild_name': 'Symlink chrome_100_percent for test', |
48 'action': [ | 47 'action': [ |
49 'ln', | 48 'ln', |
50 '-fns', | 49 '-fns', |
51 'ui_test.pak', | 50 'ui_test.pak', |
52 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Versions/A/Resources/chrome_100_p
ercent.pak' | 51 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Versions/A/Resources/chrome_100_p
ercent.pak' |
53 ], | 52 ], |
54 }, | 53 }, |
55 ], | 54 ], |
56 } | 55 } |
OLD | NEW |