diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/modules.gyp')
-rw-r--r-- | chromium/third_party/WebKit/Source/modules/modules.gyp | 116 |
1 files changed, 114 insertions, 2 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/modules.gyp b/chromium/third_party/WebKit/Source/modules/modules.gyp index 37dcf524e18..54427584d19 100644 --- a/chromium/third_party/WebKit/Source/modules/modules.gyp +++ b/chromium/third_party/WebKit/Source/modules/modules.gyp @@ -29,10 +29,13 @@ # { 'includes': [ + '../build/scripts/scripts.gypi', '../build/win/precompile.gypi', + '../bindings/modules/modules.gypi', # modules can depend on bindings/modules, but not on bindings 'modules.gypi', ], 'targets': [{ + # GN version: //third_party/WebKit/Source/modules:modules 'target_name': 'modules', 'type': 'static_library', 'dependencies': [ @@ -40,19 +43,108 @@ '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite', '../config.gyp:config', '../core/core.gyp:webcore', + 'make_modules_generated', ], 'defines': [ 'BLINK_IMPLEMENTATION=1', 'INSIDE_BLINK', ], + 'include_dirs': [ + # FIXME: Remove these once scripts generate qualified + # includes correctly: http://crbug.com/380054 + '<(blink_core_output_dir)', + '<(blink_modules_output_dir)', + ], 'sources': [ '<@(modules_files)', + '<@(bindings_modules_v8_generated_aggregate_files)', + ], + 'actions': [ + { + # GN version: //third_party/WebKit/Source/modules:modules_fetch_polyfill + 'action_name': 'FetchPolyfill', + 'process_outputs_as_sources': 1, + 'variables': { + 'resources': [ + 'serviceworkers/polyfills/fetchPolyfill.js', + ], + }, + 'inputs': [ + '../build/scripts/make-file-arrays.py', + '<@(resources)', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.h', + '<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.cpp', + ], + 'action': [ + 'python', + '../build/scripts/make-file-arrays.py', + '--out-h=<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.h', + '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.cpp', + '--namespace=WebCore', + '<@(resources)', + ], + }, + { + # GN version: //third_party/WebKit/Source/modules:modules_cache_polyfill + 'action_name': 'CachePolyfill', + 'process_outputs_as_sources': 1, + 'variables': { + 'resources': [ + 'serviceworkers/polyfills/cachePolyfill.js', + ], + }, + 'inputs': [ + '../build/scripts/make-file-arrays.py', + '<@(resources)', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.h', + '<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.cpp', + ], + 'action': [ + 'python', + '../build/scripts/make-file-arrays.py', + '--out-h=<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.h', + '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.cpp', + '--namespace=WebCore', + '<@(resources)', + ], + }, + { + # GN version: //third_party/WebKit/Source/modules:modules_cache_storage_polyfill + 'action_name': 'CacheStoragePolyfill', + 'process_outputs_as_sources': 1, + 'variables': { + 'resources': [ + 'serviceworkers/polyfills/cacheStoragePolyfill.js', + ], + }, + 'inputs': [ + '../build/scripts/make-file-arrays.py', + '<@(resources)', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.h', + '<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.cpp', + ], + 'action': [ + 'python', + '../build/scripts/make-file-arrays.py', + '--out-h=<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.h', + '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.cpp', + '--namespace=WebCore', + '<@(resources)', + ], + }, ], # Disable c4267 warnings until we fix size_t to int truncations. 'msvs_disabled_warnings': [ 4267, 4334, ] }, { - 'target_name': 'modules_test_support', + # GN version: //third_party/WebKit/Source/modules:modules_testing + 'target_name': 'modules_testing', 'type': 'static_library', 'dependencies': [ '../config.gyp:config', @@ -63,8 +155,28 @@ 'INSIDE_BLINK', ], 'sources': [ - '<@(modules_testing_support_files)', + '<@(modules_testing_files)', ], + }, + { + # FIXME: should be in modules_generated.gyp + # GN version: //third_party/WebKit/Source/modules:make_modules_generated + 'target_name': 'make_modules_generated', + 'type': 'none', + 'hard_dependency': 1, + 'dependencies': [ + #'generated_testing_idls', + '../core/core_generated.gyp:core_event_interfaces', + '../bindings/modules/generated.gyp:modules_event_generated', + '../config.gyp:config', + ], + 'sources': [ + # bison rule + '../core/css/CSSGrammar.y', + '../core/xml/XPathGrammar.y', + ], + 'actions': [ + ], }], } |