/
dart.gyp
116 lines (114 loc) · 2.93 KB
/
dart.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Copyright (c) 2012, 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.
{
'variables': {
# These variables are used in the creation of the .vcproj file on
# Windows.
'cygwin_dir': 'third_party/cygwin',
},
'targets': [
{
'target_name': 'compiler',
'type': 'none',
'dependencies': [
'compiler/dart-compiler.gyp:dartc',
],
'actions': []
},
{
'target_name': 'runtime',
'type': 'none',
'dependencies': [
'runtime/dart-runtime.gyp:dart',
'runtime/dart-runtime.gyp:run_vm_tests',
'runtime/dart-runtime.gyp:process_test',
],
},
{
'target_name': 'create_sdk',
'type': 'none',
'conditions': [
['OS=="win"', {
'msvs_cygwin_dirs': ['<(cygwin_dir)'],
}],
],
'dependencies': [
'runtime',
],
'actions': [
{
'action_name': 'create_sdk_py',
'inputs': [
'<!@(["python", "frog/scripts/list_frog_files.py", "frog"])',
# TODO(dgrove) - change these to dependencies and add dom
# dependences once issues 754 and 755 are fixed
'lib/html/html_frog.dart',
'lib/html/html_dartium.dart',
'lib/dom/dom.dart',
'lib/dom/src',
'frog/scripts/bootstrap/frogc',
'tools/create_sdk.py',
],
'outputs': [
'<(PRODUCT_DIR)/dart-sdk',
],
'action': [
'python',
'tools/create_sdk.py',
'<(PRODUCT_DIR)/dart-sdk',
],
'message': 'Creating SDK.',
},
],
},
{
'target_name': 'upload_sdk',
'type': 'none',
'conditions': [
['OS=="win"', {
'msvs_cygwin_dirs': ['<(cygwin_dir)'],
}],
],
'dependencies': [
'create_sdk',
],
'actions': [
{
'action_name': 'upload_sdk_py',
'inputs': [
'<(PRODUCT_DIR)/dart-sdk',
'tools/upload_sdk.py',
],
'outputs': [
'<(PRODUCT_DIR)/upload_sdk',
],
'action': [
'python',
'tools/upload_sdk.py',
'<(PRODUCT_DIR)/dart-sdk'
],
},
],
},
{
'target_name': 'dart2js',
'type': 'none',
'dependencies': [
'utils/compiler/compiler.gyp:dart2js',
# TODO(ahe): Remove dependencies on frog and frogsh, they are
# just here to simplify
# frog/scripts/buildbot_annotated_steps.py temporarily.
'frog/dart-frog.gyp:frog',
'frog/dart-frog.gyp:frogsh',
],
},
{
'target_name': 'api_docs',
'type': 'none',
'dependencies': [
'utils/apidoc/apidoc.gyp:api_docs',
],
}
],
}