| 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 import("../runtime_args.gni") | 6 import("../runtime_args.gni") |
| 7 import("../../build/compiled_action.gni") | 7 import("../../build/compiled_action.gni") |
| 8 | 8 |
| 9 # Generate a resources.cc file for the service isolate without Observatory. | 9 # Generate a resources.cc file for the service isolate without Observatory. |
| 10 action("gen_resources_cc") { | 10 action("gen_resources_cc") { |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 if (!is_mac && !is_ios) { | 397 if (!is_mac && !is_ios) { |
| 398 # Dart tree uses *_macos.* instead of *_mac.* | 398 # Dart tree uses *_macos.* instead of *_mac.* |
| 399 custom_sources_filter += [ | 399 custom_sources_filter += [ |
| 400 "*_macos.h", | 400 "*_macos.h", |
| 401 "*_macos.cc", | 401 "*_macos.cc", |
| 402 ] | 402 ] |
| 403 } | 403 } |
| 404 set_sources_assignment_filter(custom_sources_filter) | 404 set_sources_assignment_filter(custom_sources_filter) |
| 405 | 405 |
| 406 defines = [] | 406 defines = [] |
| 407 deps = [ |
| 408 "$dart_zlib_path", |
| 409 ] |
| 407 if (is_mac || is_ios) { | 410 if (is_mac || is_ios) { |
| 408 libs = [ | 411 libs = [ |
| 409 "CoreFoundation.framework", | 412 "CoreFoundation.framework", |
| 410 "Security.framework", | 413 "Security.framework", |
| 411 ] | 414 ] |
| 412 | 415 |
| 413 if (is_mac) { | 416 if (is_mac) { |
| 414 libs += [ "CoreServices.framework" ] | 417 libs += [ "CoreServices.framework" ] |
| 415 } | 418 } |
| 416 } else { | 419 } else { |
| 417 deps = [ | 420 deps += [ |
| 418 "//third_party/boringssl", | 421 "//third_party/boringssl", |
| 419 ] | 422 ] |
| 420 } | 423 } |
| 421 | 424 |
| 422 if (defined(is_fuchsia) && is_fuchsia) { | 425 if (defined(is_fuchsia) && is_fuchsia) { |
| 423 libs = [ "launchpad" ] | 426 libs = [ "launchpad" ] |
| 424 } | 427 } |
| 425 | 428 |
| 426 sources = io_impl_sources_gypi + builtin_impl_sources_gypi | 429 sources = io_impl_sources_gypi + builtin_impl_sources_gypi |
| 427 sources += [ | 430 sources += [ |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 ] | 863 ] |
| 861 if (is_linux || is_android) { | 864 if (is_linux || is_android) { |
| 862 cflags = [ "-fPIC" ] | 865 cflags = [ "-fPIC" ] |
| 863 } | 866 } |
| 864 if (is_win) { | 867 if (is_win) { |
| 865 libs = [ "dart.lib" ] | 868 libs = [ "dart.lib" ] |
| 866 abs_root_out_dir = rebase_path(root_out_dir) | 869 abs_root_out_dir = rebase_path(root_out_dir) |
| 867 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 870 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 868 } | 871 } |
| 869 } | 872 } |
| OLD | NEW |