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

Side by Side Diff: build/common.gypi

Issue 10827273: Change Android build configurations (step 1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed changes to scripts from this change. Will do the change in a separate CL. 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 | « no previous file | 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 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 }], 1930 }],
1931 ['OS=="linux"', { 1931 ['OS=="linux"', {
1932 'target_conditions': [ 1932 'target_conditions': [
1933 ['_toolset=="target"', { 1933 ['_toolset=="target"', {
1934 'cflags': [ 1934 'cflags': [
1935 '<@(release_extra_cflags)', 1935 '<@(release_extra_cflags)',
1936 ], 1936 ],
1937 }], 1937 }],
1938 ], 1938 ],
1939 }], 1939 }],
1940 # TODO(wangxianzhu): Remove this. This is temporarily kept before
1941 # default build type switched to Debug.
1940 # Android enables DCHECK()s on non-Official release builds. 1942 # Android enables DCHECK()s on non-Official release builds.
1941 ['OS=="android" and buildtype!="Official"', { 1943 ['OS=="android" and buildtype!="Official"', {
1942 'defines!': ['NDEBUG'], 1944 'defines!': ['NDEBUG'],
1943 }], 1945 }],
1944 ], 1946 ],
1945 }, 1947 },
1946 # 1948 #
1947 # Concrete configurations 1949 # Concrete configurations
1948 # 1950 #
1949 'Debug': { 1951 'Debug': {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2019 }, 2021 },
2020 'defines': [ 2022 'defines': [
2021 '_DEBUG', 2023 '_DEBUG',
2022 ], 2024 ],
2023 'cflags': [ 2025 'cflags': [
2024 '-O>(debug_optimize)', 2026 '-O>(debug_optimize)',
2025 '-g', 2027 '-g',
2026 ], 2028 ],
2027 'conditions' : [ 2029 'conditions' : [
2028 ['OS=="android"', { 2030 ['OS=="android"', {
2031 # Some configurations are copied from Release_Base to reduce
2032 # the binary size.
2033 'variables': {
2034 'debug_optimize%': 's',
2035 },
2029 'cflags': [ 2036 'cflags': [
2030 '-fno-omit-frame-pointer', 2037 '-fno-ident',
2038 '-fomit-frame-pointer',
2039 '-fdata-sections',
2040 '-ffunction-sections',
2041 ],
2042 'ldflags': [
2043 '-Wl,-O1',
2044 '-Wl,--as-needed',
2045 '-Wl,--gc-sections',
2031 ], 2046 ],
2032 }], 2047 }],
2033 ], 2048 ],
2034 'target_conditions' : [
2035 ['_toolset=="target"', {
2036 'conditions': [
2037 ['OS=="android" and debug_optimize==0 and target_arch=="arm"', {
2038 'cflags': [
2039 '-mlong-calls', # Needed when compiling with -O0
2040 ],
2041 }],
2042 ['arm_thumb==1', {
2043 'cflags': [
2044 '-marm',
2045 ],
2046 }],
2047 ],
2048 }],
2049 ],
2050 }, 2049 },
2051 'Release_Base': { 2050 'Release_Base': {
2052 'variables': { 2051 'variables': {
2053 'release_optimize%': '2', 2052 'release_optimize%': '2',
2054 # Binaries become big and gold is unable to perform GC 2053 # Binaries become big and gold is unable to perform GC
2055 # and remove unused sections for some of test targets 2054 # and remove unused sections for some of test targets
2056 # on 32 bit platform. 2055 # on 32 bit platform.
2057 # (This is currently observed only in chromeos valgrind bots) 2056 # (This is currently observed only in chromeos valgrind bots)
2058 # The following flag is to disable --gc-sections linker 2057 # The following flag is to disable --gc-sections linker
2059 # option for these bots. 2058 # option for these bots.
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
2495 2494
2496 # Placing this variable here prevents from forking libvpx, used 2495 # Placing this variable here prevents from forking libvpx, used
2497 # by remoting. Remoting is off, so it needn't built, 2496 # by remoting. Remoting is off, so it needn't built,
2498 # so forking it's deps seems like overkill. 2497 # so forking it's deps seems like overkill.
2499 # But this variable need defined to properly run gyp. 2498 # But this variable need defined to properly run gyp.
2500 # A proper solution is to have an OS==android conditional 2499 # A proper solution is to have an OS==android conditional
2501 # in third_party/libvpx/libvpx.gyp to define it. 2500 # in third_party/libvpx/libvpx.gyp to define it.
2502 'libvpx_path': 'lib/linux/arm', 2501 'libvpx_path': 'lib/linux/arm',
2503 }, 2502 },
2504 'target_defaults': { 2503 'target_defaults': {
2505 # Build a Release build by default to match Android build behavior. 2504 # TODO(wangxianzhu): We used to build Release version with DCHECK
2506 # This is typical with Android because Debug builds tend to be much 2505 # by default. Now we build Release without DCHECK, and build Debug
2507 # larger and run very slowly on constrained devices. It is still 2506 # with size optimizations. Remove the following line after everyone
2508 # possible to do a Debug build by specifying BUILDTYPE=Debug on the 2507 # knows how to deal with the change.
2509 # 'make' command line.
2510 'default_configuration': 'Release', 2508 'default_configuration': 'Release',
2511 2509
2512 'variables': { 2510 'variables': {
2513 'release_extra_cflags%': '', 2511 'release_extra_cflags%': '',
2514 }, 2512 },
2515 2513
2516 'target_conditions': [ 2514 'target_conditions': [
2517 # Settings for building device targets using Android's toolchain. 2515 # Settings for building device targets using Android's toolchain.
2518 # These are based on the setup.mk file from the Android NDK. 2516 # These are based on the setup.mk file from the Android NDK.
2519 # 2517 #
2520 # The NDK Android executable link step looks as follows: 2518 # The NDK Android executable link step looks as follows:
2521 # $LDFLAGS 2519 # $LDFLAGS
2522 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o 2520 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o
2523 # $(PRIVATE_OBJECTS) <-- The .o that we built 2521 # $(PRIVATE_OBJECTS) <-- The .o that we built
2524 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built 2522 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
3382 # settings in target dicts. SYMROOT is a special case, because many other 3380 # settings in target dicts. SYMROOT is a special case, because many other
3383 # Xcode variables depend on it, including variables such as 3381 # Xcode variables depend on it, including variables such as
3384 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3382 # 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 3383 # 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 3384 # 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, 3385 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3388 # and therefore SYMROOT, needs to be set at the project level. 3386 # and therefore SYMROOT, needs to be set at the project level.
3389 'SYMROOT': '<(DEPTH)/xcodebuild', 3387 'SYMROOT': '<(DEPTH)/xcodebuild',
3390 }, 3388 },
3391 } 3389 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698