Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: Source/bindings/core/generated.gyp

Issue 315003004: IDL build: Split global object computation into core and modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleanup Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/generated.gyp
diff --git a/Source/bindings/core/generated.gyp b/Source/bindings/core/generated.gyp
index bfaeb845fa1b8c27bac00107b9c595110ed8c59e..ce4ae2489cdccb827869c0b63c0e544560487618 100644
--- a/Source/bindings/core/generated.gyp
+++ b/Source/bindings/core/generated.gyp
@@ -10,6 +10,9 @@
'includes': [
# ../.. == Source
'../../bindings/bindings.gypi',
+ # FIXME: need info about modules for constructors on global objects
+ # http://crbug.com/358074
+ '../../bindings/modules/modules.gypi',
'../../bindings/scripts/scripts.gypi',
'../../core/core.gypi',
'core.gypi',
@@ -20,11 +23,41 @@
'targets': [
################################################################################
{
+ 'target_name': 'core_global_objects',
+ 'type': 'none',
+ 'actions': [{
+ 'action_name': 'core_modules_global_objects',
+ 'inputs': [
+ '<(bindings_scripts_dir)/compute_global_objects.py',
+ '<(bindings_scripts_dir)/utilities.py',
+ # Only look in main IDL files (exclude dependencies and testing,
+ # which should not define global objects).
+ '<(core_idl_files_list)',
+ '<@(core_idl_files)',
+ ],
+ 'outputs': [
+ '<(bindings_core_output_dir)/GlobalObjectsCore.pickle',
+ ],
+ 'action': [
+ 'python',
+ '<(bindings_scripts_dir)/compute_global_objects.py',
+ '--idl-files-list',
+ '<(core_idl_files_list)',
+ '--write-file-only-if-changed',
+ '<(write_file_only_if_changed)',
+ '--',
+ '<(bindings_core_output_dir)/GlobalObjectsCore.pickle',
+ ],
+ 'message': 'Computing global objects in core',
+ }]
+ },
+################################################################################
+ {
'target_name': 'core_global_constructors_idls',
'type': 'none',
'dependencies': [
# FIXME: should be core_global_objects http://crbug.com/358074
- '../generated.gyp:global_objects',
+ '../modules/generated.gyp:modules_global_objects',
],
'actions': [{
'action_name': 'generate_core_global_constructors_idls',
@@ -35,7 +68,7 @@
# which should not appear on global objects).
'<(core_idl_files_list)',
'<@(core_idl_files)',
- '<(bindings_output_dir)/GlobalObjects.pickle',
+ '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
],
'outputs': [
'<@(core_global_constructors_generated_idl_files)',
@@ -47,7 +80,7 @@
'--idl-files-list',
'<(core_idl_files_list)',
'--global-objects-file',
- '<(bindings_output_dir)/GlobalObjects.pickle',
+ '<(bindings_modules_output_dir)/GlobalObjectsModules.pickle',
'--write-file-only-if-changed',
'<(write_file_only_if_changed)',
'--',

Powered by Google App Engine
This is Rietveld 408576698