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 'variables': { | 6 'variables': { |
7 'builtin_in_cc_file': 'builtin_in.cc', | 7 'builtin_in_cc_file': 'builtin_in.cc', |
8 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', | 8 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', |
9 'snapshot_in_cc_file': 'snapshot_in.cc', | 9 'snapshot_in_cc_file': 'snapshot_in.cc', |
10 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', | 10 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 { | 66 { |
67 'target_name': 'libdart_builtin', | 67 'target_name': 'libdart_builtin', |
68 'type': 'static_library', | 68 'type': 'static_library', |
69 'dependencies': [ | 69 'dependencies': [ |
70 'generate_builtin_cc_file', | 70 'generate_builtin_cc_file', |
71 ], | 71 ], |
72 'include_dirs': [ | 72 'include_dirs': [ |
73 '..', | 73 '..', |
74 ], | 74 ], |
75 'sources': [ | 75 'sources': [ |
76 'builtin.cc', | 76 'builtin_natives.cc', |
77 'builtin.h', | 77 'builtin.h', |
78 'dartutils.h', | 78 'dartutils.h', |
79 'dartutils.cc', | 79 'dartutils.cc', |
80 'directory.h', | 80 'directory.h', |
81 'directory.cc', | 81 'directory.cc', |
82 'directory_posix.cc', | 82 'directory_posix.cc', |
83 'directory_win.cc', | 83 'directory_win.cc', |
84 'eventhandler.cc', | 84 'eventhandler.cc', |
85 'eventhandler.h', | 85 'eventhandler.h', |
86 'eventhandler_linux.cc', | 86 'eventhandler_linux.cc', |
(...skipping 20 matching lines...) Expand all Loading... |
107 'process.h', | 107 'process.h', |
108 'process_linux.cc', | 108 'process_linux.cc', |
109 'process_macos.cc', | 109 'process_macos.cc', |
110 'process_win.cc', | 110 'process_win.cc', |
111 'socket.cc', | 111 'socket.cc', |
112 'socket.h', | 112 'socket.h', |
113 'socket_linux.cc', | 113 'socket_linux.cc', |
114 'socket_macos.cc', | 114 'socket_macos.cc', |
115 'socket_win.cc', | 115 'socket_win.cc', |
116 'set.h', | 116 'set.h', |
117 # Include generated source files. | |
118 '<(builtin_cc_file)', | |
119 ], | 117 ], |
120 'conditions': [ | 118 'conditions': [ |
121 ['OS=="win"', {'sources/' : [ | 119 ['OS=="win"', {'sources/' : [ |
122 ['exclude', 'fdutils.h'], | 120 ['exclude', 'fdutils.h'], |
123 ]}], | 121 ]}], |
124 ], | 122 ], |
125 }, | 123 }, |
126 { | 124 { |
127 # Completely statically linked dart binary. | 125 # Completely statically linked dart binary. |
128 'target_name': 'dart_no_snapshot_bin', | 126 'target_name': 'dart_no_snapshot_bin', |
129 'type': 'executable', | 127 'type': 'executable', |
130 'dependencies': [ | 128 'dependencies': [ |
131 'libdart', | 129 'libdart', |
132 'libdart_builtin', | 130 'libdart_builtin', |
133 ], | 131 ], |
134 'include_dirs': [ | 132 'include_dirs': [ |
135 '..', | 133 '..', |
136 ], | 134 ], |
137 'sources': [ | 135 'sources': [ |
138 'main.cc', | 136 'main.cc', |
| 137 'builtin.cc', |
139 'snapshot_empty.cc', | 138 'snapshot_empty.cc', |
| 139 # Include generated source files. |
| 140 '<(builtin_cc_file)', |
140 ], | 141 ], |
141 'conditions': [ | 142 'conditions': [ |
142 ['OS=="win"', { | 143 ['OS=="win"', { |
143 'link_settings': { | 144 'link_settings': { |
144 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 145 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
145 }, | 146 }, |
146 }]], | 147 }]], |
147 }, | 148 }, |
148 { | 149 { |
149 # Completely statically linked binary for generating snapshots. | 150 # Completely statically linked binary for generating snapshots. |
150 'target_name': 'gen_snapshot_bin', | 151 'target_name': 'gen_snapshot_bin', |
151 'type': 'executable', | 152 'type': 'executable', |
152 'dependencies': [ | 153 'dependencies': [ |
153 'libdart', | 154 'libdart', |
154 'libdart_builtin', | 155 'libdart_builtin', |
155 ], | 156 ], |
156 'include_dirs': [ | 157 'include_dirs': [ |
157 '..', | 158 '..', |
158 ], | 159 ], |
159 'sources': [ | 160 'sources': [ |
160 'gen_snapshot.cc', | 161 'gen_snapshot.cc', |
| 162 'builtin.cc', |
| 163 # Include generated source files. |
| 164 '<(builtin_cc_file)', |
161 ], | 165 ], |
162 'conditions': [ | 166 'conditions': [ |
163 ['OS=="win"', { | 167 ['OS=="win"', { |
164 'link_settings': { | 168 'link_settings': { |
165 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 169 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
166 }, | 170 }, |
167 }]], | 171 }]], |
168 }, | 172 }, |
169 { | 173 { |
170 # Generate snapshot file. | 174 # Generate snapshot file. |
(...skipping 27 matching lines...) Expand all Loading... |
198 '--output', '<(snapshot_cc_file)', | 202 '--output', '<(snapshot_cc_file)', |
199 ], | 203 ], |
200 'message': 'Generating ''<(snapshot_cc_file)'' file.' | 204 'message': 'Generating ''<(snapshot_cc_file)'' file.' |
201 }, | 205 }, |
202 ] | 206 ] |
203 }, | 207 }, |
204 { | 208 { |
205 'target_name': 'dart_bin', | 209 'target_name': 'dart_bin', |
206 'type': 'executable', | 210 'type': 'executable', |
207 'dependencies': [ | 211 'dependencies': [ |
208 'libdart', | 212 'libdart_without_corelib', |
209 'libdart_builtin', | 213 'libdart_builtin', |
210 'generate_snapshot_file', | 214 'generate_snapshot_file', |
211 ], | 215 ], |
212 'include_dirs': [ | 216 'include_dirs': [ |
213 '..', | 217 '..', |
214 ], | 218 ], |
215 'sources': [ | 219 'sources': [ |
216 'main.cc', | 220 'main.cc', |
| 221 'builtin_nolib.cc', |
217 '<(snapshot_cc_file)', | 222 '<(snapshot_cc_file)', |
218 ], | 223 ], |
219 'conditions': [ | 224 'conditions': [ |
220 ['OS=="win"', { | 225 ['OS=="win"', { |
221 'link_settings': { | 226 'link_settings': { |
222 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 227 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
223 }, | 228 }, |
224 }]], | 229 }]], |
225 }, | 230 }, |
226 { | 231 { |
227 'target_name': 'dart', | 232 'target_name': 'dart', |
228 'type': 'executable', | 233 'type': 'executable', |
229 'dependencies': [ | 234 'dependencies': [ |
230 'libdart', | 235 'libdart_without_corelib', |
231 'libdart_builtin', | 236 'libdart_builtin', |
232 'generate_snapshot_file', | 237 'generate_snapshot_file', |
233 ], | 238 ], |
234 'include_dirs': [ | 239 'include_dirs': [ |
235 '..', | 240 '..', |
236 ], | 241 ], |
237 'sources': [ | 242 'sources': [ |
238 'main.cc', | 243 'main.cc', |
| 244 'builtin_nolib.cc', |
239 '<(snapshot_cc_file)', | 245 '<(snapshot_cc_file)', |
240 ], | 246 ], |
241 'conditions': [ | 247 'conditions': [ |
242 ['OS=="win"', { | 248 ['OS=="win"', { |
243 'link_settings': { | 249 'link_settings': { |
244 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 250 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
245 }, | 251 }, |
246 }]], | 252 }]], |
247 }, | 253 }, |
248 { | 254 { |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 ]}], | 375 ]}], |
370 ['OS=="win"', { | 376 ['OS=="win"', { |
371 'link_settings': { | 377 'link_settings': { |
372 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 378 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
373 }, | 379 }, |
374 }], | 380 }], |
375 ], | 381 ], |
376 }, | 382 }, |
377 ], | 383 ], |
378 } | 384 } |
OLD | NEW |