Chromium Code Reviews| 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 22 matching lines...) Expand all Loading... | |
| 33 'android_build_type%': '<(android_build_type)', | 33 'android_build_type%': '<(android_build_type)', |
| 34 | 34 |
| 35 'OS': 'android', | 35 'OS': 'android', |
| 36 'android_target_arch' : 'x86', | 36 'android_target_arch' : 'x86', |
| 37 }, # variables | 37 }, # variables |
| 38 'target_defaults': { | 38 'target_defaults': { |
| 39 'defines': [ | 39 'defines': [ |
| 40 'ANDROID', | 40 'ANDROID', |
| 41 ], | 41 ], |
| 42 'configurations': { | 42 'configurations': { |
| 43 'Release': { | 43 'Dart_Debug': { |
| 44 'defines': [ | |
| 45 'DEBUG', | |
| 46 ], | |
| 47 }, | |
| 48 'Dart_Release': { | |
|
vsm
2012/11/29 23:13:30
Why do you need Release and Dart_Release?
gram
2012/11/29 23:23:23
We probably don't - but Release was there before,
vsm
2012/11/29 23:41:32
Sure, I'd get rid of the old code if it doesn't se
| |
| 49 'defines': [ | |
| 50 'NDEBUG', | |
| 51 ], | |
| 44 'cflags!': [ | 52 'cflags!': [ |
| 45 '-O2', | 53 '-O2', |
| 46 '-Os', | 54 '-Os', |
| 55 ], | |
| 56 'cflags': [ | |
| 57 '-fdata-sections', | |
| 58 '-ffunction-sections', | |
| 59 '-fomit-frame-pointer', | |
| 60 '-O3', | |
| 61 ], | |
| 62 }, # Release | |
|
vsm
2012/11/29 23:13:30
I think "#Release" meant of end-of-"Release" in th
gram
2012/11/29 23:23:23
Done.
| |
| 63 'Debug': { | |
| 64 'defines': [ | |
| 65 'DEBUG', | |
| 66 ], | |
| 67 }, | |
| 68 'Release': { | |
| 69 'defines': [ | |
| 70 'NDEBUG', | |
| 71 ], | |
| 72 'cflags!': [ | |
| 73 '-O2', | |
| 74 '-Os', | |
| 47 ], | 75 ], |
| 48 'cflags': [ | 76 'cflags': [ |
| 49 '-fdata-sections', | 77 '-fdata-sections', |
| 50 '-ffunction-sections', | 78 '-ffunction-sections', |
| 51 '-fomit-frame-pointer', | 79 '-fomit-frame-pointer', |
| 52 '-O3', | 80 '-O3', |
| 53 ], | 81 ], |
| 54 }, # Release | 82 }, # Release |
| 55 }, # configurations | 83 }, # configurations |
| 56 'cflags': [ '-Wno-abi', '-Wall', '-W', '-Wno-unused-parameter', | 84 'cflags': [ '-Wno-abi', '-Wall', '-W', '-Wno-unused-parameter', |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 'ldflags!': [ | 223 'ldflags!': [ |
| 196 '-Wl,-z,noexecstack', | 224 '-Wl,-z,noexecstack', |
| 197 '-Wl,--gc-sections', | 225 '-Wl,--gc-sections', |
| 198 '-Wl,-O1', | 226 '-Wl,-O1', |
| 199 '-Wl,--as-needed', | 227 '-Wl,--as-needed', |
| 200 ], | 228 ], |
| 201 }], | 229 }], |
| 202 ], # target_conditions | 230 ], # target_conditions |
| 203 }, # target_defaults | 231 }, # target_defaults |
| 204 } | 232 } |
| OLD | NEW |