diff options
Diffstat (limited to 'url')
-rw-r--r-- | url/url.gyp | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/url/url.gyp b/url/url.gyp index 4f86e5d..aff709e 100644 --- a/url/url.gyp +++ b/url/url.gyp @@ -95,5 +95,67 @@ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 'msvs_disabled_warnings': [4267, ], }, + { + # url_unittests was formerly named googleurl_unittests. While the build + # bots are being switched to use the new name we need to support both + # executables. + # TODO(tfarina): Remove this target when build bots are building and + # running url_unittests. crbug.com/229660 + 'target_name': 'googleurl_unittests', + 'type': 'none', + 'dependencies': [ + 'url_unittests', + ], + 'conditions': [ + ['OS != "ios"', + { + 'actions': [ + { + 'message': 'TEMPORARY: Copying url_unittests to googleurl_unittests', + 'action_name': 'copy_url_unittests', + 'variables': { + 'source_file': '<(PRODUCT_DIR)/url_unittests<(EXECUTABLE_SUFFIX)', + 'dest_file': '<(PRODUCT_DIR)/googleurl_unittests<(EXECUTABLE_SUFFIX)', + }, + 'inputs': [ + '../build/cp.py', + '<(source_file)', + ], + 'outputs': [ + '<(dest_file)', + ], + 'action': [ + 'python', '../build/cp.py', '<(source_file)', '<(dest_file)', + ], + }, + ], + } + ], + ['OS == "ios"', + { + 'actions': [ + { + 'message': 'TEMPORARY: Copying url_unittests to googleurl_unittests', + 'action_name': 'copy_url_unittests', + 'variables': { + 'source_file': '<(PRODUCT_DIR)/url_unittests.app/url_unittests', + 'dest_file': '<(PRODUCT_DIR)/googleurl_unittests.app/googleurl_unittests', + }, + 'inputs': [ + '../build/cp.py', + '<(source_file)', + ], + 'outputs': [ + '<(dest_file)', + ], + 'action': [ + 'python', '../build/cp.py', '<(source_file)', '<(dest_file)', + ], + }, + ], + } + ] + ], + }, ], } |