Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: runtime/bin/BUILD.gn

Issue 2351743004: Added a target for a host version of the dart executable. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/sdk/@master
Patch Set: of course I had to leave a spurious character Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 declare_args() {
6 # Whether to fall back to built-in root certificates when they cannot be
7 # verified at the operating system level.
8 dart_use_fallback_root_certificates = true
9 }
10
5 resources_sources_gypi = 11 resources_sources_gypi =
6 exec_script("../../tools/gypi_to_gn.py", 12 exec_script("../../tools/gypi_to_gn.py",
7 [rebase_path("vmservice/vmservice_sources.gypi")], 13 [rebase_path("vmservice/vmservice_sources.gypi")],
8 "scope", 14 "scope",
9 ["vmservice/vmservice_sources.gypi"]) 15 ["vmservice/vmservice_sources.gypi"])
10 16
11 # Generate a resources.cc file for the service isolate without Observatory. 17 # Generate a resources.cc file for the service isolate without Observatory.
12 action("gen_resources_cc") { 18 action("gen_resources_cc") {
13 visibility = [ ":*" ] # Only targets in this file can see this. 19 visibility = [ ":*" ] # Only targets in this file can see this.
14 script = "../tools/create_resources.py" 20 script = "../tools/create_resources.py"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 # Dart tree uses *_macos.* instead of *_mac.* 325 # Dart tree uses *_macos.* instead of *_mac.*
320 custom_sources_filter += [ 326 custom_sources_filter += [
321 "*_macos.h", 327 "*_macos.h",
322 "*_macos.cc", 328 "*_macos.cc",
323 ] 329 ]
324 } 330 }
325 set_sources_assignment_filter(custom_sources_filter) 331 set_sources_assignment_filter(custom_sources_filter)
326 332
327 if (is_mac || is_ios) { 333 if (is_mac || is_ios) {
328 libs = [ 334 libs = [
335 "CoreFoundation.framework",
336 "CoreServices.framework",
329 "Security.framework", 337 "Security.framework",
330 ] 338 ]
331 } else if (defined(is_fuchsia) && is_fuchsia) { 339 } else if (defined(is_fuchsia) && is_fuchsia) {
332 defines = [ 340 defines = [
333 "DART_IO_SECURE_SOCKET_DISABLED" 341 "DART_IO_SECURE_SOCKET_DISABLED"
334 ] 342 ]
335 } else { 343 } else {
336 deps = [ 344 deps = [
337 "//third_party/boringssl", 345 "//third_party/boringssl",
338 ] 346 ]
347 if (is_linux && !dart_use_fallback_root_certificates) {
348 defines = [
349 "DART_IO_ROOT_CERTS_DISABLED"
350 ]
351 }
339 } 352 }
340 353
341 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources 354 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources
342 sources += [ 355 sources += [
343 "builtin_nolib.cc", 356 "builtin_nolib.cc",
344 "builtin_natives.cc", 357 "builtin_natives.cc",
345 "io_natives.cc", 358 "io_natives.cc",
346 "io_natives.h", 359 "io_natives.h",
347 "embedded_dart_io.cc", 360 "embedded_dart_io.cc",
348 "embedded_dart_io.h", 361 "embedded_dart_io.h",
349 "log_android.cc", 362 "log_android.cc",
350 "log_linux.cc", 363 "log_linux.cc",
351 "log_macos.cc", 364 "log_macos.cc",
352 "log_win.cc", 365 "log_win.cc",
353 "log.h", 366 "log.h",
354 ] 367 ]
355 if (is_linux) { 368
356 sources += [ "../../third_party/root_certificates/root_certificates.cc"] 369 if (is_linux && dart_use_fallback_root_certificates) {
370 sources += [ "//third_party/root_certificates/root_certificates.cc"]
357 } 371 }
358 372
359 include_dirs = [ 373 include_dirs = [
360 "..", 374 "..",
361 "//third_party" 375 "//third_party"
362 ] 376 ]
363 } 377 }
364 378
365 379
366 action("generate_snapshot_bin") { 380 action("generate_snapshot_bin") {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 deps = [ 449 deps = [
436 ":generate_snapshot_file", 450 ":generate_snapshot_file",
437 ] 451 ]
438 } 452 }
439 453
440 if (defined(is_fuchsia) && is_fuchsia) { 454 if (defined(is_fuchsia) && is_fuchsia) {
441 copy("hello_fuchsia") { 455 copy("hello_fuchsia") {
442 sources = [ "../tests/vm/dart/hello_fuchsia_test.dart" ] 456 sources = [ "../tests/vm/dart/hello_fuchsia_test.dart" ]
443 outputs = [ "$root_out_dir/hello_fuchsia.dart" ] 457 outputs = [ "$root_out_dir/hello_fuchsia.dart" ]
444 } 458 }
459 }
445 460
446 executable("dart_no_observatory") { 461 executable("dart_no_observatory") {
447 configs += ["..:dart_config", 462 configs += ["..:dart_config",
448 "..:dart_product_config", 463 "..:dart_product_config",
449 "..:dart_precompiled_runtime_config",] 464 "..:dart_precompiled_runtime_config",]
450 deps = [ 465 deps = [
466 ":gen_resources_cc",
467 ":embedded_dart_io",
468 ":libdart_builtin",
469 "../vm:libdart_platform",
470 "..:libdart",
471 ":dart_snapshot_cc",
472 "//third_party/zlib",
473 ]
474
475 if (defined(is_fuchsia) && is_fuchsia) {
476 deps += [
451 ":hello_fuchsia", 477 ":hello_fuchsia",
452 ":gen_resources_cc",
453 ":embedded_dart_io",
454 ":libdart_builtin",
455 "../vm:libdart_platform",
456 "..:libdart",
457 ":dart_snapshot_cc",
458 "//third_party/zlib",
459 ]
460
461 defines = [
462 "NO_OBSERVATORY",
463 ]
464
465 sources = [
466 "main.cc",
467 "observatory_assets_empty.cc",
468 "vmservice_impl.cc",
469 "vmservice_impl.h",
470 "$target_gen_dir/resources_gen.cc",
471 ]
472
473 include_dirs = [
474 "..",
475 "//third_party",
476 ] 478 ]
477 } 479 }
478 480
481 defines = [
482 "NO_OBSERVATORY",
483 ]
484
485 sources = [
486 "main.cc",
487 "observatory_assets_empty.cc",
488 "vmservice_impl.cc",
489 "vmservice_impl.h",
490 "$target_gen_dir/resources_gen.cc",
491 ]
492
493 include_dirs = [
494 "..",
495 "//third_party",
496 ]
497 }
498
499
500 if (defined(is_fuchsia) && is_fuchsia) {
479 action("generate_snapshot_test_dat_file") { 501 action("generate_snapshot_test_dat_file") {
480 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat" 502 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat"
481 snapshot_test_in_dat_file = "../vm/snapshot_test_in.dat" 503 snapshot_test_in_dat_file = "../vm/snapshot_test_in.dat"
482 snapshot_test_dart_file = "../vm/snapshot_test.dart" 504 snapshot_test_dart_file = "../vm/snapshot_test.dart"
483 inputs = [ 505 inputs = [
484 "../tools/create_string_literal.py", 506 "../tools/create_string_literal.py",
485 snapshot_test_in_dat_file, 507 snapshot_test_in_dat_file,
486 snapshot_test_dart_file, 508 snapshot_test_dart_file,
487 ] 509 ]
488 510
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 sources = [ 575 sources = [
554 "run_vm_tests_fuchsia.cc" 576 "run_vm_tests_fuchsia.cc"
555 ] 577 ]
556 libs = [ 578 libs = [
557 "launchpad", 579 "launchpad",
558 "magenta", 580 "magenta",
559 "runtime", 581 "runtime",
560 ] 582 ]
561 } 583 }
562 } # defined(is_fuchsia) && is_fuchsia 584 } # defined(is_fuchsia) && is_fuchsia
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698