OLD | NEW |
---|---|
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 Loading... | |
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 # Android enables DCHECK()s on non-Official release builds. | |
1941 ['OS=="android" and buildtype!="Official"', { | |
1942 'defines!': ['NDEBUG'], | |
Torne
2012/08/13 15:08:28
Removing this now seems like a bad idea. If this i
Xianzhu
2012/08/13 16:58:35
Agreed. Done.
| |
1943 }], | |
1944 ], | 1940 ], |
1945 }, | 1941 }, |
1946 # | 1942 # |
1947 # Concrete configurations | 1943 # Concrete configurations |
1948 # | 1944 # |
1949 'Debug': { | 1945 'Debug': { |
1950 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'], | 1946 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'], |
1951 }, | 1947 }, |
1952 'Release': { | 1948 'Release': { |
1953 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'], | 1949 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'], |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2019 }, | 2015 }, |
2020 'defines': [ | 2016 'defines': [ |
2021 '_DEBUG', | 2017 '_DEBUG', |
2022 ], | 2018 ], |
2023 'cflags': [ | 2019 'cflags': [ |
2024 '-O>(debug_optimize)', | 2020 '-O>(debug_optimize)', |
2025 '-g', | 2021 '-g', |
2026 ], | 2022 ], |
2027 'conditions' : [ | 2023 'conditions' : [ |
2028 ['OS=="android"', { | 2024 ['OS=="android"', { |
2025 # Some configurations are copied from Release_Base to reduce | |
2026 # the binary size. | |
2027 'variables': { | |
2028 'debug_optimize%': 's', | |
2029 }, | |
2029 'cflags': [ | 2030 'cflags': [ |
2030 '-fno-omit-frame-pointer', | 2031 '-fno-ident', |
2032 '-fomit-frame-pointer', | |
2033 '-fdata-sections', | |
2034 '-ffunction-sections', | |
2035 ], | |
2036 'ldflags': [ | |
2037 '-Wl,-O1', | |
2038 '-Wl,--as-needed', | |
2039 '-Wl,--gc-sections', | |
2031 ], | 2040 ], |
2032 }], | 2041 }], |
2033 ], | 2042 ], |
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 }, | 2043 }, |
2051 'Release_Base': { | 2044 'Release_Base': { |
2052 'variables': { | 2045 'variables': { |
2053 'release_optimize%': '2', | 2046 'release_optimize%': '2', |
2054 # Binaries become big and gold is unable to perform GC | 2047 # Binaries become big and gold is unable to perform GC |
2055 # and remove unused sections for some of test targets | 2048 # and remove unused sections for some of test targets |
2056 # on 32 bit platform. | 2049 # on 32 bit platform. |
2057 # (This is currently observed only in chromeos valgrind bots) | 2050 # (This is currently observed only in chromeos valgrind bots) |
2058 # The following flag is to disable --gc-sections linker | 2051 # The following flag is to disable --gc-sections linker |
2059 # option for these bots. | 2052 # option for these bots. |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2486 | 2479 |
2487 # Placing this variable here prevents from forking libvpx, used | 2480 # Placing this variable here prevents from forking libvpx, used |
2488 # by remoting. Remoting is off, so it needn't built, | 2481 # by remoting. Remoting is off, so it needn't built, |
2489 # so forking it's deps seems like overkill. | 2482 # so forking it's deps seems like overkill. |
2490 # But this variable need defined to properly run gyp. | 2483 # But this variable need defined to properly run gyp. |
2491 # A proper solution is to have an OS==android conditional | 2484 # A proper solution is to have an OS==android conditional |
2492 # in third_party/libvpx/libvpx.gyp to define it. | 2485 # in third_party/libvpx/libvpx.gyp to define it. |
2493 'libvpx_path': 'lib/linux/arm', | 2486 'libvpx_path': 'lib/linux/arm', |
2494 }, | 2487 }, |
2495 'target_defaults': { | 2488 'target_defaults': { |
2496 # Build a Release build by default to match Android build behavior. | 2489 # TODO(wangxianzhu): We used to build Release version with DCHECK |
2497 # This is typical with Android because Debug builds tend to be much | 2490 # by default. Now we build Release without DCHECK, and build Debug |
2498 # larger and run very slowly on constrained devices. It is still | 2491 # with size optimizations. Remove the following line after everyone |
2499 # possible to do a Debug build by specifying BUILDTYPE=Debug on the | 2492 # knows how to deal with the change. |
2500 # 'make' command line. | |
2501 'default_configuration': 'Release', | 2493 'default_configuration': 'Release', |
2502 | 2494 |
2503 'variables': { | 2495 'variables': { |
2504 'release_extra_cflags%': '', | 2496 'release_extra_cflags%': '', |
2505 }, | 2497 }, |
2506 | 2498 |
2507 'target_conditions': [ | 2499 'target_conditions': [ |
2508 # Settings for building device targets using Android's toolchain. | 2500 # Settings for building device targets using Android's toolchain. |
2509 # These are based on the setup.mk file from the Android NDK. | 2501 # These are based on the setup.mk file from the Android NDK. |
2510 # | 2502 # |
2511 # The NDK Android executable link step looks as follows: | 2503 # The NDK Android executable link step looks as follows: |
2512 # $LDFLAGS | 2504 # $LDFLAGS |
2513 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o | 2505 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o |
2514 # $(PRIVATE_OBJECTS) <-- The .o that we built | 2506 # $(PRIVATE_OBJECTS) <-- The .o that we built |
2515 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built | 2507 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3346 # settings in target dicts. SYMROOT is a special case, because many other | 3338 # settings in target dicts. SYMROOT is a special case, because many other |
3347 # Xcode variables depend on it, including variables such as | 3339 # Xcode variables depend on it, including variables such as |
3348 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3340 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3349 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3341 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3350 # files to appear (when present) in the UI as actual files and not red | 3342 # files to appear (when present) in the UI as actual files and not red |
3351 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3343 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3352 # and therefore SYMROOT, needs to be set at the project level. | 3344 # and therefore SYMROOT, needs to be set at the project level. |
3353 'SYMROOT': '<(DEPTH)/xcodebuild', | 3345 'SYMROOT': '<(DEPTH)/xcodebuild', |
3354 }, | 3346 }, |
3355 } | 3347 } |
OLD | NEW |