Chromium Code Reviews| 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("gypi_contents.gni") | 5 import("gypi_contents.gni") |
| 6 | 6 |
| 7 declare_args() { | 7 declare_args() { |
| 8 # Whether to fall back to built-in root certificates when they cannot be | 8 # Whether to fall back to built-in root certificates when they cannot be |
| 9 # verified at the operating system level. | 9 # verified at the operating system level. |
| 10 dart_use_fallback_root_certificates = false | 10 dart_use_fallback_root_certificates = true |
|
Cutch
2016/11/23 19:31:19
why are we changing the default arguments here? Ca
| |
| 11 | 11 |
| 12 # The BUILD.gn file that we pull from chromium as part of zlib has a | 12 # The BUILD.gn file that we pull from chromium as part of zlib has a |
| 13 # dependence on //base, which we don't pull in. In a standalone build of the | 13 # dependence on //base, which we don't pull in. In a standalone build of the |
| 14 # VM, we set this to //runtime/bin/zlib where we have a BUILD.gn file without | 14 # VM, we set this to //runtime/bin/zlib where we have a BUILD.gn file without |
| 15 # a dependence on //base. | 15 # a dependence on //base. |
| 16 dart_zlib_path = "//third_party/zlib" | 16 dart_zlib_path = "//third_party/zlib" |
| 17 | 17 |
| 18 # Whether to link the standalone VM against tcmalloc. The standalone build of | 18 # Whether to link the standalone VM against tcmalloc. The standalone build of |
| 19 # the VM enables this only for Linux builds. | 19 # the VM enables this only for Linux builds. |
| 20 dart_use_tcmalloc = false | 20 dart_use_tcmalloc = false |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 412 defines = [] | 412 defines = [] |
| 413 if (is_mac || is_ios) { | 413 if (is_mac || is_ios) { |
| 414 libs = [ | 414 libs = [ |
| 415 "CoreFoundation.framework", | 415 "CoreFoundation.framework", |
| 416 "Security.framework", | 416 "Security.framework", |
| 417 ] | 417 ] |
| 418 | 418 |
| 419 if (is_mac) { | 419 if (is_mac) { |
| 420 libs += [ "CoreServices.framework" ] | 420 libs += [ "CoreServices.framework" ] |
| 421 } | 421 } |
| 422 } else if (defined(is_fuchsia) && is_fuchsia) { | |
| 423 defines += [ "DART_IO_SECURE_SOCKET_DISABLED" ] | |
| 424 } else { | 422 } else { |
| 425 deps = [ | 423 deps = [ |
| 426 "//third_party/boringssl", | 424 "//third_party/boringssl", |
| 427 ] | 425 ] |
| 428 } | 426 } |
| 429 | 427 |
| 430 sources = io_impl_sources_gypi + builtin_impl_sources_gypi | 428 sources = io_impl_sources_gypi + builtin_impl_sources_gypi |
| 431 sources += [ | 429 sources += [ |
| 432 "builtin_natives.cc", | 430 "builtin_natives.cc", |
| 433 "io_natives.cc", | 431 "io_natives.cc", |
| 434 "io_natives.h", | 432 "io_natives.h", |
| 435 "log_android.cc", | 433 "log_android.cc", |
| 436 "log_linux.cc", | 434 "log_linux.cc", |
| 437 "log_macos.cc", | 435 "log_macos.cc", |
| 438 "log_win.cc", | 436 "log_win.cc", |
| 439 "log.h", | 437 "log.h", |
| 440 ] + extra_sources | 438 ] + extra_sources |
| 441 | 439 |
| 442 if (is_linux || is_win) { | 440 if (is_linux || is_win || (defined(is_fuchsia) && is_fuchsia)) { |
| 443 if (dart_use_fallback_root_certificates) { | 441 if (dart_use_fallback_root_certificates) { |
| 444 sources += [ "//third_party/root_certificates/root_certificates.cc" ] | 442 sources += [ "//third_party/root_certificates/root_certificates.cc" ] |
| 445 } else { | 443 } else { |
| 446 defines += [ "DART_IO_ROOT_CERTS_DISABLED" ] | 444 defines += [ "DART_IO_ROOT_CERTS_DISABLED" ] |
| 447 } | 445 } |
| 448 } | 446 } |
| 449 | 447 |
| 450 include_dirs = [ | 448 include_dirs = [ |
| 451 "..", | 449 "..", |
| 452 "//third_party", | 450 "//third_party", |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 841 # The only effect of DART_SHARED_LIB is to export the Dart API. | 839 # The only effect of DART_SHARED_LIB is to export the Dart API. |
| 842 "DART_SHARED_LIB", | 840 "DART_SHARED_LIB", |
| 843 ] | 841 ] |
| 844 if (is_win) { | 842 if (is_win) { |
| 845 libs = [ "dart.lib" ] | 843 libs = [ "dart.lib" ] |
| 846 abs_root_out_dir = rebase_path(root_out_dir) | 844 abs_root_out_dir = rebase_path(root_out_dir) |
| 847 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 845 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 848 } | 846 } |
| 849 } | 847 } |
| 850 } | 848 } |
| OLD | NEW |