| 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 config("libdart_vm_config") { | 5 config("libdart_vm_config") { |
| 6 libs = [ | 6 libs = [ |
| 7 "dl", | 7 "dl", |
| 8 ] | 8 ] |
| 9 | 9 |
| 10 if (!is_android) { | 10 if (!is_android) { |
| 11 libs += [ "pthread" ] | 11 libs += [ "pthread" ] |
| 12 | 12 |
| 13 if (is_linux) { | 13 if (is_linux) { |
| 14 libs += [ "rt" ] | 14 libs += [ "rt" ] |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 } | 17 } |
| 18 | 18 |
| 19 | 19 |
| 20 static_library("libdart_platform") { | 20 static_library("libdart_platform") { |
| 21 configs += ["..:dart_config"] | 21 configs += ["..:dart_config", "..:dart_product_config"] |
| 22 public_configs = [":libdart_vm_config"] | 22 public_configs = [":libdart_vm_config"] |
| 23 | 23 |
| 24 platform_headers_gypi = | 24 platform_headers_gypi = |
| 25 exec_script("../../tools/gypi_to_gn.py", | 25 exec_script("../../tools/gypi_to_gn.py", |
| 26 [rebase_path("../platform/platform_headers.gypi")], | 26 [rebase_path("../platform/platform_headers.gypi")], |
| 27 "scope", | 27 "scope", |
| 28 ["../platform/platform_headers.gypi"]) | 28 ["../platform/platform_headers.gypi"]) |
| 29 platform_headers = | 29 platform_headers = |
| 30 rebase_path(platform_headers_gypi.sources, ".", "../platform") | 30 rebase_path(platform_headers_gypi.sources, ".", "../platform") |
| 31 | 31 |
| 32 platform_sources_gypi = | 32 platform_sources_gypi = |
| 33 exec_script("../../tools/gypi_to_gn.py", | 33 exec_script("../../tools/gypi_to_gn.py", |
| 34 [rebase_path("../platform/platform_sources.gypi")], | 34 [rebase_path("../platform/platform_sources.gypi")], |
| 35 "scope", | 35 "scope", |
| 36 ["../platform/platform_sources.gypi"]) | 36 ["../platform/platform_sources.gypi"]) |
| 37 platform_sources = | 37 platform_sources = |
| 38 rebase_path(platform_sources_gypi.sources, ".", "../platform") | 38 rebase_path(platform_sources_gypi.sources, ".", "../platform") |
| 39 | 39 |
| 40 sources = platform_headers + platform_sources | 40 sources = platform_headers + platform_sources |
| 41 include_dirs = [ | 41 include_dirs = [ |
| 42 "..", | 42 "..", |
| 43 ] | 43 ] |
| 44 } | 44 } |
| 45 | 45 |
| 46 | |
| 47 static_library("libdart_vm") { | 46 static_library("libdart_vm") { |
| 48 configs += ["..:dart_config"] | 47 configs += ["..:dart_config", |
| 48 "..:dart_product_config", |
| 49 "..:dart_precompiled_runtime_config"] |
| 49 public_configs = [":libdart_vm_config"] | 50 public_configs = [":libdart_vm_config"] |
| 50 | 51 |
| 51 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", | 52 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", |
| 52 [rebase_path("vm_sources.gypi")], | 53 [rebase_path("vm_sources.gypi")], |
| 53 "scope", | 54 "scope", |
| 54 ["vm_sources.gypi"]) | 55 ["vm_sources.gypi"]) |
| 55 | 56 |
| 56 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) | 57 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) |
| 57 sources = vm_sources_list.sources | 58 sources = vm_sources_list.sources |
| 58 include_dirs = [ | 59 include_dirs = [ |
| 59 "..", | 60 "..", |
| 60 ] | 61 ] |
| 61 } | 62 } |
| 62 | 63 |
| 63 | 64 |
| 64 static_library("libdart_vm_precompiled_runtime") { | 65 static_library("libdart_vm_nosnapshot") { |
| 65 configs += ["..:dart_config_no_precompiler"] | 66 configs += ["..:dart_config", |
| 67 "..:dart_product_config", |
| 68 "..:dart_precompiled_runtime_config"] |
| 66 public_configs = [":libdart_vm_config"] | 69 public_configs = [":libdart_vm_config"] |
| 67 defines = ["DART_PRECOMPILED_RUNTIME"] | 70 defines = [ "DART_NO_SNAPSHOT" ] |
| 68 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", | 71 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", |
| 69 [rebase_path("vm_sources.gypi")], | 72 [rebase_path("vm_sources.gypi")], |
| 70 "scope", | 73 "scope", |
| 71 ["vm_sources.gypi"]) | 74 ["vm_sources.gypi"]) |
| 72 | 75 |
| 73 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) | 76 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) |
| 74 sources = vm_sources_list.sources | 77 sources = vm_sources_list.sources |
| 75 include_dirs = [ | 78 include_dirs = [ |
| 76 "..", | 79 "..", |
| 77 ] | 80 ] |
| 78 } | 81 } |
| 79 | 82 |
| 80 | 83 |
| 81 static_library("libdart_vm_nosnapshot") { | 84 static_library("libdart_vm_nosnapshot_with_precompiler") { |
| 82 configs += ["..:dart_config"] | 85 configs += ["..:dart_config", |
| 86 "..:dart_product_config", |
| 87 "..:dart_precompiler_config"] |
| 83 public_configs = [":libdart_vm_config"] | 88 public_configs = [":libdart_vm_config"] |
| 84 defines = [ "DART_NO_SNAPSHOT" ] | 89 defines = [ "DART_NO_SNAPSHOT" ] |
| 85 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", | 90 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", |
| 86 [rebase_path("vm_sources.gypi")], | 91 [rebase_path("vm_sources.gypi")], |
| 87 "scope", | 92 "scope", |
| 88 ["vm_sources.gypi"]) | 93 ["vm_sources.gypi"]) |
| 89 | 94 |
| 90 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) | 95 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) |
| 91 sources = vm_sources_list.sources | 96 sources = vm_sources_list.sources |
| 92 include_dirs = [ | 97 include_dirs = [ |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 libsources += rebase_path(lib_sources_gypi.sources, ".", "../lib") | 183 libsources += rebase_path(lib_sources_gypi.sources, ".", "../lib") |
| 179 liboutputs += ["$target_gen_dir/${filename}_gen.cc"] | 184 liboutputs += ["$target_gen_dir/${filename}_gen.cc"] |
| 180 libdeps += [":generate_${filename}_cc_file"] | 185 libdeps += [":generate_${filename}_cc_file"] |
| 181 if (do_patch) { | 186 if (do_patch) { |
| 182 liboutputs += ["$target_gen_dir/${filename}_patch_gen.cc"] | 187 liboutputs += ["$target_gen_dir/${filename}_patch_gen.cc"] |
| 183 libdeps += [":generate_${filename}_patch_cc_file"] | 188 libdeps += [":generate_${filename}_patch_cc_file"] |
| 184 } | 189 } |
| 185 } | 190 } |
| 186 | 191 |
| 187 static_library("libdart_lib_nosnapshot") { | 192 static_library("libdart_lib_nosnapshot") { |
| 188 configs += ["..:dart_config"] | 193 configs += ["..:dart_config", |
| 194 "..:dart_product_config", |
| 195 "..:dart_precompiled_runtime_config"] |
| 189 deps = libdeps | 196 deps = libdeps |
| 190 sources = libsources + ["bootstrap.cc"] + liboutputs | 197 sources = libsources + ["bootstrap.cc"] + liboutputs |
| 191 include_dirs = [ | 198 include_dirs = [ |
| 192 "..", | 199 "..", |
| 193 ] | 200 ] |
| 194 } | 201 } |
| 195 static_library("libdart_lib") { | 202 static_library("libdart_lib_nosnapshot_with_precompiler") { |
| 196 configs += ["..:dart_config"] | 203 configs += ["..:dart_config", |
| 197 sources = libsources + [ "bootstrap_nocore.cc", ] | 204 "..:dart_product_config", |
| 205 "..:dart_precompiler_config" ] |
| 206 deps = libdeps |
| 207 sources = libsources + [ "bootstrap.cc"] + liboutputs |
| 198 include_dirs = [ | 208 include_dirs = [ |
| 199 "..", | 209 "..", |
| 200 ] | 210 ] |
| 201 } | 211 } |
| 202 static_library("libdart_lib_precompiled_runtime") { | 212 static_library("libdart_lib") { |
| 203 configs += ["..:dart_config_no_precompiler"] | 213 configs += ["..:dart_config", |
| 204 defines = ["DART_PRECOMPILED_RUNTIME"] | 214 "..:dart_product_config", |
| 205 sources = libsources + [ "bootstrap_nocore.cc", ] | 215 "..:dart_precompiled_runtime_config"] |
| 216 sources = libsources + [ "bootstrap_nocore.cc"] |
| 206 include_dirs = [ | 217 include_dirs = [ |
| 207 "..", | 218 "..", |
| 208 ] | 219 ] |
| 209 } | 220 } |
| 210 } | 221 } |
| 211 | 222 |
| 212 | 223 |
| 213 generate_core_libraries("core_libraries") { | 224 generate_core_libraries("core_libraries") { |
| 214 sources = [ | 225 sources = [ |
| 215 ["async", "async", true, "../../sdk/lib/async", "../lib"], | 226 ["async", "async", true, "../../sdk/lib/async", "../lib"], |
| 216 ["core", "core", true, "../../sdk/lib/core", "../lib"], | 227 ["core", "core", true, "../../sdk/lib/core", "../lib"], |
| 217 ["collection", "collection", true, "../../sdk/lib/collection", "../lib"], | 228 ["collection", "collection", true, "../../sdk/lib/collection", "../lib"], |
| 218 ["convert", "convert", true, "../../sdk/lib/convert", "../lib"], | 229 ["convert", "convert", true, "../../sdk/lib/convert", "../lib"], |
| 219 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"], | 230 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"], |
| 220 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"], | 231 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"], |
| 221 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"], | 232 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"], |
| 222 ["math", "math", true, "../../sdk/lib/math", "../lib"], | 233 ["math", "math", true, "../../sdk/lib/math", "../lib"], |
| 223 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"], | 234 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"], |
| 224 ["profiler", "profiler", false, "../../sdk/lib/profiler"], | 235 ["profiler", "profiler", false, "../../sdk/lib/profiler"], |
| 225 ["typed_data", "typed_data", false, "../lib"], | 236 ["typed_data", "typed_data", false, "../lib"], |
| 226 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"], | 237 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"], |
| 227 ] | 238 ] |
| 228 } | 239 } |
| OLD | NEW |