1 # Copyright (c) 2009 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.
7 # TODO: remove this helper when we have loops in GYP
8 'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py',],
10 'grit_info_cmd': ['python', '../tools/grit/grit_info.py',],
11 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app',
12 'grit_cmd': ['python', '../tools/grit/grit.py'],
13 'localizable_resources': [
14 'resources/app_locale_settings.grd',
15 'resources/app_strings.grd',
23 'target_name': 'app_unittests',
25 'msvs_guid': 'B4D59AE8-8D2F-97E1-A8E9-6D2826729530',
29 '../net/net.gyp:net_test_support',
30 '../skia/skia.gyp:skia',
31 '../testing/gmock.gyp:gmock',
32 '../testing/gtest.gyp:gtest',
33 '../third_party/icu/icu.gyp:icui18n',
34 '../third_party/icu/icu.gyp:icuuc',
35 '../third_party/libjpeg/libjpeg.gyp:libjpeg',
36 '../third_party/libpng/libpng.gyp:libpng',
37 '../third_party/libxml/libxml.gyp:libxml',
38 '../third_party/zlib/zlib.gyp:zlib',
41 'animation_container_unittest.cc',
42 'animation_unittest.cc',
43 'clipboard/clipboard_unittest.cc',
44 'l10n_util_mac_unittest.mm',
45 'l10n_util_unittest.cc',
46 'multi_animation_unittest.cc',
47 'os_exchange_data_win_unittest.cc',
48 'run_all_unittests.cc',
49 'slide_animation_unittest.cc',
50 'sql/connection_unittest.cc',
51 'sql/statement_unittest.cc',
52 'sql/transaction_unittest.cc',
53 'system_monitor_unittest.cc',
55 'text_elider_unittest.cc',
56 'tree_node_iterator_unittest.cc',
57 'win_util_unittest.cc',
63 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
65 'gtk_dnd_util_unittest.cc',
68 'app_unittest_strings',
69 '../build/linux/system.gyp:gtk',
70 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
75 'os_exchange_data_win_unittest.cc',
76 'win_util_unittest.cc',
79 ['OS =="linux" or OS =="freebsd"', {
81 ['linux_use_tcmalloc==1', {
83 '../base/allocator/allocator.gyp:allocator',
91 'target_name': 'app_strings',
92 'msvs_guid': 'AE9BF4A2-19C5-49D8-BB1A-F28496DD7051',
99 '<!@(<(grit_info_cmd) --inputs <(localizable_resources))',
102 '<(grit_out_dir)/<(RULE_INPUT_ROOT)/grit/<(RULE_INPUT_ROOT).h',
103 # TODO: remove this helper when we have loops in GYP
104 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(RULE_INPUT_ROOT)/<(RULE_INPUT_ROOT)_ZZLOCALE.pak\' <(locales))',
106 'action': ['<@(grit_cmd)', '-i', '<(RULE_INPUT_PATH)',
107 'build', '-o', '<(grit_out_dir)/<(RULE_INPUT_ROOT)'],
108 'message': 'Generating resources from <(RULE_INPUT_PATH)',
110 ['use_titlecase_in_grd_files==1', {
111 'action': ['-D', 'use_titlecase'],
117 '<@(localizable_resources)',
119 'direct_dependent_settings': {
121 '<(grit_out_dir)/app_locale_settings',
122 '<(grit_out_dir)/app_strings',
127 'dependencies': ['../build/win/system.gyp:cygwin'],
132 'target_name': 'app_resources',
134 'msvs_guid': '3FBC4235-3FBD-46DF-AEDC-BADBBA13A095',
137 'action_name': 'app_resources',
139 'input_path': 'resources/app_resources.grd',
142 '<!@(<(grit_info_cmd) --inputs <(input_path))',
145 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)/app_resources\' <(input_path))',
147 'action': ['<@(grit_cmd)',
148 '-i', '<(input_path)', 'build',
149 '-o', '<(grit_out_dir)/app_resources'],
151 ['toolkit_views==1', {
152 'action': ['-D', 'toolkit_views'],
155 'message': 'Generating resources from <(input_path)',
158 'direct_dependent_settings': {
160 '<(grit_out_dir)/app_resources',
165 'dependencies': ['../build/win/system.gyp:cygwin'],
171 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
173 'target_name': 'app_unittest_strings',
176 'repack_path': '<(DEPTH)/tools/data_pack/repack.py',
180 'action_name': 'repack_app_unittest_strings',
183 '<(grit_out_dir)/app_strings/app_strings_en-US.pak',
184 '<(grit_out_dir)/app_locale_settings/app_locale_settings_en-US.pak',
192 '<(PRODUCT_DIR)/app_unittests_strings/en-US.pak',
194 'action': ['python', '<(repack_path)', '<@(_outputs)',
200 'destination': '<(PRODUCT_DIR)/app_unittests_strings',
202 '<(grit_out_dir)/app_resources/app_resources.pak',
213 # indent-tabs-mode:nil
215 # vim: set expandtab tabstop=2 shiftwidth=2: