diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-21 22:21:47 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-21 22:21:47 +0000 |
commit | 525c485c39044c13dd7fb08b6e90f2c2899626b0 (patch) | |
tree | a46d27f76413eed595016d5dbe69c7912afae570 /webkit/support/setup_third_party.gyp | |
parent | cddf7b3843b2af971a8b48d5b53f87d3fea0064b (diff) | |
download | chromium_src-525c485c39044c13dd7fb08b6e90f2c2899626b0.zip chromium_src-525c485c39044c13dd7fb08b6e90f2c2899626b0.tar.gz chromium_src-525c485c39044c13dd7fb08b6e90f2c2899626b0.tar.bz2 |
Use forwarding headers instead of copying header files
for webkit.org checkouts. This avoid the chance of someone
accidentally editing a file in WebKit/chromium/third_party/WebKit/
or the files being out of date.
BUG=56677
Review URL: http://codereview.chromium.org/3961001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/setup_third_party.gyp')
-rw-r--r-- | webkit/support/setup_third_party.gyp | 86 |
1 files changed, 44 insertions, 42 deletions
diff --git a/webkit/support/setup_third_party.gyp b/webkit/support/setup_third_party.gyp index c5cce6c..cf9d540 100644 --- a/webkit/support/setup_third_party.gyp +++ b/webkit/support/setup_third_party.gyp @@ -4,59 +4,61 @@ { 'variables': { - 'list_headers_cmd': ['python', 'list_headers.py'], - 'destination': '<(DEPTH)/third_party/WebKit/WebKit/chromium/public', + 'setup_third_party_cmd': ['python', 'setup_third_party.py'], + 'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit/third_party/WebKit/WebKit/chromium/public', + 'destination_mac': '<(SHARED_INTERMEDIATE_DIR)/webkit/third_party/WebKit/WebKit/mac/WebCoreSupport', }, 'targets': [ { - # TODO(tony): Would be nice if this would make symlinks on linux/mac - # and try to make hardlinks on ntfs. 'target_name': 'third_party_headers', 'type': 'none', - 'copies': [ + 'direct_dependent_settings': { + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)/webkit', + ], + }, + 'actions': [ { - 'destination': '<(destination)', - 'files': [ - '<!@(<(list_headers_cmd) <(DEPTH)/public/)', + 'action_name': 'third_party_forwarding_headers', + 'inputs': [ + '<!@(<(setup_third_party_cmd) inputs <(DEPTH)/public)', + 'setup_third_party.py', ], - }, - { - 'destination': '<(destination)/gtk', - 'files': [ - '<!@(<(list_headers_cmd) <(DEPTH)/public/gtk/)', - ], - }, - { - 'destination': '<(destination)/linux', - 'files': [ - '<!@(<(list_headers_cmd) <(DEPTH)/public/linux/)', + 'outputs': [ + "<!@(<(setup_third_party_cmd) outputs <(DEPTH)/public '<(destination)')", ], - }, - { - 'destination': '<(destination)/mac', - 'files': [ - '<!@(<(list_headers_cmd) <(DEPTH)/public/mac/)', + 'action': [ + '<@(setup_third_party_cmd)', + 'setup_headers', + '<(DEPTH)/public', + '<(destination)', ], + 'message': 'Generating forwarding headers for third_party/WebKit/WebKit/chromium/public', }, - { - 'destination': '<(destination)/win', - 'files': [ - '<!@(<(list_headers_cmd) <(DEPTH)/public/win/)', + ], + 'conditions': [ + ['OS=="mac"', { + 'actions': [ + { + 'action_name': 'third_party_mac_forwarding_headers', + 'inputs': [ + '<!@(<(setup_third_party_cmd) inputs <(DEPTH)/../mac/WebCoreSupport)', + 'setup_third_party.py', + ], + 'outputs': [ + "<!@(<(setup_third_party_cmd) outputs <(DEPTH)/../mac/WebCoreSupport '<(destination_mac)')", + ], + 'action': [ + '<@(setup_third_party_cmd)', + 'setup_headers', + '<(DEPTH)/../mac/WebCoreSupport', + '<(destination_mac)', + ], + 'message': 'Generating forwarding headers for third_party/WebKit/WebKit/mac/WebCoreSupport', + }, ], - }, - { - 'destination': '<(destination)/x11', - 'files': [ - '<!@(<(list_headers_cmd) <(DEPTH)/public/x11/)', - ], - }, - { - 'destination': '<(DEPTH)/third_party/WebKit/WebKit/mac/WebCoreSupport', - 'files': [ - '<(DEPTH)/../mac/WebCoreSupport/WebSystemInterface.h', - ], - }, - ] + }], + ], }, ], } |