| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 }, | 42 }, |
| 43 # Copy conditionally-set variables out one scope. | 43 # Copy conditionally-set variables out one scope. |
| 44 'chromeos%': '<(chromeos)', | 44 'chromeos%': '<(chromeos)', |
| 45 'use_only_pure_views%': '<(use_only_pure_views)', | 45 'use_only_pure_views%': '<(use_only_pure_views)', |
| 46 'touchui%': '<(touchui)', | 46 'touchui%': '<(touchui)', |
| 47 'views_compositor%': '<(views_compositor)', | 47 'views_compositor%': '<(views_compositor)', |
| 48 'use_aura%': '<(use_aura)', | 48 'use_aura%': '<(use_aura)', |
| 49 | 49 |
| 50 # Compute the architecture that we're building on. | 50 # Compute the architecture that we're building on. |
| 51 'conditions': [ | 51 'conditions': [ |
| 52 [ 'OS=="win" or OS=="mac"', { | 52 ['OS=="win" or OS=="mac"', { |
| 53 'host_arch%': 'ia32', | 53 'host_arch%': 'ia32', |
| 54 }, { | 54 }, { |
| 55 # This handles the Unix platforms for which there is some support. | 55 # This handles the Unix platforms for which there is some support. |
| 56 # Anything else gets passed through, which probably won't work very | 56 # Anything else gets passed through, which probably won't work very |
| 57 # well; such hosts should pass an explicit target_arch to gyp. | 57 # well; such hosts should pass an explicit target_arch to gyp. |
| 58 'host_arch%': | 58 'host_arch%': |
| 59 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', | 59 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', |
| 60 }], | 60 }], |
| 61 | 61 |
| 62 # Set default value of toolkit_views on for Windows, Chrome OS, | 62 # Set default value of toolkit_views on for Windows, Chrome OS, |
| (...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1962 'cflags_cc!': ['-fvisibility-inlines-hidden'], | 1962 'cflags_cc!': ['-fvisibility-inlines-hidden'], |
| 1963 }], | 1963 }], |
| 1964 ['OS=="mac"', { | 1964 ['OS=="mac"', { |
| 1965 'target_defaults': { | 1965 'target_defaults': { |
| 1966 'variables': { | 1966 'variables': { |
| 1967 # These should end with %, but there seems to be a bug with % in | 1967 # These should end with %, but there seems to be a bug with % in |
| 1968 # variables that are intended to be set to different values in | 1968 # variables that are intended to be set to different values in |
| 1969 # different targets, like these. | 1969 # different targets, like these. |
| 1970 'mac_pie': 1, # Most executables can be position-independent. | 1970 'mac_pie': 1, # Most executables can be position-independent. |
| 1971 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. | 1971 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. |
| 1972 'mac_strip': 1, # Strip debugging symbols from the target. | 1972 # TODO(bradchen): switch back to the following once we have enough |
| 1973 # results. |
| 1974 #'mac_strip': 1, # Strip debugging symbols from the target. |
| 1975 'conditions': [ |
| 1976 ['OS=="mac"', { |
| 1977 'conditions': [ |
| 1978 ['"<!(uname -n)"=="xserve6-m1.golo.chromium.org"', { |
| 1979 'mac_strip': 0, |
| 1980 },{ |
| 1981 'mac_strip': 1, |
| 1982 }], |
| 1983 ], |
| 1984 },{ |
| 1985 'mac_strip': 1, |
| 1986 }], |
| 1987 ], |
| 1973 }, | 1988 }, |
| 1974 'mac_bundle': 0, | 1989 'mac_bundle': 0, |
| 1975 'xcode_settings': { | 1990 'xcode_settings': { |
| 1976 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 1991 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
| 1977 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 | 1992 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 |
| 1978 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks | 1993 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks |
| 1979 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic | 1994 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic |
| 1980 # (Equivalent to -fPIC) | 1995 # (Equivalent to -fPIC) |
| 1981 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 1996 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
| 1982 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 1997 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2390 # settings in target dicts. SYMROOT is a special case, because many other | 2405 # settings in target dicts. SYMROOT is a special case, because many other |
| 2391 # Xcode variables depend on it, including variables such as | 2406 # Xcode variables depend on it, including variables such as |
| 2392 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2407 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 2393 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2408 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 2394 # files to appear (when present) in the UI as actual files and not red | 2409 # files to appear (when present) in the UI as actual files and not red |
| 2395 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2410 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 2396 # and therefore SYMROOT, needs to be set at the project level. | 2411 # and therefore SYMROOT, needs to be set at the project level. |
| 2397 'SYMROOT': '<(DEPTH)/xcodebuild', | 2412 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 2398 }, | 2413 }, |
| 2399 } | 2414 } |
| OLD | NEW |