summaryrefslogtreecommitdiffstats
path: root/url
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-13 03:02:12 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-13 03:02:12 +0000
commita6fa374a96cd048799d922601d2dd4103b2f1f69 (patch)
treef5d3828619db1eca4a18fbec5edaff4f8c538cf0 /url
parent07fd48ad182ab6655dbc35f5a687cf04d793acaa (diff)
downloadchromium_src-a6fa374a96cd048799d922601d2dd4103b2f1f69.zip
chromium_src-a6fa374a96cd048799d922601d2dd4103b2f1f69.tar.gz
chromium_src-a6fa374a96cd048799d922601d2dd4103b2f1f69.tar.bz2
url: Copy 'googleurl_unittests' target from 'url_unittests'.
To not break the buildbot, this creates a fake target that copies url_unittests to googleurl_unittests as temporary scaffolding. BUG=229660 R=brettw@chromium.org Review URL: https://chromiumcodereview.appspot.com/14013003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url')
-rw-r--r--url/url.gyp95
1 files changed, 78 insertions, 17 deletions
diff --git a/url/url.gyp b/url/url.gyp
index 2359d8f..5fb317c 100644
--- a/url/url.gyp
+++ b/url/url.gyp
@@ -56,23 +56,25 @@
'FULL_FILESYSTEM_URL_SUPPORT=1',
],
'conditions': [
- ['component=="shared_library"', {
- 'defines': [
- 'GURL_DLL',
- 'GURL_IMPLEMENTATION=1',
- ],
- 'direct_dependent_settings': {
+ ['component=="shared_library"',
+ {
'defines': [
'GURL_DLL',
+ 'GURL_IMPLEMENTATION=1',
],
- },
- }],
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'GURL_DLL',
+ ],
+ },
+ }
+ ],
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],
},
{
- 'target_name': 'googleurl_unittests',
+ 'target_name': 'url_unittests',
'type': 'executable',
'dependencies': [
'url',
@@ -92,18 +94,77 @@
'FULL_FILESYSTEM_URL_SUPPORT=1',
],
'conditions': [
- ['os_posix==1 and OS!="mac" and OS!="ios"', {
- 'conditions': [
- ['linux_use_tcmalloc==1', {
- 'dependencies': [
- '../base/allocator/allocator.gyp:allocator',
+ ['os_posix==1 and OS!="mac" and OS!="ios"',
+ {
+ 'conditions': [
+ ['linux_use_tcmalloc==1',
+ {
+ 'dependencies': [
+ '../base/allocator/allocator.gyp:allocator',
+ ],
+ }
],
- }],
- ],
- }],
+ ],
+ }
+ ],
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],
},
+ {
+ 'target_name': 'googleurl_unittests',
+ 'type': 'none',
+ 'dependencies': [
+ 'url_unittests',
+ ],
+ 'conditions': [
+ ['OS != "ios"',
+ {
+ 'actions': [
+ {
+ 'message': 'TEMPORARY: Copying url_unittests to googleurl_unittests',
+ 'variables': {
+ 'url_copy_target': '<(PRODUCT_DIR)/url_unittests<(EXECUTABLE_SUFFIX)',
+ 'url_copy_dest': '<(PRODUCT_DIR)/googleurl_unittests<(EXECUTABLE_SUFFIX)',
+ },
+ 'inputs': ['<(url_copy_target)'],
+ 'outputs': ['<(url_copy_dest)'],
+ 'action_name': 'TEMP_copy_url_unittests',
+ 'action': [
+ 'python', '-c',
+ 'import os, shutil, stat; ' \
+ 'shutil.copyfile(\'<(url_copy_target)\', \'<(url_copy_dest)\'); ' \
+ 'os.chmod(\'<(url_copy_dest)\', ' \
+ 'stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)'
+ ],
+ },
+ ],
+ }
+ ],
+ ['OS == "ios"',
+ {
+ 'actions': [
+ {
+ 'message': 'TEMPORARY: Copying url_unittests to googleurl_unittests',
+ 'variables': {
+ 'url_copy_target': '<(PRODUCT_DIR)/url_unittests.app/url_unittests',
+ 'url_copy_dest': '<(PRODUCT_DIR)/googleurl_unittests.app/googleurl_unittests',
+ },
+ 'inputs': ['<(url_copy_target)'],
+ 'outputs': ['<(url_copy_dest)'],
+ 'action_name': 'TEMP_copy_url_unittests',
+ 'action': [
+ 'python', '-c',
+ 'import os, shutil, stat; ' \
+ 'shutil.copyfile(\'<(url_copy_target)\', \'<(url_copy_dest)\'); ' \
+ 'os.chmod(\'<(url_copy_dest)\', ' \
+ 'stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)'
+ ],
+ },
+ ],
+ }
+ ]
+ ],
+ },
],
}