| 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 declare_args() { | 9 declare_args() { |
| 10 # Controls the kind of core snapshot linked into the standalone VM. Using a | 10 # Controls the kind of core snapshot linked into the standalone VM. Using a |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 ] + extra_sources | 653 ] + extra_sources |
| 654 | 654 |
| 655 include_dirs = [ | 655 include_dirs = [ |
| 656 "..", | 656 "..", |
| 657 "//third_party", | 657 "//third_party", |
| 658 ] | 658 ] |
| 659 | 659 |
| 660 if (is_win) { | 660 if (is_win) { |
| 661 ldflags = [ "/EXPORT:Dart_True" ] | 661 ldflags = [ "/EXPORT:Dart_True" ] |
| 662 } else { | 662 } else { |
| 663 if (dart_runtime_mode != "release") { | 663 # Adds all symbols to the dynamic symbol table, not just used ones. |
| 664 ldflags = [ "-rdynamic" ] | 664 # This is needed to make native extensions work. |
| 665 } | 665 ldflags = [ "-rdynamic" ] |
| 666 } | 666 } |
| 667 | 667 |
| 668 if (is_win) { | 668 if (is_win) { |
| 669 libs = [ | 669 libs = [ |
| 670 "iphlpapi.lib", | 670 "iphlpapi.lib", |
| 671 "psapi.lib", | 671 "psapi.lib", |
| 672 "ws2_32.lib", | 672 "ws2_32.lib", |
| 673 "Rpcrt4.lib", | 673 "Rpcrt4.lib", |
| 674 "winmm.lib", | 674 "winmm.lib", |
| 675 ] | 675 ] |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 ] | 953 ] |
| 954 if (is_linux || is_android) { | 954 if (is_linux || is_android) { |
| 955 cflags = [ "-fPIC" ] | 955 cflags = [ "-fPIC" ] |
| 956 } | 956 } |
| 957 if (is_win) { | 957 if (is_win) { |
| 958 libs = [ "dart.lib" ] | 958 libs = [ "dart.lib" ] |
| 959 abs_root_out_dir = rebase_path(root_out_dir) | 959 abs_root_out_dir = rebase_path(root_out_dir) |
| 960 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 960 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 961 } | 961 } |
| 962 } | 962 } |
| OLD | NEW |