OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 # Definitions for building Chrome with Dart on Android. |
| 6 # This is mostly excerpted from: |
| 7 # http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi |
| 8 |
| 9 { |
| 10 'target_defaults': { |
| 11 'cflags': [ |
| 12 '-Wno-abi', |
| 13 '-Wall', |
| 14 '-W', |
| 15 '-Wno-unused-parameter', |
| 16 '-Wnon-virtual-dtor', |
| 17 '-fno-rtti', |
| 18 '-fno-exceptions', |
| 19 ], |
| 20 'target_conditions': [ |
| 21 ['_toolset=="target"', { |
| 22 'cflags!': [ |
| 23 '-pthread', # Not supported by Android toolchain. |
| 24 ], |
| 25 'cflags': [ |
| 26 '-U__linux__', # Don't allow toolchain to claim -D__linux__ |
| 27 '-ffunction-sections', |
| 28 '-funwind-tables', |
| 29 '-fstack-protector', |
| 30 '-fno-short-enums', |
| 31 '-finline-limit=64', |
| 32 '-Wa,--noexecstack', |
| 33 ], |
| 34 'defines': [ |
| 35 'ANDROID', |
| 36 'USE_STLPORT=1', |
| 37 '_STLP_USE_PTR_SPECIALIZATIONS=1', |
| 38 '_STLP_NO_CSTD_FUNCTION_IMPORTS=1', |
| 39 'HAVE_OFF64_T', |
| 40 'HAVE_SYS_UIO_H', |
| 41 ], |
| 42 'ldflags!': [ |
| 43 '-pthread', # Not supported by Android toolchain. |
| 44 ], |
| 45 'ldflags': [ |
| 46 '-nostdlib', |
| 47 '-Wl,--no-undefined', |
| 48 # Don't export symbols from statically linked libraries. |
| 49 '-Wl,--exclude-libs=ALL', |
| 50 ], |
| 51 }], # _toolset=="target" |
| 52 ], # target_conditions |
| 53 }, # target_defaults |
| 54 } |
OLD | NEW |