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 import("../../build/executable_suffix.gni") | 5 import("../../build/executable_suffix.gni") |
6 import("../../build/prebuilt_dart_sdk.gni") | 6 import("../../build/prebuilt_dart_sdk.gni") |
7 import("../../utils/generate_patch_sdk.gni") | 7 import("../../utils/generate_patch_sdk.gni") |
8 import("gypi_contents.gni") | 8 import("gypi_contents.gni") |
9 import("../runtime_args.gni") | 9 import("../runtime_args.gni") |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 include_dirs = [ ".." ] | 43 include_dirs = [ ".." ] |
44 } | 44 } |
45 | 45 |
46 vm_sources_list = processed_gypis.vm_sources | 46 vm_sources_list = processed_gypis.vm_sources |
47 | 47 |
48 static_library("libdart_vm_jit") { | 48 static_library("libdart_vm_jit") { |
49 configs += [ | 49 configs += [ |
50 "..:dart_config", | 50 "..:dart_config", |
51 "..:dart_maybe_product_config", | 51 "..:dart_maybe_product_config", |
52 "..:dart_use_target_arch_config", | |
53 ] | 52 ] |
54 if (is_fuchsia) { | 53 if (is_fuchsia) { |
55 configs -= [ "//build/config:symbol_visibility_hidden" ] | 54 configs -= [ "//build/config:symbol_visibility_hidden" ] |
56 } | 55 } |
57 public_configs = [ ":libdart_vm_config" ] | 56 public_configs = [ ":libdart_vm_config" ] |
58 set_sources_assignment_filter([ | 57 set_sources_assignment_filter([ |
59 "*_test.cc", | 58 "*_test.cc", |
60 "*_test.h", | 59 "*_test.h", |
61 ]) | 60 ]) |
62 sources = vm_sources_list | 61 sources = vm_sources_list |
63 include_dirs = [ ".." ] | 62 include_dirs = [ ".." ] |
64 } | 63 } |
65 | 64 |
66 static_library("libdart_vm_precompiled_runtime") { | 65 static_library("libdart_vm_precompiled_runtime") { |
67 configs += [ | 66 configs += [ |
68 "..:dart_config", | 67 "..:dart_config", |
69 "..:dart_maybe_product_config", | 68 "..:dart_maybe_product_config", |
70 "..:dart_precompiled_runtime_config", | 69 "..:dart_precompiled_runtime_config", |
71 "..:dart_use_target_arch_config", | |
72 ] | 70 ] |
73 if (is_fuchsia) { | 71 if (is_fuchsia) { |
74 configs -= [ "//build/config:symbol_visibility_hidden" ] | 72 configs -= [ "//build/config:symbol_visibility_hidden" ] |
75 } | 73 } |
76 public_configs = [ ":libdart_vm_config" ] | 74 public_configs = [ ":libdart_vm_config" ] |
77 set_sources_assignment_filter([ | 75 set_sources_assignment_filter([ |
78 "*_test.cc", | 76 "*_test.cc", |
79 "*_test.h", | 77 "*_test.h", |
80 ]) | 78 ]) |
81 sources = vm_sources_list | 79 sources = vm_sources_list |
82 include_dirs = [ ".." ] | 80 include_dirs = [ ".." ] |
83 } | 81 } |
84 | 82 |
85 static_library("libdart_vm_nosnapshot") { | 83 static_library("libdart_vm_nosnapshot") { |
86 configs += [ | 84 configs += [ |
87 "..:dart_config", | 85 "..:dart_config", |
88 "..:dart_maybe_product_config", | 86 "..:dart_maybe_product_config", |
89 "..:dart_no_snapshot_config", | 87 "..:dart_no_snapshot_config", |
90 "..:dart_use_target_arch_config", | |
91 ] | 88 ] |
92 if (is_fuchsia) { | 89 if (is_fuchsia) { |
93 configs -= [ "//build/config:symbol_visibility_hidden" ] | 90 configs -= [ "//build/config:symbol_visibility_hidden" ] |
94 } | 91 } |
95 public_configs = [ ":libdart_vm_config" ] | 92 public_configs = [ ":libdart_vm_config" ] |
96 set_sources_assignment_filter([ | 93 set_sources_assignment_filter([ |
97 "*_test.cc", | 94 "*_test.cc", |
98 "*_test.h", | 95 "*_test.h", |
99 ]) | 96 ]) |
100 sources = vm_sources_list | 97 sources = vm_sources_list |
101 include_dirs = [ ".." ] | 98 include_dirs = [ ".." ] |
102 } | 99 } |
103 | 100 |
104 static_library("libdart_vm_nosnapshot_with_precompiler") { | 101 static_library("libdart_vm_nosnapshot_with_precompiler") { |
105 configs += [ | 102 configs += [ |
106 "..:dart_config", | 103 "..:dart_config", |
107 "..:dart_maybe_product_config", | 104 "..:dart_maybe_product_config", |
108 "..:dart_precompiler_config", | |
109 "..:dart_no_snapshot_config", | |
110 "..:dart_use_target_arch_config", | |
111 ] | |
112 if (is_fuchsia) { | |
113 configs -= [ "//build/config:symbol_visibility_hidden" ] | |
114 } | |
115 public_configs = [ ":libdart_vm_config" ] | |
116 set_sources_assignment_filter([ | |
117 "*_test.cc", | |
118 "*_test.h", | |
119 ]) | |
120 sources = vm_sources_list | |
121 include_dirs = [ ".." ] | |
122 } | |
123 | |
124 static_library("libdart_vm_nosnapshot_with_precompiler_host_arch") { | |
125 configs += [ | |
126 "..:dart_config", | |
127 "..:dart_maybe_product_config", | |
128 "..:dart_precompiler_config", | 105 "..:dart_precompiler_config", |
129 "..:dart_no_snapshot_config", | 106 "..:dart_no_snapshot_config", |
130 ] | 107 ] |
131 if (is_fuchsia) { | 108 if (is_fuchsia) { |
132 configs -= [ "//build/config:symbol_visibility_hidden" ] | 109 configs -= [ "//build/config:symbol_visibility_hidden" ] |
133 } | 110 } |
134 public_configs = [ ":libdart_vm_config" ] | 111 public_configs = [ ":libdart_vm_config" ] |
135 set_sources_assignment_filter([ | 112 set_sources_assignment_filter([ |
136 "*_test.cc", | 113 "*_test.cc", |
137 "*_test.h", | 114 "*_test.h", |
138 ]) | 115 ]) |
139 sources = vm_sources_list | 116 sources = vm_sources_list |
140 include_dirs = [ ".." ] | 117 include_dirs = [ ".." ] |
141 } | 118 } |
142 | 119 |
143 static_library("libdart_vm_with_precompiler") { | 120 static_library("libdart_vm_with_precompiler") { |
144 configs += [ | 121 configs += [ |
145 "..:dart_config", | 122 "..:dart_config", |
146 "..:dart_maybe_product_config", | 123 "..:dart_maybe_product_config", |
147 "..:dart_precompiler_config", | 124 "..:dart_precompiler_config", |
148 "..:dart_use_target_arch_config", | |
149 ] | 125 ] |
150 if (is_fuchsia) { | 126 if (is_fuchsia) { |
151 configs -= [ "//build/config:symbol_visibility_hidden" ] | 127 configs -= [ "//build/config:symbol_visibility_hidden" ] |
152 } | 128 } |
153 public_configs = [ ":libdart_vm_config" ] | 129 public_configs = [ ":libdart_vm_config" ] |
154 set_sources_assignment_filter([ | 130 set_sources_assignment_filter([ |
155 "*_test.cc", | 131 "*_test.cc", |
156 "*_test.h", | 132 "*_test.h", |
157 ]) | 133 ]) |
158 sources = vm_sources_list | 134 sources = vm_sources_list |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 libdeps += [ ":generate_${filename}_patch_cc_file" ] | 227 libdeps += [ ":generate_${filename}_patch_cc_file" ] |
252 } | 228 } |
253 } | 229 } |
254 | 230 |
255 all_libsources = rebase_path(invoker.allsources, ".", "../lib") | 231 all_libsources = rebase_path(invoker.allsources, ".", "../lib") |
256 | 232 |
257 static_library("libdart_lib_nosnapshot_with_precompiler") { | 233 static_library("libdart_lib_nosnapshot_with_precompiler") { |
258 configs += [ | 234 configs += [ |
259 "..:dart_config", | 235 "..:dart_config", |
260 "..:dart_maybe_product_config", | 236 "..:dart_maybe_product_config", |
261 "..:dart_precompiler_config", | |
262 "..:dart_use_target_arch_config", | |
263 ] | |
264 if (is_fuchsia) { | |
265 configs -= [ "//build/config:symbol_visibility_hidden" ] | |
266 } | |
267 deps = libdeps | |
268 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs | |
269 include_dirs = [ ".." ] | |
270 } | |
271 | |
272 static_library("libdart_lib_nosnapshot_with_precompiler_host_arch") { | |
273 configs += [ | |
274 "..:dart_config", | |
275 "..:dart_maybe_product_config", | |
276 "..:dart_precompiler_config", | 237 "..:dart_precompiler_config", |
277 ] | 238 ] |
278 if (is_fuchsia) { | 239 if (is_fuchsia) { |
279 configs -= [ "//build/config:symbol_visibility_hidden" ] | 240 configs -= [ "//build/config:symbol_visibility_hidden" ] |
280 } | 241 } |
281 deps = libdeps | 242 deps = libdeps |
282 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs | 243 sources = all_libsources + [ "bootstrap.cc" ] + liboutputs |
283 include_dirs = [ ".." ] | 244 include_dirs = [ ".." ] |
284 } | 245 } |
285 | 246 |
286 static_library("libdart_lib_with_precompiler") { | 247 static_library("libdart_lib_with_precompiler") { |
287 configs += [ | 248 configs += [ |
288 "..:dart_config", | 249 "..:dart_config", |
289 "..:dart_maybe_product_config", | 250 "..:dart_maybe_product_config", |
290 "..:dart_precompiler_config", | 251 "..:dart_precompiler_config", |
291 "..:dart_use_target_arch_config", | |
292 ] | 252 ] |
293 if (is_fuchsia) { | 253 if (is_fuchsia) { |
294 configs -= [ "//build/config:symbol_visibility_hidden" ] | 254 configs -= [ "//build/config:symbol_visibility_hidden" ] |
295 } | 255 } |
296 deps = libdeps | 256 deps = libdeps |
297 sources = all_libsources + [ "bootstrap_nocore.cc" ] | 257 sources = all_libsources + [ "bootstrap_nocore.cc" ] |
298 include_dirs = [ ".." ] | 258 include_dirs = [ ".." ] |
299 } | 259 } |
300 | 260 |
301 static_library("libdart_lib_jit") { | 261 static_library("libdart_lib_jit") { |
302 configs += [ | 262 configs += [ |
303 "..:dart_config", | 263 "..:dart_config", |
304 "..:dart_maybe_product_config", | 264 "..:dart_maybe_product_config", |
305 "..:dart_use_target_arch_config", | |
306 ] | 265 ] |
307 if (is_fuchsia) { | 266 if (is_fuchsia) { |
308 configs -= [ "//build/config:symbol_visibility_hidden" ] | 267 configs -= [ "//build/config:symbol_visibility_hidden" ] |
309 } | 268 } |
310 sources = all_libsources + [ "bootstrap_nocore.cc" ] | 269 sources = all_libsources + [ "bootstrap_nocore.cc" ] |
311 include_dirs = [ ".." ] | 270 include_dirs = [ ".." ] |
312 } | 271 } |
313 | 272 |
314 static_library("libdart_lib_precompiled_runtime") { | 273 static_library("libdart_lib_precompiled_runtime") { |
315 configs += [ | 274 configs += [ |
316 "..:dart_config", | 275 "..:dart_config", |
317 "..:dart_maybe_product_config", | 276 "..:dart_maybe_product_config", |
318 "..:dart_precompiled_runtime_config", | 277 "..:dart_precompiled_runtime_config", |
319 "..:dart_use_target_arch_config", | |
320 ] | 278 ] |
321 if (is_fuchsia) { | 279 if (is_fuchsia) { |
322 configs -= [ "//build/config:symbol_visibility_hidden" ] | 280 configs -= [ "//build/config:symbol_visibility_hidden" ] |
323 } | 281 } |
324 sources = all_libsources + [ "bootstrap_nocore.cc" ] | 282 sources = all_libsources + [ "bootstrap_nocore.cc" ] |
325 include_dirs = [ ".." ] | 283 include_dirs = [ ".." ] |
326 } | 284 } |
327 } | 285 } |
328 | 286 |
329 generate_core_libraries("core_libraries") { | 287 generate_core_libraries("core_libraries") { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 processed_gypis.vmservice_runtime_sources, | 501 processed_gypis.vmservice_runtime_sources, |
544 "../lib", | 502 "../lib", |
545 ], | 503 ], |
546 [ | 504 [ |
547 "io", | 505 "io", |
548 processed_gypis.bin_io_sources, | 506 processed_gypis.bin_io_sources, |
549 "../bin", | 507 "../bin", |
550 ], | 508 ], |
551 ] | 509 ] |
552 } | 510 } |
OLD | NEW |