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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 | 844 |
845 # Disable Dart by default. | 845 # Disable Dart by default. |
846 'enable_dart%': 0, | 846 'enable_dart%': 0, |
847 | 847 |
848 # The desired version of Windows SDK can be set in ~/.gyp/include.gypi. | 848 # The desired version of Windows SDK can be set in ~/.gyp/include.gypi. |
849 'msbuild_toolset%': '', | 849 'msbuild_toolset%': '', |
850 | 850 |
851 # Native Client is enabled by default. | 851 # Native Client is enabled by default. |
852 'disable_nacl%': 0, | 852 'disable_nacl%': 0, |
853 | 853 |
| 854 # Whether to build full debug version for Debug configuration on Android. |
| 855 # Compared to full debug version, the default Debug configuration on Android |
| 856 # has no full v8 debug, has size optimization and linker gc section, so that |
| 857 # we can build a debug version with acceptable size and performance. |
| 858 'android_full_debug%': 0, |
| 859 |
854 'sas_dll_exists': '<!(python <(DEPTH)/build/dir_exists.py <(sas_dll_path))', | 860 'sas_dll_exists': '<!(python <(DEPTH)/build/dir_exists.py <(sas_dll_path))', |
855 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))', | 861 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))', |
856 | 862 |
857 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files', | 863 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files', |
858 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files', | 864 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files', |
859 | 865 |
860 'conditions': [ | 866 'conditions': [ |
861 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa
ult_path))"=="True"', { | 867 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa
ult_path))"=="True"', { |
862 'windows_sdk_path%': '<(windows_sdk_default_path)', | 868 'windows_sdk_path%': '<(windows_sdk_default_path)', |
863 }, { | 869 }, { |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1944 }], | 1950 }], |
1945 ['OS=="linux"', { | 1951 ['OS=="linux"', { |
1946 'target_conditions': [ | 1952 'target_conditions': [ |
1947 ['_toolset=="target"', { | 1953 ['_toolset=="target"', { |
1948 'cflags': [ | 1954 'cflags': [ |
1949 '<@(release_extra_cflags)', | 1955 '<@(release_extra_cflags)', |
1950 ], | 1956 ], |
1951 }], | 1957 }], |
1952 ], | 1958 ], |
1953 }], | 1959 }], |
1954 # TODO(wangxianzhu): Remove this. This is temporarily kept before | |
1955 # default build type switched to Debug. | |
1956 # Android enables DCHECK()s on non-Official release builds. | |
1957 ['OS=="android" and buildtype!="Official"', { | |
1958 'defines!': ['NDEBUG'], | |
1959 }], | |
1960 ], | 1960 ], |
1961 }, | 1961 }, |
1962 # | 1962 # |
1963 # Concrete configurations | 1963 # Concrete configurations |
1964 # | 1964 # |
1965 'Debug': { | 1965 'Debug': { |
1966 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'], | 1966 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'], |
1967 }, | 1967 }, |
1968 'Release': { | 1968 'Release': { |
1969 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'], | 1969 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'], |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2034 'debug_optimize%': '0', | 2034 'debug_optimize%': '0', |
2035 }, | 2035 }, |
2036 'defines': [ | 2036 'defines': [ |
2037 '_DEBUG', | 2037 '_DEBUG', |
2038 ], | 2038 ], |
2039 'cflags': [ | 2039 'cflags': [ |
2040 '-O>(debug_optimize)', | 2040 '-O>(debug_optimize)', |
2041 '-g', | 2041 '-g', |
2042 ], | 2042 ], |
2043 'conditions' : [ | 2043 'conditions' : [ |
2044 ['OS=="android"', { | 2044 ['OS=="android" and android_full_debug==0', { |
2045 # Some configurations are copied from Release_Base to reduce | 2045 # Some configurations are copied from Release_Base to reduce |
2046 # the binary size. | 2046 # the binary size. |
2047 'variables': { | 2047 'variables': { |
2048 'debug_optimize%': 's', | 2048 'debug_optimize%': 's', |
2049 }, | 2049 }, |
2050 'cflags': [ | 2050 'cflags': [ |
2051 '-fomit-frame-pointer', | 2051 '-fomit-frame-pointer', |
2052 '-fdata-sections', | 2052 '-fdata-sections', |
2053 '-ffunction-sections', | 2053 '-ffunction-sections', |
2054 ], | 2054 ], |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2510 | 2510 |
2511 # Placing this variable here prevents from forking libvpx, used | 2511 # Placing this variable here prevents from forking libvpx, used |
2512 # by remoting. Remoting is off, so it needn't built, | 2512 # by remoting. Remoting is off, so it needn't built, |
2513 # so forking it's deps seems like overkill. | 2513 # so forking it's deps seems like overkill. |
2514 # But this variable need defined to properly run gyp. | 2514 # But this variable need defined to properly run gyp. |
2515 # A proper solution is to have an OS==android conditional | 2515 # A proper solution is to have an OS==android conditional |
2516 # in third_party/libvpx/libvpx.gyp to define it. | 2516 # in third_party/libvpx/libvpx.gyp to define it. |
2517 'libvpx_path': 'lib/linux/arm', | 2517 'libvpx_path': 'lib/linux/arm', |
2518 }, | 2518 }, |
2519 'target_defaults': { | 2519 'target_defaults': { |
2520 # TODO(wangxianzhu): We used to build Release version with DCHECK | |
2521 # by default. Now we build Release without DCHECK, and build Debug | |
2522 # with size optimizations. Remove the following line after everyone | |
2523 # knows how to deal with the change. | |
2524 'default_configuration': 'Release', | |
2525 | |
2526 'variables': { | 2520 'variables': { |
2527 'release_extra_cflags%': '', | 2521 'release_extra_cflags%': '', |
2528 }, | 2522 }, |
2529 | 2523 |
2530 'target_conditions': [ | 2524 'target_conditions': [ |
2531 # Settings for building device targets using Android's toolchain. | 2525 # Settings for building device targets using Android's toolchain. |
2532 # These are based on the setup.mk file from the Android NDK. | 2526 # These are based on the setup.mk file from the Android NDK. |
2533 # | 2527 # |
2534 # The NDK Android executable link step looks as follows: | 2528 # The NDK Android executable link step looks as follows: |
2535 # $LDFLAGS | 2529 # $LDFLAGS |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3396 # settings in target dicts. SYMROOT is a special case, because many other | 3390 # settings in target dicts. SYMROOT is a special case, because many other |
3397 # Xcode variables depend on it, including variables such as | 3391 # Xcode variables depend on it, including variables such as |
3398 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3392 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3399 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3393 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3400 # files to appear (when present) in the UI as actual files and not red | 3394 # files to appear (when present) in the UI as actual files and not red |
3401 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3395 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3402 # and therefore SYMROOT, needs to be set at the project level. | 3396 # and therefore SYMROOT, needs to be set at the project level. |
3403 'SYMROOT': '<(DEPTH)/xcodebuild', | 3397 'SYMROOT': '<(DEPTH)/xcodebuild', |
3404 }, | 3398 }, |
3405 } | 3399 } |
OLD | NEW |