OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, 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 # Definitions for building standalone Dart binaries to run on Android. | 5 # Definitions for building standalone Dart binaries to run on Android. |
6 # This is mostly excerpted from: | 6 # This is mostly excerpted from: |
7 # http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi | 7 # http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi |
8 | 8 |
9 { | 9 { |
10 'variables': { | 10 'variables': { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 'defines': [ | 49 'defines': [ |
50 'NDEBUG', | 50 'NDEBUG', |
51 ], | 51 ], |
52 'cflags!': [ | 52 'cflags!': [ |
53 '-O2', | 53 '-O2', |
54 '-Os', | 54 '-Os', |
55 ], | 55 ], |
56 'cflags': [ | 56 'cflags': [ |
57 '-fdata-sections', | 57 '-fdata-sections', |
58 '-ffunction-sections', | 58 '-ffunction-sections', |
59 '-fomit-frame-pointer', | 59 '-fno-omit-frame-pointer', |
60 '-O3', | 60 '-O3', |
61 ], | 61 ], |
62 }, | 62 }, |
63 }, # configurations | 63 }, # configurations |
64 'cflags': [ '-Wno-abi', '-Wall', '-W', '-Wno-unused-parameter', | 64 'cflags': [ '-Wno-abi', '-Wall', '-W', '-Wno-unused-parameter', |
65 '-Wnon-virtual-dtor', '-fno-rtti', '-fno-exceptions', ], | 65 '-Wnon-virtual-dtor', '-fno-rtti', '-fno-exceptions', ], |
66 'target_conditions': [ | 66 'target_conditions': [ |
67 ['_toolset=="target"', { | 67 ['_toolset=="target"', { |
68 'cflags!': [ | 68 'cflags!': [ |
69 '-pthread', # Not supported by Android toolchain. | 69 '-pthread', # Not supported by Android toolchain. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 'ldflags!': [ | 203 'ldflags!': [ |
204 '-Wl,-z,noexecstack', | 204 '-Wl,-z,noexecstack', |
205 '-Wl,--gc-sections', | 205 '-Wl,--gc-sections', |
206 '-Wl,-O1', | 206 '-Wl,-O1', |
207 '-Wl,--as-needed', | 207 '-Wl,--as-needed', |
208 ], | 208 ], |
209 }], | 209 }], |
210 ], # target_conditions | 210 ], # target_conditions |
211 }, # target_defaults | 211 }, # target_defaults |
212 } | 212 } |
OLD | NEW |