| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 # Enable HiDPI support. | 41 # Enable HiDPI support. |
| 42 'enable_hidpi%': 0, | 42 'enable_hidpi%': 0, |
| 43 | 43 |
| 44 # Enable touch optimized art assets and metrics. | 44 # Enable touch optimized art assets and metrics. |
| 45 'enable_touch_ui%': 0, | 45 'enable_touch_ui%': 0, |
| 46 | 46 |
| 47 # Enable inclusion of touch-optimized resources. | 47 # Enable inclusion of touch-optimized resources. |
| 48 # TODO(joi): Rename to enable_touch_assets. | 48 # TODO(joi): Rename to enable_touch_assets. |
| 49 'enable_metro%': 0, | 49 'enable_metro%': 0, |
| 50 |
| 51 # Is this change part of the android upstream bringup? |
| 52 # Allows us to *temporarily* disable certain things for |
| 53 # staging. Only set to 1 in a GYP_DEFINES. |
| 54 'android_upstream_bringup%': 0, |
| 50 }, | 55 }, |
| 51 # Copy conditionally-set variables out one scope. | 56 # Copy conditionally-set variables out one scope. |
| 52 'chromeos%': '<(chromeos)', | 57 'chromeos%': '<(chromeos)', |
| 53 'use_aura%': '<(use_aura)', | 58 'use_aura%': '<(use_aura)', |
| 54 'use_ash%': '<(use_ash)', | 59 'use_ash%': '<(use_ash)', |
| 55 'use_openssl%': '<(use_openssl)', | 60 'use_openssl%': '<(use_openssl)', |
| 56 'use_virtual_keyboard%': '<(use_virtual_keyboard)', | 61 'use_virtual_keyboard%': '<(use_virtual_keyboard)', |
| 57 'enable_viewport%': '<(enable_viewport)', | 62 'enable_viewport%': '<(enable_viewport)', |
| 58 'enable_hidpi%': '<(enable_hidpi)', | 63 'enable_hidpi%': '<(enable_hidpi)', |
| 59 'enable_touch_ui%': '<(enable_touch_ui)', | 64 'enable_touch_ui%': '<(enable_touch_ui)', |
| 60 'enable_metro%': '<(enable_metro)', | 65 'enable_metro%': '<(enable_metro)', |
| 66 'android_upstream_bringup%': '<(android_upstream_bringup)', |
| 61 | 67 |
| 62 # Compute the architecture that we're building on. | 68 # Compute the architecture that we're building on. |
| 63 'conditions': [ | 69 'conditions': [ |
| 64 [ 'OS=="win" or OS=="mac"', { | 70 [ 'OS=="win" or OS=="mac"', { |
| 65 'host_arch%': 'ia32', | 71 'host_arch%': 'ia32', |
| 66 }, { | 72 }, { |
| 67 # This handles the Unix platforms for which there is some support. | 73 # This handles the Unix platforms for which there is some support. |
| 68 # Anything else gets passed through, which probably won't work very | 74 # Anything else gets passed through, which probably won't work very |
| 69 # well; such hosts should pass an explicit target_arch to gyp. | 75 # well; such hosts should pass an explicit target_arch to gyp. |
| 70 'host_arch%': | 76 'host_arch%': |
| (...skipping 2322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 'libraries': [ | 2399 'libraries': [ |
| 2394 '-l<(android_stlport_library)', | 2400 '-l<(android_stlport_library)', |
| 2395 # Manually link the libgcc.a that the cross compiler uses. | 2401 # Manually link the libgcc.a that the cross compiler uses. |
| 2396 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)', | 2402 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)', |
| 2397 '-lc', | 2403 '-lc', |
| 2398 '-ldl', | 2404 '-ldl', |
| 2399 '-lstdc++', | 2405 '-lstdc++', |
| 2400 '-lm', | 2406 '-lm', |
| 2401 ], | 2407 ], |
| 2402 'conditions': [ | 2408 'conditions': [ |
| 2409 ['android_upstream_bringup==1', { |
| 2410 'defines': ['ANDROID_UPSTREAM_BRINGUP=1',], |
| 2411 }], |
| 2403 ['android_build_type==0', { | 2412 ['android_build_type==0', { |
| 2404 'ldflags': [ | 2413 'ldflags': [ |
| 2405 '--sysroot=<(android_ndk_sysroot)', | 2414 '--sysroot=<(android_ndk_sysroot)', |
| 2406 ], | 2415 ], |
| 2407 }], | 2416 }], |
| 2408 ['target_arch == "arm"', { | 2417 ['target_arch == "arm"', { |
| 2409 'ldflags': [ | 2418 'ldflags': [ |
| 2410 # Enable identical code folding to reduce size. | 2419 # Enable identical code folding to reduce size. |
| 2411 '-Wl,--icf=safe', | 2420 '-Wl,--icf=safe', |
| 2412 ], | 2421 ], |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3059 # settings in target dicts. SYMROOT is a special case, because many other | 3068 # settings in target dicts. SYMROOT is a special case, because many other |
| 3060 # Xcode variables depend on it, including variables such as | 3069 # Xcode variables depend on it, including variables such as |
| 3061 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3070 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3062 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3071 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3063 # files to appear (when present) in the UI as actual files and not red | 3072 # files to appear (when present) in the UI as actual files and not red |
| 3064 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3073 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3065 # and therefore SYMROOT, needs to be set at the project level. | 3074 # and therefore SYMROOT, needs to be set at the project level. |
| 3066 'SYMROOT': '<(DEPTH)/xcodebuild', | 3075 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3067 }, | 3076 }, |
| 3068 } | 3077 } |
| OLD | NEW |