Index: dart/dart.gyp |
diff --git a/dart/dart.gyp b/dart/dart.gyp |
index d206fccbe4e269668a628029d0d2accdb1ef6959..9778fc3720ea67689587e96b5d0a8a575db6c4c1 100644 |
--- a/dart/dart.gyp |
+++ b/dart/dart.gyp |
@@ -114,6 +114,44 @@ |
], |
}, |
{ |
+ 'target_name': 'editor', |
+ 'type': 'none', |
+ 'dependencies': [ |
+ 'editor/build/generated/editor_deps.gyp:editor_deps', |
+ |
+ # This dependency on create_sdk does not mean that the Editor |
+ # is rebuilt if the SDK is. It only means that when you build |
+ # the Editor, you should also build the SDK. If we wanted to |
+ # make sure that the editor is rebuilt when the SDK is, we |
+ # should list a *file* in PRODUCT_DIR which the action below |
+ # uses as input. |
+ # This is the desired behavior as we would otherwise have to |
+ # rebuild the editor each time the VM, dart2js, or library |
+ # code changes. |
+ 'create_sdk', |
+ ], |
+ 'actions': [ |
+ { |
+ 'action_name': 'create_editor_py', |
+ 'inputs': [ |
+ 'tools/create_editor.py', |
+ '<(SHARED_INTERMEDIATE_DIR)/editor_deps/editor.stamp', |
+ '<!@(["python", "tools/list_files.py", "", "editor/tools/features/com.google.dart.tools.deploy.feature_releng"])', |
+ ], |
+ 'outputs': [ |
+ '<(PRODUCT_DIR)/editor/VERSION', |
+ ], |
+ 'action': [ |
+ 'python', |
+ 'tools/create_editor.py', |
+ '--out', '<(PRODUCT_DIR)/editor', |
+ '--build', '<(INTERMEDIATE_DIR)', |
+ ], |
+ 'message': 'Creating editor.', |
+ }, |
+ ], |
+ }, |
+ { |
'target_name': 'samples', |
'type': 'none', |
'dependencies': [ |