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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 'defines': [ | 61 'defines': [ |
62 'NDEBUG', | 62 'NDEBUG', |
63 ], | 63 ], |
64 'cflags!': [ | 64 'cflags!': [ |
65 '-O2', | 65 '-O2', |
66 '-Os', | 66 '-Os', |
67 ], | 67 ], |
68 'cflags': [ | 68 'cflags': [ |
69 '-fdata-sections', | 69 '-fdata-sections', |
70 '-ffunction-sections', | 70 '-ffunction-sections', |
71 '-fno-omit-frame-pointer', | 71 # Uncomment the following line and pass --profile-vm to enable |
| 72 # profiling of C++ code within Observatory. |
| 73 # '-fno-omit-frame-pointer', |
72 '-O3', | 74 '-O3', |
73 ], | 75 ], |
74 }, | 76 }, |
75 'Dart_Android_ia32_Base': { | 77 'Dart_Android_ia32_Base': { |
76 'abstract': 1, | 78 'abstract': 1, |
77 'variables': { | 79 'variables': { |
78 'android_sysroot': '<(android_ndk_root)/platforms/android-14/arch-x86'
, | 80 'android_sysroot': '<(android_ndk_root)/platforms/android-14/arch-x86'
, |
79 'android_ndk_include': '<(android_sysroot)/usr/include', | 81 'android_ndk_include': '<(android_sysroot)/usr/include', |
80 'android_ndk_lib': '<(android_sysroot)/usr/lib', | 82 'android_ndk_lib': '<(android_sysroot)/usr/lib', |
81 }, | 83 }, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 ], | 185 ], |
184 }], | 186 }], |
185 ['_toolset=="host"', { | 187 ['_toolset=="host"', { |
186 'ldflags': [ '-m32', '-pthread' ], | 188 'ldflags': [ '-m32', '-pthread' ], |
187 }], | 189 }], |
188 ], | 190 ], |
189 }, | 191 }, |
190 }, # configurations | 192 }, # configurations |
191 }, # target_defaults | 193 }, # target_defaults |
192 } | 194 } |
OLD | NEW |