OLD | NEW |
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'create_sdk_internal', | 8 'target_name': 'create_sdk_internal', |
9 'type': 'none', | 9 'type': 'none', |
10 'dependencies': [ | 10 'dependencies': [ |
11 'runtime/dart-runtime.gyp:dart', | 11 'runtime/dart-runtime.gyp:dart', |
12 'utils/compiler/compiler.gyp:dart2js', | 12 'utils/compiler/compiler.gyp:dart2js', |
13 'utils/pub/pub.gyp:pub', | 13 'utils/pub/pub.gyp:pub', |
14 'utils/pub/pub.gyp:core_stubs', | 14 'utils/pub/pub.gyp:core_stubs', |
15 'utils/dartfmt/dartfmt.gyp:dartfmt', | 15 'utils/dartfmt/dartfmt.gyp:dartfmt', |
16 'utils/analysis_server/analysis_server.gyp:analysis_server', | 16 'utils/analysis_server/analysis_server.gyp:analysis_server', |
17 'utils/dartanalyzer/dartanalyzer.gyp:dartanalyzer', | 17 'utils/dartanalyzer/dartanalyzer.gyp:dartanalyzer', |
18 ], | 18 ], |
19 'actions': [ | 19 'actions': [ |
20 { | 20 { |
21 'action_name': 'create_sdk_py', | 21 'action_name': 'create_sdk_py', |
22 'inputs': [ | 22 'inputs': [ |
23 '<!@(["python", "tools/list_files.py", "\\.dart$", "sdk/lib"])', | 23 # This is neccessary because we have all the pub test files inside |
| 24 # the pub directory instead of in tests/pub. Xcode can only handle |
| 25 # a certain amount of files in one list (also depending on the |
| 26 # length of the path from where you run). This regexp excludes |
| 27 # pub/test and pub_generated/test |
| 28 '<!@(["python", "tools/list_files.py",' |
| 29 '"^(?!.*pub/test)(?!.*pub_generated/test).*dart$",' |
| 30 '"sdk/lib"])', |
24 '<!@(["python", "tools/list_files.py", "", ' | 31 '<!@(["python", "tools/list_files.py", "", ' |
25 '"sdk/lib/_internal/compiler/js_lib/preambles"])', | 32 '"sdk/lib/_internal/compiler/js_lib/preambles"])', |
26 '<!@(["python", "tools/list_files.py", "", "sdk/bin"])', | 33 '<!@(["python", "tools/list_files.py", "", "sdk/bin"])', |
27 'tools/create_sdk.py', | 34 'tools/create_sdk.py', |
28 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 35 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
29 '<(SHARED_INTERMEDIATE_DIR)/dart2js.dart.snapshot', | 36 '<(SHARED_INTERMEDIATE_DIR)/dart2js.dart.snapshot', |
30 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', | 37 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', |
31 '<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', | 38 '<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', |
32 '<(SHARED_INTERMEDIATE_DIR)/dartanalyzer.dart.snapshot', | 39 '<(SHARED_INTERMEDIATE_DIR)/dartanalyzer.dart.snapshot', |
33 '<(SHARED_INTERMEDIATE_DIR)/dartfmt.dart.snapshot', | 40 '<(SHARED_INTERMEDIATE_DIR)/dartfmt.dart.snapshot', |
34 '<(SHARED_INTERMEDIATE_DIR)/core_stubs/dart_io.dart', | 41 '<(SHARED_INTERMEDIATE_DIR)/core_stubs/dart_io.dart', |
35 '<(SHARED_INTERMEDIATE_DIR)/analysis_server.dart.snapshot', | 42 '<(SHARED_INTERMEDIATE_DIR)/analysis_server.dart.snapshot', |
36 'tools/VERSION' | 43 'tools/VERSION' |
37 ], | 44 ], |
38 'outputs': [ | 45 'outputs': [ |
39 '<(PRODUCT_DIR)/dart-sdk/README', | 46 '<(PRODUCT_DIR)/dart-sdk/README', |
40 ], | 47 ], |
41 'action': [ | 48 'action': [ |
42 'python', | 49 'python', |
43 'tools/create_sdk.py', | 50 'tools/create_sdk.py', |
44 '--sdk_output_dir', '<(PRODUCT_DIR)/dart-sdk', | 51 '--sdk_output_dir', '<(PRODUCT_DIR)/dart-sdk', |
45 '--snapshot_location', '<(SHARED_INTERMEDIATE_DIR)/' | 52 '--snapshot_location', '<(SHARED_INTERMEDIATE_DIR)/' |
46 ], | 53 ], |
47 'message': 'Creating SDK.', | 54 'message': 'Creating SDK.', |
48 }, | 55 }, |
49 ], | 56 ], |
50 }, | 57 }, |
51 ], | 58 ], |
52 } | 59 } |
OLD | NEW |