Chromium Code Reviews| 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 # TODO(zra): These build arguments should likely be moved to a gni file that is | 5 # TODO(zra): These build arguments should likely be moved to a gni file that is |
| 6 # included in BUILD.gn files that care about the values of the flags. For now, | 6 # included in BUILD.gn files that care about the values of the flags. For now, |
| 7 # since the GN build only happens as part of a Mojo build there is no need for | 7 # since the GN build only happens as part of a Mojo build there is no need for |
| 8 # the indirection. | 8 # the indirection. |
| 9 declare_args() { | 9 declare_args() { |
| 10 # Instead of using is_debug, we introduce a different flag for specifying a | 10 # Instead of using is_debug, we introduce a different flag for specifying a |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 assert(false) | 43 assert(false) |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 | 46 |
| 47 if (dart_debug) { | 47 if (dart_debug) { |
| 48 defines += ["DEBUG"] | 48 defines += ["DEBUG"] |
| 49 } else { | 49 } else { |
| 50 defines += ["NDEBUG"] | 50 defines += ["NDEBUG"] |
| 51 } | 51 } |
| 52 | 52 |
| 53 if (is_ios || is_mac) { | |
|
rmacnak
2016/02/25 00:42:46
We can't remove this until there is another way to
| |
| 54 defines += ["DART_PRECOMPILER"] | |
| 55 } | |
| 56 | |
| 57 cflags = [ | 53 cflags = [ |
| 58 "-Werror", | 54 "-Werror", |
| 59 "-Wall", | 55 "-Wall", |
| 60 "-Wextra", # Also known as -W. | 56 "-Wextra", # Also known as -W. |
| 61 "-Wno-unused-parameter", | 57 "-Wno-unused-parameter", |
| 62 "-Wnon-virtual-dtor", | 58 "-Wnon-virtual-dtor", |
| 63 "-Wvla", | 59 "-Wvla", |
| 64 "-Wno-conversion-null", | 60 "-Wno-conversion-null", |
| 65 "-Woverloaded-virtual", | 61 "-Woverloaded-virtual", |
| 66 "-g3", | 62 "-g3", |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 "vm/version.h", | 108 "vm/version.h", |
| 113 "$target_gen_dir/version.cc", | 109 "$target_gen_dir/version.cc", |
| 114 ] | 110 ] |
| 115 defines = [ | 111 defines = [ |
| 116 # Using DART_SHARED_LIB to export the Dart API entries. | 112 # Using DART_SHARED_LIB to export the Dart API entries. |
| 117 "DART_SHARED_LIB", | 113 "DART_SHARED_LIB", |
| 118 ] | 114 ] |
| 119 } | 115 } |
| 120 | 116 |
| 121 | 117 |
| 118 static_library("libdart_precompiled_runtime") { | |
| 119 configs += [":dart_config"] | |
| 120 deps = [ | |
| 121 "vm:libdart_lib_precompiled_runtime", | |
| 122 "vm:libdart_vm_precompiled_runtime", | |
| 123 "third_party/double-conversion/src:libdouble_conversion", | |
| 124 ":generate_version_cc_file", | |
| 125 ] | |
| 126 include_dirs = [ | |
| 127 ".", | |
| 128 ] | |
| 129 public_configs = [":dart_public_config"] | |
| 130 sources = [ | |
| 131 "include/dart_api.h", | |
| 132 "include/dart_mirrors_api.h", | |
| 133 "include/dart_native_api.h", | |
| 134 "include/dart_tools_api.h", | |
| 135 "vm/dart_api_impl.cc", | |
| 136 "vm/debugger_api_impl.cc", | |
| 137 "vm/mirrors_api_impl.cc", | |
| 138 "vm/native_api_impl.cc", | |
| 139 "vm/version.h", | |
| 140 "$target_gen_dir/version.cc", | |
| 141 ] | |
| 142 defines = [ | |
| 143 # Using DART_SHARED_LIB to export the Dart API entries. | |
| 144 "DART_SHARED_LIB", | |
| 145 "DART_PRECOMPILED_RUNTIME", | |
| 146 ] | |
| 147 } | |
| 148 | |
| 149 | |
| 122 action("generate_version_cc_file") { | 150 action("generate_version_cc_file") { |
| 123 deps = [ | 151 deps = [ |
| 124 ":libdart_dependency_helper", | 152 ":libdart_dependency_helper", |
| 125 ] | 153 ] |
| 126 inputs = [ | 154 inputs = [ |
| 127 "../tools/utils.py", | 155 "../tools/utils.py", |
| 128 "../tools/print_version.py", | 156 "../tools/print_version.py", |
| 129 "../tools/VERSION", | 157 "../tools/VERSION", |
| 130 "vm/version_in.cc", | 158 "vm/version_in.cc", |
| 131 ] | 159 ] |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 148 "vm:libdart_lib_nosnapshot", | 176 "vm:libdart_lib_nosnapshot", |
| 149 "vm:libdart_lib", | 177 "vm:libdart_lib", |
| 150 "vm:libdart_vm", | 178 "vm:libdart_vm", |
| 151 "vm:libdart_platform", | 179 "vm:libdart_platform", |
| 152 "third_party/double-conversion/src:libdouble_conversion", | 180 "third_party/double-conversion/src:libdouble_conversion", |
| 153 ] | 181 ] |
| 154 sources = [ | 182 sources = [ |
| 155 "vm/libdart_dependency_helper.cc", | 183 "vm/libdart_dependency_helper.cc", |
| 156 ] | 184 ] |
| 157 } | 185 } |
| OLD | NEW |