| 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 'variables': { | |
| 11 'dart_io_support': 0, | |
| 12 }, | |
| 13 'target_defaults': { | |
| 14 'cflags': [ | |
| 15 '-Wno-abi', | |
| 16 '-Wall', | |
| 17 '-W', | |
| 18 '-Wno-unused-parameter', | |
| 19 '-Wnon-virtual-dtor', | |
| 20 '-fno-rtti', | |
| 21 '-fno-exceptions', | |
| 22 ], | |
| 23 'target_conditions': [ | |
| 24 ['_toolset=="target"', { | |
| 25 'cflags!': [ | |
| 26 '-pthread', # Not supported by Android toolchain. | |
| 27 ], | |
| 28 'cflags': [ | |
| 29 '-U__linux__', # Don't allow toolchain to claim -D__linux__ | |
| 30 '-ffunction-sections', | |
| 31 '-funwind-tables', | |
| 32 '-fstack-protector', | |
| 33 '-fno-short-enums', | |
| 34 '-finline-limit=64', | |
| 35 '-Wa,--noexecstack', | |
| 36 ], | |
| 37 'defines': [ | |
| 38 'ANDROID', | |
| 39 'USE_STLPORT=1', | |
| 40 '_STLP_USE_PTR_SPECIALIZATIONS=1', | |
| 41 '_STLP_NO_CSTD_FUNCTION_IMPORTS=1', | |
| 42 'HAVE_OFF64_T', | |
| 43 'HAVE_SYS_UIO_H', | |
| 44 ], | |
| 45 'ldflags!': [ | |
| 46 '-pthread', # Not supported by Android toolchain. | |
| 47 ], | |
| 48 'ldflags': [ | |
| 49 '-nostdlib', | |
| 50 '-Wl,--no-undefined', | |
| 51 # Don't export symbols from statically linked libraries. | |
| 52 '-Wl,--exclude-libs=ALL', | |
| 53 ], | |
| 54 }], # _toolset=="target" | |
| 55 ], # target_conditions | |
| 56 }, # target_defaults | |
| 57 } | |
| OLD | NEW |