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 = false |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 rebase_path(snapshot_test_in_dat_file), | 766 rebase_path(snapshot_test_in_dat_file), |
767 "--include", | 767 "--include", |
768 "INTENTIONALLY_LEFT_BLANK", | 768 "INTENTIONALLY_LEFT_BLANK", |
769 "--var_name", | 769 "--var_name", |
770 "INTENTIONALLY_LEFT_BLANK_TOO", | 770 "INTENTIONALLY_LEFT_BLANK_TOO", |
771 rebase_path(snapshot_test_dart_file), | 771 rebase_path(snapshot_test_dart_file), |
772 ] | 772 ] |
773 } | 773 } |
774 | 774 |
775 executable("run_vm_tests") { | 775 executable("run_vm_tests") { |
776 if (defined(is_fuchsia) && is_fuchsia) { | 776 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) { |
777 testonly = true | 777 testonly = true |
778 } | 778 } |
779 | 779 |
780 configs += [ | 780 configs += [ |
781 "..:dart_config", | 781 "..:dart_config", |
782 "..:dart_maybe_product_config", | 782 "..:dart_maybe_product_config", |
783 ] | 783 ] |
784 | 784 |
785 deps = [ | 785 deps = [ |
786 ":dart_snapshot_cc", | 786 ":dart_snapshot_cc", |
(...skipping 30 matching lines...) Expand all Loading... |
817 libs = [ | 817 libs = [ |
818 "iphlpapi.lib", | 818 "iphlpapi.lib", |
819 "psapi.lib", | 819 "psapi.lib", |
820 "ws2_32.lib", | 820 "ws2_32.lib", |
821 "Rpcrt4.lib", | 821 "Rpcrt4.lib", |
822 "winmm.lib", | 822 "winmm.lib", |
823 ] | 823 ] |
824 } | 824 } |
825 } | 825 } |
826 | 826 |
827 if (!defined(is_fuchsia) || !is_fuchsia) { | 827 shared_library("test_extension") { |
828 shared_library("test_extension") { | 828 deps = [ |
829 deps = [ | 829 ":dart", |
830 ":dart", | 830 ] |
831 ] | 831 sources = [ |
832 sources = [ | 832 "test_extension.c", |
833 "test_extension.c", | 833 "test_extension_dllmain_win.cc", |
834 "test_extension_dllmain_win.cc", | 834 ] |
835 ] | 835 include_dirs = [ ".." ] |
836 include_dirs = [ ".." ] | 836 defines = [ |
837 defines = [ | 837 # The only effect of DART_SHARED_LIB is to export the Dart API. |
838 # The only effect of DART_SHARED_LIB is to export the Dart API. | 838 "DART_SHARED_LIB", |
839 "DART_SHARED_LIB", | 839 ] |
840 ] | 840 if (is_win) { |
841 if (is_win) { | 841 libs = [ "dart.lib" ] |
842 libs = [ "dart.lib" ] | 842 abs_root_out_dir = rebase_path(root_out_dir) |
843 abs_root_out_dir = rebase_path(root_out_dir) | 843 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
844 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | |
845 } | |
846 } | |
847 | |
848 shared_library("sample_extension") { | |
849 deps = [ | |
850 ":dart", | |
851 ] | |
852 sources = [ | |
853 "../../samples/sample_extension/sample_extension.cc", | |
854 "../../samples/sample_extension/sample_extension_dllmain_win.cc", | |
855 ] | |
856 include_dirs = [ ".." ] | |
857 defines = [ | |
858 # The only effect of DART_SHARED_LIB is to export the Dart API. | |
859 "DART_SHARED_LIB", | |
860 ] | |
861 if (is_win) { | |
862 libs = [ "dart.lib" ] | |
863 abs_root_out_dir = rebase_path(root_out_dir) | |
864 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | |
865 } | |
866 } | 844 } |
867 } | 845 } |
| 846 |
| 847 shared_library("sample_extension") { |
| 848 deps = [ |
| 849 ":dart", |
| 850 ] |
| 851 sources = [ |
| 852 "../../samples/sample_extension/sample_extension.cc", |
| 853 "../../samples/sample_extension/sample_extension_dllmain_win.cc", |
| 854 ] |
| 855 include_dirs = [ ".." ] |
| 856 defines = [ |
| 857 # The only effect of DART_SHARED_LIB is to export the Dart API. |
| 858 "DART_SHARED_LIB", |
| 859 ] |
| 860 if (is_win) { |
| 861 libs = [ "dart.lib" ] |
| 862 abs_root_out_dir = rebase_path(root_out_dir) |
| 863 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 864 } |
| 865 } |
OLD | NEW |