Fix mac gyp generation by moving target to seperate file.
R=whesse@google.com
Review URL: https://codereview.chromium.org//247273003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35256 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/pkg/pkg.gyp b/pkg/pkg.gyp
index 57dc3a5..df21e10 100644
--- a/pkg/pkg.gyp
+++ b/pkg/pkg.gyp
@@ -32,31 +32,5 @@
},
],
},
- # Other targets depend on pkg files, but have to many inputs, which causes
- # issues on some platforms.
- # This target lists all the files in pkg and third_party/pkg,
- # and creates a single pkg_files.stamp
- {
- 'target_name': 'pkg_files_stamp',
- 'type': 'none',
- 'actions': [
- {
- 'action_name': 'make_pkg_files_stamp',
- 'inputs': [
- '../tools/create_timestamp_file.py',
- '<!@(["python", "../tools/list_files.py", "", "."])',
- '<!@(["python", "../tools/list_files.py", "",'
- '"../third_party/pkg"])',
- ],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp',
- ],
- 'action': [
- 'python', '../tools/create_timestamp_file.py',
- '<@(_outputs)',
- ],
- },
- ],
- }
],
}
diff --git a/pkg/pkg_files.gyp b/pkg/pkg_files.gyp
new file mode 100644
index 0000000..e5da4fe
--- /dev/null
+++ b/pkg/pkg_files.gyp
@@ -0,0 +1,34 @@
+# Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+{
+ 'targets': [
+ # Other targets depend on pkg files, but have to many inputs, which causes
+ # issues on some platforms.
+ # This target lists all the files in pkg and third_party/pkg,
+ # and creates a single pkg_files.stamp
+ {
+ 'target_name': 'pkg_files_stamp',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'make_pkg_files_stamp',
+ 'inputs': [
+ '../tools/create_timestamp_file.py',
+ '<!@(["python", "../tools/list_files.py", "", "."])',
+ '<!@(["python", "../tools/list_files.py", "",'
+ '"../third_party/pkg"])',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp',
+ ],
+ 'action': [
+ 'python', '../tools/create_timestamp_file.py',
+ '<@(_outputs)',
+ ],
+ },
+ ],
+ }
+ ],
+}
diff --git a/utils/pub/pub.gyp b/utils/pub/pub.gyp
index 0bfd9f8..9bc9ad2 100644
--- a/utils/pub/pub.gyp
+++ b/utils/pub/pub.gyp
@@ -10,7 +10,7 @@
'dependencies': [
'../../runtime/dart-runtime.gyp:dart',
'../../pkg/pkg.gyp:pkg_packages',
- '../../pkg/pkg.gyp:pkg_files_stamp',
+ '../../pkg/pkg_files.gyp:pkg_files_stamp',
'../../utils/compiler/compiler.gyp:dart2js_files_stamp',
'pub_files_stamp'
],