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") { | 16 config("dart_public_config") { |
17 include_dirs = [ | 17 include_dirs = [ |
18 ".", | 18 ".", |
19 ] | 19 ] |
20 } | 20 } |
21 | 21 |
22 config("dart_config") { | 22 config("dart_config") { |
23 defines = [] | 23 defines = [] |
24 if (target_os == "ios") { | |
25 # For precompilation, we need to set the target architecture when we | |
26 # compile the snapshotter on the host. If no instruction buffer is created | |
rmacnak
2015/10/22 16:46:15
The snapshotter is osx not ios.
It would be bette
Chinmay
2015/10/22 19:01:29
ack
| |
27 # on the host, this argument is of no consequence. | |
28 defines += ["TARGET_ARCH_ARM64"] | |
29 } | |
24 if (dart_debug) { | 30 if (dart_debug) { |
25 defines += ["DEBUG"] | 31 defines += ["DEBUG"] |
26 } else { | 32 } else { |
27 defines += ["NDEBUG"] | 33 defines += ["NDEBUG"] |
28 } | 34 } |
29 | 35 |
30 cflags = [ | 36 cflags = [ |
31 "-Werror", | 37 "-Werror", |
32 "-Wall", | 38 "-Wall", |
33 "-Wextra", # Also known as -W. | 39 "-Wextra", # Also known as -W. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 "vm:libdart_lib_nosnapshot", | 127 "vm:libdart_lib_nosnapshot", |
122 "vm:libdart_lib", | 128 "vm:libdart_lib", |
123 "vm:libdart_vm", | 129 "vm:libdart_vm", |
124 "vm:libdart_platform", | 130 "vm:libdart_platform", |
125 "third_party/double-conversion/src:libdouble_conversion", | 131 "third_party/double-conversion/src:libdouble_conversion", |
126 ] | 132 ] |
127 sources = [ | 133 sources = [ |
128 "vm/libdart_dependency_helper.cc", | 134 "vm/libdart_dependency_helper.cc", |
129 ] | 135 ] |
130 } | 136 } |
OLD | NEW |