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

Unified Diff: utils/pub/pub.gyp

Issue 247073003: Create targets for dart2js files, pub files, pkg files. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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
« utils/compiler/compiler.gyp ('K') | « utils/compiler/compiler.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.gyp
===================================================================
--- utils/pub/pub.gyp (revision 35247)
+++ utils/pub/pub.gyp (working copy)
@@ -10,16 +10,19 @@
'dependencies': [
'../../runtime/dart-runtime.gyp:dart',
'../../pkg/pkg.gyp:pkg_packages',
+ '../../pkg/pkg.gyp:pkg_files_stamp',
+ '../../utils/compiler/compiler.gyp:dart2js_files_stamp',
+ 'pub_files_stamp'
],
'actions': [
{
'action_name': 'generate_pub_snapshot',
'inputs': [
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
- '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/lib/_internal/pub"])',
'../../sdk/lib/_internal/libraries.dart',
- '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/lib/_internal/compiler"])',
- '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../pkg"])',
+ '<(SHARED_INTERMEDIATE_DIR)/pub_files.stamp',
+ '<(SHARED_INTERMEDIATE_DIR)/dart2js_files.stamp',
+ '<(SHARED_INTERMEDIATE_DIR)/pgk_files.stamp',
ahe 2014/04/22 11:28:46 pgk -> pkg.
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot',
@@ -33,5 +36,32 @@
},
],
},
+ # Other targets depend on pub files, but have to many inputs, which causes
+ # issues on some platforms.
+ # This target lists all the files in sdk/lib/_internal/pub,
+ # and creates a single pub_files.stamp
+ {
+ 'target_name': 'pub_files_stamp',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'make_pub_files_stamp',
+ 'inputs': [
+ '../../tools/create_timestamp_file.py',
+ '<!@(["python", "../../tools/list_files.py", "\\.dart$",'
+ ' "../../sdk/lib/_internal/pub"])',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/pub_files.stamp',
+ ],
+ 'action': [
+ 'python', '../../tools/create_timestamp_file.py',
+ '<@(_outputs)',
+ ],
+ },
+ ],
+ }
+
+
],
}
« utils/compiler/compiler.gyp ('K') | « utils/compiler/compiler.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698