Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: tools/gyp/configurations_android.gypi

Issue 1663863002: Add product mode: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Reworked the flags setting: Moving to single file for all flag defintions. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gyp/configurations.gypi ('k') | tools/gyp/configurations_make.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « tools/gyp/configurations.gypi ('k') | tools/gyp/configurations_make.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698