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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 '-finline-limit=64', | 69 '-finline-limit=64', |
70 '-Wa,--noexecstack', | 70 '-Wa,--noexecstack', |
71 # Note: This include is in cflags to ensure that it comes after | 71 # Note: This include is in cflags to ensure that it comes after |
72 # all of the includes. | 72 # all of the includes. |
73 '-I<(android_ndk_include)', | 73 '-I<(android_ndk_include)', |
74 ], | 74 ], |
75 'defines': [ | 75 'defines': [ |
76 'ANDROID', | 76 'ANDROID', |
77 'USE_STLPORT=1', | 77 'USE_STLPORT=1', |
78 '_STLP_USE_PTR_SPECIALIZATIONS=1', | 78 '_STLP_USE_PTR_SPECIALIZATIONS=1', |
| 79 '_STLP_NO_CSTD_FUNCTION_IMPORTS=1', |
79 'HAVE_OFF64_T', | 80 'HAVE_OFF64_T', |
80 'HAVE_SYS_UIO_H', | 81 'HAVE_SYS_UIO_H', |
81 ], | 82 ], |
82 'ldflags!': [ | 83 'ldflags!': [ |
83 '-pthread', # Not supported by Android toolchain. | 84 '-pthread', # Not supported by Android toolchain. |
84 ], | 85 ], |
85 'ldflags': [ | 86 'ldflags': [ |
86 '-nostdlib', | 87 '-nostdlib', |
87 '-Wl,--no-undefined', | 88 '-Wl,--no-undefined', |
88 # Don't export symbols from statically linked libraries. | 89 # Don't export symbols from statically linked libraries. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 'ldflags!': [ | 195 'ldflags!': [ |
195 '-Wl,-z,noexecstack', | 196 '-Wl,-z,noexecstack', |
196 '-Wl,--gc-sections', | 197 '-Wl,--gc-sections', |
197 '-Wl,-O1', | 198 '-Wl,-O1', |
198 '-Wl,--as-needed', | 199 '-Wl,--as-needed', |
199 ], | 200 ], |
200 }], | 201 }], |
201 ], # target_conditions | 202 ], # target_conditions |
202 }, # target_defaults | 203 }, # target_defaults |
203 } | 204 } |
OLD | NEW |