| 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 |
| 11 # Debug build of Dart so that clients can still use a Release build of Dart | 11 # Debug build of Dart so that clients can still use a Release build of Dart |
| 12 # while themselves doing a Debug build. | 12 # while themselves doing a Debug build. |
| 13 dart_debug = false | 13 dart_debug = false |
| 14 } | 14 } |
| 15 | 15 |
| 16 config("dart_public_config") { |
| 17 include_dirs = [ |
| 18 ".", |
| 19 ] |
| 20 } |
| 21 |
| 16 config("dart_config") { | 22 config("dart_config") { |
| 17 defines = [] | 23 defines = [] |
| 18 if (dart_debug) { | 24 if (dart_debug) { |
| 19 defines += ["DEBUG"] | 25 defines += ["DEBUG"] |
| 20 } else { | 26 } else { |
| 21 defines += ["NDEBUG"] | 27 defines += ["NDEBUG"] |
| 22 } | 28 } |
| 23 | 29 |
| 24 cflags = [ | 30 cflags = [ |
| 25 "-Werror", | 31 "-Werror", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 configs += [":dart_config"] | 65 configs += [":dart_config"] |
| 60 deps = [ | 66 deps = [ |
| 61 "vm:libdart_lib", | 67 "vm:libdart_lib", |
| 62 "vm:libdart_vm", | 68 "vm:libdart_vm", |
| 63 "third_party/double-conversion/src:libdouble_conversion", | 69 "third_party/double-conversion/src:libdouble_conversion", |
| 64 ":generate_version_cc_file", | 70 ":generate_version_cc_file", |
| 65 ] | 71 ] |
| 66 include_dirs = [ | 72 include_dirs = [ |
| 67 ".", | 73 ".", |
| 68 ] | 74 ] |
| 75 public_configs = [":dart_public_config"] |
| 69 sources = [ | 76 sources = [ |
| 70 "include/dart_api.h", | 77 "include/dart_api.h", |
| 71 "include/dart_mirrors_api.h", | 78 "include/dart_mirrors_api.h", |
| 72 "include/dart_native_api.h", | 79 "include/dart_native_api.h", |
| 73 "include/dart_tools_api.h", | 80 "include/dart_tools_api.h", |
| 74 "vm/dart_api_impl.cc", | 81 "vm/dart_api_impl.cc", |
| 75 "vm/debugger_api_impl.cc", | 82 "vm/debugger_api_impl.cc", |
| 76 "vm/mirrors_api_impl.cc", | 83 "vm/mirrors_api_impl.cc", |
| 77 "vm/native_api_impl.cc", | 84 "vm/native_api_impl.cc", |
| 78 "vm/version.h", | 85 "vm/version.h", |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 "vm:libdart_lib_nosnapshot", | 121 "vm:libdart_lib_nosnapshot", |
| 115 "vm:libdart_lib", | 122 "vm:libdart_lib", |
| 116 "vm:libdart_vm", | 123 "vm:libdart_vm", |
| 117 "vm:libdart_platform", | 124 "vm:libdart_platform", |
| 118 "third_party/double-conversion/src:libdouble_conversion", | 125 "third_party/double-conversion/src:libdouble_conversion", |
| 119 ] | 126 ] |
| 120 sources = [ | 127 sources = [ |
| 121 "vm/libdart_dependency_helper.cc", | 128 "vm/libdart_dependency_helper.cc", |
| 122 ] | 129 ] |
| 123 } | 130 } |
| OLD | NEW |