OLD | NEW |
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, 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': 'frog', | 8 'target_name': 'frog', |
9 'conditions': [ | 9 'conditions': [ |
10 ['OS=="linux"', { | 10 ['OS!="win"', { |
11 'dependencies': [ | 11 'dependencies': [ |
12 '../runtime/dart-runtime.gyp:dart', | 12 '../runtime/dart-runtime.gyp:dart', |
13 '../third_party/v8/src/d8.gyp:d8', | 13 '../third_party/v8/src/d8.gyp:d8', |
14 ], | |
15 }], | |
16 ['OS=="mac"', { | |
17 'dependencies': [ | |
18 '../runtime/dart-runtime.gyp:dart', | |
19 '../third_party/v8/src/d8.gyp:d8', | |
20 ], | 14 ], |
21 }], | 15 }], |
22 ['OS=="win"', { | 16 ['OS=="win"', { |
23 'dependencies': [ | 17 'dependencies': [ |
24 # TODO(efortuna): Currently the Windows build only runs using the | 18 # TODO(efortuna): Currently the Windows build only runs using the |
25 # dart VM, so we don't depend on d8 because of v8 build issues. Fix | 19 # dart VM, so we don't depend on d8 because of v8 build issues. Fix |
26 # this so that Windows can also run with node.js and d8. | 20 # this so that Windows can also run with d8. |
27 '../runtime/dart-runtime.gyp:dart', | 21 '../runtime/dart-runtime.gyp:dart', |
28 ], | 22 ], |
29 }]], | 23 }]], |
30 'type': 'none', | 24 'type': 'none', |
31 'actions': [ | 25 'actions': [ |
32 { | 26 { |
33 'action_name': 'generate_frog', | 27 'action_name': 'generate_frog', |
34 'inputs': [ | 28 'inputs': [ |
35 '<!@(["python", "scripts/list_frog_files.py"])', | 29 '<!@(["python", "scripts/list_frog_files.py"])', |
36 'scripts/bootstrap/frog_bootstrap_wrapper.py', | 30 'scripts/bootstrap/frog_bootstrap_wrapper.py', |
37 'scripts/bootstrap/frog_wrapper.py', | 31 'scripts/bootstrap/frog_wrapper.py', |
38 'frog.py', | 32 'frog.py', |
39 '<(PRODUCT_DIR)/dart', | 33 '<(PRODUCT_DIR)/dart', |
40 ], | 34 ], |
41 'outputs': [ | 35 'outputs': [ |
42 '<(PRODUCT_DIR)/frog/bin/frog', | 36 '<(PRODUCT_DIR)/frog/bin/frog', |
43 ], | 37 ], |
44 'action': [ | 38 'action': [ |
45 'python', | 39 'python', |
46 'scripts/bootstrap/frog_bootstrap_wrapper.py', | 40 'scripts/bootstrap/frog_bootstrap_wrapper.py', |
47 '<(PRODUCT_DIR)', | 41 '<(PRODUCT_DIR)', |
48 ], | 42 ], |
49 'message': 'Generating frog file' | 43 'message': 'Generating frog file' |
50 }, | 44 }, |
51 ], | 45 ], |
52 }, | 46 }, |
53 { | |
54 'target_name': 'frogsh', | |
55 'conditions': [ | |
56 ['OS=="linux"', { | |
57 'dependencies': [ | |
58 '../runtime/dart-runtime.gyp:dart', | |
59 '../third_party/v8/src/d8.gyp:d8', | |
60 ], | |
61 }], | |
62 ['OS=="mac"', { | |
63 'dependencies': [ | |
64 '../runtime/dart-runtime.gyp:dart', | |
65 '../third_party/v8/src/d8.gyp:d8', | |
66 ], | |
67 }], | |
68 ['OS=="win"', { | |
69 'dependencies': [ | |
70 # TODO(efortuna): Currently the Windows build only runs using the | |
71 # dart VM, so we don't depend on d8 because of v8 build issues. Fix | |
72 # this so that Windows can also run with node.js and d8. | |
73 '../runtime/dart-runtime.gyp:dart', | |
74 ], | |
75 }]], | |
76 'type': 'none', | |
77 'actions': [ | |
78 { | |
79 'action_name': 'generate_frogsh', | |
80 'inputs': [ | |
81 '<!@(["python", "scripts/list_frog_files.py"])', | |
82 'scripts/bootstrap/frogsh_bootstrap_wrapper.py', | |
83 'minfrog.dart', | |
84 '<(PRODUCT_DIR)/dart', | |
85 ], | |
86 'outputs': [ | |
87 '<(PRODUCT_DIR)/frog/bin/frogsh', | |
88 ], | |
89 'action': [ | |
90 'python', | |
91 'scripts/bootstrap/frogsh_bootstrap_wrapper.py', | |
92 '<(PRODUCT_DIR)', | |
93 ], | |
94 'message': 'Generating frogsh file' | |
95 }, | |
96 ], | |
97 }, | |
98 ], | 47 ], |
99 } | 48 } |
OLD | NEW |