| 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 "pthread", | 7 "pthread", |
| 8 "rt", | 8 "rt", |
| 9 "dl", | 9 "dl", |
| 10 ] | 10 ] |
| 11 } | 11 } |
| 12 | 12 |
| 13 | 13 |
| 14 static_library("libdart_platform") { | 14 static_library("libdart_platform") { |
| 15 configs += ["../..:dart_config"] | 15 configs += ["..:dart_config"] |
| 16 public_configs = [":libdart_vm_config"] | 16 public_configs = [":libdart_vm_config"] |
| 17 | 17 |
| 18 platform_headers_gypi = | 18 platform_headers_gypi = |
| 19 exec_script("../../tools/gypi_to_gn.py", | 19 exec_script("../../tools/gypi_to_gn.py", |
| 20 [rebase_path("../platform/platform_headers.gypi")], | 20 [rebase_path("../platform/platform_headers.gypi")], |
| 21 "scope", | 21 "scope", |
| 22 ["../platform/platform_headers.gypi"]) | 22 ["../platform/platform_headers.gypi"]) |
| 23 platform_headers = | 23 platform_headers = |
| 24 rebase_path(platform_headers_gypi.sources, ".", "../platform") | 24 rebase_path(platform_headers_gypi.sources, ".", "../platform") |
| 25 | 25 |
| 26 platform_sources_gypi = | 26 platform_sources_gypi = |
| 27 exec_script("../../tools/gypi_to_gn.py", | 27 exec_script("../../tools/gypi_to_gn.py", |
| 28 [rebase_path("../platform/platform_sources.gypi")], | 28 [rebase_path("../platform/platform_sources.gypi")], |
| 29 "scope", | 29 "scope", |
| 30 ["../platform/platform_sources.gypi"]) | 30 ["../platform/platform_sources.gypi"]) |
| 31 platform_sources = | 31 platform_sources = |
| 32 rebase_path(platform_sources_gypi.sources, ".", "../platform") | 32 rebase_path(platform_sources_gypi.sources, ".", "../platform") |
| 33 | 33 |
| 34 sources = platform_headers + platform_sources | 34 sources = platform_headers + platform_sources |
| 35 include_dirs = [ | 35 include_dirs = [ |
| 36 "..", | 36 "..", |
| 37 ] | 37 ] |
| 38 } | 38 } |
| 39 | 39 |
| 40 | 40 |
| 41 static_library("libdart_vm") { | 41 static_library("libdart_vm") { |
| 42 configs += ["../..:dart_config"] | 42 configs += ["..:dart_config"] |
| 43 public_configs = [":libdart_vm_config"] | 43 public_configs = [":libdart_vm_config"] |
| 44 deps = [ ":generate_service_cc_file", ] | 44 deps = [ ":generate_service_cc_file", ] |
| 45 | 45 |
| 46 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", | 46 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", |
| 47 [rebase_path("vm_sources.gypi")], | 47 [rebase_path("vm_sources.gypi")], |
| 48 "scope", | 48 "scope", |
| 49 ["vm_sources.gypi"]) | 49 ["vm_sources.gypi"]) |
| 50 | 50 |
| 51 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) | 51 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) |
| 52 sources = vm_sources_list.sources | 52 sources = vm_sources_list.sources |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 "scope", | 136 "scope", |
| 137 ["../lib/${filename}_sources.gypi"]) | 137 ["../lib/${filename}_sources.gypi"]) |
| 138 libsources += rebase_path(lib_sources_gypi.sources, ".", "../lib") | 138 libsources += rebase_path(lib_sources_gypi.sources, ".", "../lib") |
| 139 liboutputs += ["$target_gen_dir/${filename}_gen.cc", | 139 liboutputs += ["$target_gen_dir/${filename}_gen.cc", |
| 140 "$target_gen_dir/${filename}_patch_gen.cc"] | 140 "$target_gen_dir/${filename}_patch_gen.cc"] |
| 141 libdeps += [":generate_${filename}_cc_file", | 141 libdeps += [":generate_${filename}_cc_file", |
| 142 ":generate_${filename}_patch_cc_file"] | 142 ":generate_${filename}_patch_cc_file"] |
| 143 } | 143 } |
| 144 | 144 |
| 145 static_library("libdart_lib_withcore") { | 145 static_library("libdart_lib_withcore") { |
| 146 configs += ["../..:dart_config"] | 146 configs += ["..:dart_config"] |
| 147 deps = libdeps | 147 deps = libdeps |
| 148 sources = libsources + ["bootstrap.cc"] + liboutputs | 148 sources = libsources + ["bootstrap.cc"] + liboutputs |
| 149 include_dirs = [ | 149 include_dirs = [ |
| 150 "..", | 150 "..", |
| 151 ] | 151 ] |
| 152 } | 152 } |
| 153 static_library("libdart_lib") { | 153 static_library("libdart_lib") { |
| 154 configs += ["../..:dart_config"] | 154 configs += ["..:dart_config"] |
| 155 sources = libsources + [ "bootstrap_nocore.cc", ] | 155 sources = libsources + [ "bootstrap_nocore.cc", ] |
| 156 include_dirs = [ | 156 include_dirs = [ |
| 157 "..", | 157 "..", |
| 158 ] | 158 ] |
| 159 } | 159 } |
| 160 } | 160 } |
| 161 | 161 |
| 162 | 162 |
| 163 generate_core_libraries("core_libraries") { | 163 generate_core_libraries("core_libraries") { |
| 164 sources = [ | 164 sources = [ |
| (...skipping 27 matching lines...) Expand all Loading... |
| 192 output = "$target_gen_dir/service_gen.cc" | 192 output = "$target_gen_dir/service_gen.cc" |
| 193 outputs = [ output, ] | 193 outputs = [ output, ] |
| 194 | 194 |
| 195 args = [ | 195 args = [ |
| 196 "--output", rebase_path(output, root_build_dir), | 196 "--output", rebase_path(output, root_build_dir), |
| 197 "--outer_namespace", "dart", | 197 "--outer_namespace", "dart", |
| 198 "--table_name", "service", | 198 "--table_name", "service", |
| 199 "--root_prefix", rebase_path("service/", root_build_dir)] + | 199 "--root_prefix", rebase_path("service/", root_build_dir)] + |
| 200 rebase_path(sources, root_build_dir) | 200 rebase_path(sources, root_build_dir) |
| 201 } | 201 } |
| OLD | NEW |