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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 '-Wa,--noexecstack', | 44 '-Wa,--noexecstack', |
45 ], | 45 ], |
46 }], | 46 }], |
47 ], | 47 ], |
48 }, | 48 }, |
49 'Dart_Android_Debug': { | 49 'Dart_Android_Debug': { |
50 'abstract': 1, | 50 'abstract': 1, |
51 'defines': [ | 51 'defines': [ |
52 'DEBUG', | 52 'DEBUG', |
53 ], | 53 ], |
54 'conditions': [ | 54 'cflags': [ |
55 ['c_frame_pointers==1', { | 55 '-fno-omit-frame-pointer', |
56 'cflags': [ | |
57 '-fno-omit-frame-pointer', | |
58 ], | |
59 'defines': [ | |
60 'NATIVE_CODE_HAS_FRAME_POINTERS' | |
61 ], | |
62 }], | |
63 ], | 56 ], |
64 }, | 57 }, |
65 'Dart_Android_Release': { | 58 'Dart_Android_Release': { |
66 'abstract': 1, | 59 'abstract': 1, |
67 'defines': [ | 60 'defines': [ |
68 'NDEBUG', | 61 'NDEBUG', |
69 ], | 62 ], |
70 'cflags!': [ | 63 'cflags!': [ |
71 '-O2', | 64 '-O2', |
72 '-Os', | 65 '-Os', |
73 ], | 66 ], |
74 'cflags': [ | 67 'cflags': [ |
| 68 '-fno-omit-frame-pointer', |
| 69 '-fdata-sections', |
| 70 '-ffunction-sections', |
| 71 '-O3', |
| 72 ], |
| 73 }, |
| 74 'Dart_Android_Product': { |
| 75 'abstract': 1, |
| 76 'defines': [ |
| 77 'NDEBUG', |
| 78 'PRODUCT', |
| 79 ], |
| 80 'cflags!': [ |
| 81 '-O2', |
| 82 '-Os', |
| 83 ], |
| 84 'cflags': [ |
75 '-fdata-sections', | 85 '-fdata-sections', |
76 '-ffunction-sections', | 86 '-ffunction-sections', |
77 '-O3', | 87 '-O3', |
78 ], | 88 ], |
79 'conditions': [ | |
80 ['c_frame_pointers==1', { | |
81 'cflags': [ | |
82 '-fno-omit-frame-pointer', | |
83 ], | |
84 'defines': [ | |
85 'NATIVE_CODE_HAS_FRAME_POINTERS' | |
86 ], | |
87 }], | |
88 ], | |
89 }, | 89 }, |
90 'Dart_Android_ia32_Base': { | 90 'Dart_Android_ia32_Base': { |
91 'abstract': 1, | 91 'abstract': 1, |
92 'variables': { | 92 'variables': { |
93 'android_sysroot': '<(android_ndk_root)/platforms/android-14/arch-x86'
, | 93 'android_sysroot': '<(android_ndk_root)/platforms/android-14/arch-x86'
, |
94 'android_ndk_include': '<(android_sysroot)/usr/include', | 94 'android_ndk_include': '<(android_sysroot)/usr/include', |
95 'android_ndk_lib': '<(android_sysroot)/usr/lib', | 95 'android_ndk_lib': '<(android_sysroot)/usr/lib', |
96 }, | 96 }, |
97 'target_conditions': [ | 97 'target_conditions': [ |
98 ['_toolset=="target"', { | 98 ['_toolset=="target"', { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 ], | 253 ], |
254 }], | 254 }], |
255 ['_toolset=="host"', { | 255 ['_toolset=="host"', { |
256 'ldflags': [ '-pthread' ], | 256 'ldflags': [ '-pthread' ], |
257 }], | 257 }], |
258 ], | 258 ], |
259 }, # Dart_Android_arm64_Base | 259 }, # Dart_Android_arm64_Base |
260 }, # configurations | 260 }, # configurations |
261 }, # target_defaults | 261 }, # target_defaults |
262 } | 262 } |
OLD | NEW |