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

Side by Side Diff: build/common.gypi

Issue 10831381: Change Android build configurations (step 3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add android_full_debug variable Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/test_options_parser.py ('k') | no next file » | 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 Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 841
842 # Disable Dart by default. 842 # Disable Dart by default.
843 'enable_dart%': 0, 843 'enable_dart%': 0,
844 844
845 # The desired version of Windows SDK can be set in ~/.gyp/include.gypi. 845 # The desired version of Windows SDK can be set in ~/.gyp/include.gypi.
846 'msbuild_toolset%': '', 846 'msbuild_toolset%': '',
847 847
848 # Native Client is enabled by default. 848 # Native Client is enabled by default.
849 'disable_nacl%': 0, 849 'disable_nacl%': 0,
850 850
851 # Whether to build full debug version for Debug configuratoin on Android.
Satish 2012/08/20 11:30:36 please also explain what 'full debug' means in thi
Satish 2012/08/20 11:30:36 configuratoin -> configuration
Xianzhu 2012/08/20 18:12:43 Done.
Xianzhu 2012/08/20 18:12:43 Done.
852 'android_full_debug%': 0,
853
851 'sas_dll_exists': '<!(python <(DEPTH)/build/dir_exists.py <(sas_dll_path))', 854 'sas_dll_exists': '<!(python <(DEPTH)/build/dir_exists.py <(sas_dll_path))',
852 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))', 855 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))',
853 856
854 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files', 857 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files',
855 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files', 858 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files',
856 859
857 'conditions': [ 860 'conditions': [
858 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { 861 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', {
859 'windows_sdk_path%': '<(windows_sdk_default_path)', 862 'windows_sdk_path%': '<(windows_sdk_default_path)',
860 }, { 863 }, {
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 }], 1936 }],
1934 ['OS=="linux"', { 1937 ['OS=="linux"', {
1935 'target_conditions': [ 1938 'target_conditions': [
1936 ['_toolset=="target"', { 1939 ['_toolset=="target"', {
1937 'cflags': [ 1940 'cflags': [
1938 '<@(release_extra_cflags)', 1941 '<@(release_extra_cflags)',
1939 ], 1942 ],
1940 }], 1943 }],
1941 ], 1944 ],
1942 }], 1945 }],
1943 # TODO(wangxianzhu): Remove this. This is temporarily kept before
1944 # default build type switched to Debug.
1945 # Android enables DCHECK()s on non-Official release builds.
1946 ['OS=="android" and buildtype!="Official"', {
1947 'defines!': ['NDEBUG'],
1948 }],
1949 ], 1946 ],
1950 }, 1947 },
1951 # 1948 #
1952 # Concrete configurations 1949 # Concrete configurations
1953 # 1950 #
1954 'Debug': { 1951 'Debug': {
1955 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'], 1952 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'],
1956 }, 1953 },
1957 'Release': { 1954 'Release': {
1958 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'], 1955 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
2023 'debug_optimize%': '0', 2020 'debug_optimize%': '0',
2024 }, 2021 },
2025 'defines': [ 2022 'defines': [
2026 '_DEBUG', 2023 '_DEBUG',
2027 ], 2024 ],
2028 'cflags': [ 2025 'cflags': [
2029 '-O>(debug_optimize)', 2026 '-O>(debug_optimize)',
2030 '-g', 2027 '-g',
2031 ], 2028 ],
2032 'conditions' : [ 2029 'conditions' : [
2033 ['OS=="android"', { 2030 ['OS=="android" and android_full_debug==0', {
2034 # Some configurations are copied from Release_Base to reduce 2031 # Some configurations are copied from Release_Base to reduce
2035 # the binary size. 2032 # the binary size.
2036 'variables': { 2033 'variables': {
2037 'debug_optimize%': 's', 2034 'debug_optimize%': 's',
2038 }, 2035 },
2039 'cflags': [ 2036 'cflags': [
2040 '-fomit-frame-pointer', 2037 '-fomit-frame-pointer',
2041 '-fdata-sections', 2038 '-fdata-sections',
2042 '-ffunction-sections', 2039 '-ffunction-sections',
2043 ], 2040 ],
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2496 2493
2497 # Placing this variable here prevents from forking libvpx, used 2494 # Placing this variable here prevents from forking libvpx, used
2498 # by remoting. Remoting is off, so it needn't built, 2495 # by remoting. Remoting is off, so it needn't built,
2499 # so forking it's deps seems like overkill. 2496 # so forking it's deps seems like overkill.
2500 # But this variable need defined to properly run gyp. 2497 # But this variable need defined to properly run gyp.
2501 # A proper solution is to have an OS==android conditional 2498 # A proper solution is to have an OS==android conditional
2502 # in third_party/libvpx/libvpx.gyp to define it. 2499 # in third_party/libvpx/libvpx.gyp to define it.
2503 'libvpx_path': 'lib/linux/arm', 2500 'libvpx_path': 'lib/linux/arm',
2504 }, 2501 },
2505 'target_defaults': { 2502 'target_defaults': {
2506 # TODO(wangxianzhu): We used to build Release version with DCHECK
2507 # by default. Now we build Release without DCHECK, and build Debug
2508 # with size optimizations. Remove the following line after everyone
2509 # knows how to deal with the change.
2510 'default_configuration': 'Release',
2511
2512 'variables': { 2503 'variables': {
2513 'release_extra_cflags%': '', 2504 'release_extra_cflags%': '',
2514 }, 2505 },
2515 2506
2516 'target_conditions': [ 2507 'target_conditions': [
2517 # Settings for building device targets using Android's toolchain. 2508 # Settings for building device targets using Android's toolchain.
2518 # These are based on the setup.mk file from the Android NDK. 2509 # These are based on the setup.mk file from the Android NDK.
2519 # 2510 #
2520 # The NDK Android executable link step looks as follows: 2511 # The NDK Android executable link step looks as follows:
2521 # $LDFLAGS 2512 # $LDFLAGS
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
3382 # settings in target dicts. SYMROOT is a special case, because many other 3373 # settings in target dicts. SYMROOT is a special case, because many other
3383 # Xcode variables depend on it, including variables such as 3374 # Xcode variables depend on it, including variables such as
3384 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3375 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3385 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3376 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3386 # files to appear (when present) in the UI as actual files and not red 3377 # files to appear (when present) in the UI as actual files and not red
3387 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3378 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3388 # and therefore SYMROOT, needs to be set at the project level. 3379 # and therefore SYMROOT, needs to be set at the project level.
3389 'SYMROOT': '<(DEPTH)/xcodebuild', 3380 'SYMROOT': '<(DEPTH)/xcodebuild',
3390 }, 3381 },
3391 } 3382 }
OLDNEW
« no previous file with comments | « build/android/pylib/test_options_parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698