# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { # .gyp files should set chromium_code to 1 if they build Chromium-specific # code, as opposed to external code. This variable is used to control # such things as the set of warnings to enable, and whether warnings are # treated as errors. 'chromium_code%': 0, # Variables expected to be overriden on the GYP command line (-D) or by # ~/.gyp/include.gypi. # Override chromium_mac_pch and set it to 0 to suppress the use of # precompiled headers on the Mac. Prefix header injection may still be # used, but prefix headers will not be precompiled. This is useful when # using distcc to distribute a build to compile slaves that don't # share the same compiler executable as the system driving the compilation, # because precompiled headers rely on pointers into a specific compiler # executable's image. Setting this to 0 is needed to use an experimental # Linux-Mac cross compiler distcc farm. 'chromium_mac_pch%': 1, # Enable building with ASAN (Clang's -fsanitize=address option). # -fsanitize=address only works with clang, but asan=1 implies clang=1 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addresssanitizer 'asan%': 0, # Set this to true when building with Clang. 'clang%': 0, 'conditions': [ ['OS=="mac"', { # On Mac only clang is new enough to build the trusted code. 'clang%': 1, # The Mac SDK is set for iOS builds and passed through to Mac # sub-builds. This allows the Mac sub-build SDK in an iOS build to be # overridden from the command line the same way it is for a Mac build. 'mac_sdk%': ' arm substitution in chrome's common.gypi isn't # appropriate in that context as we actually use target_arch==arm # to mean x86 -> arm cross compile. When actually running on an # arm board, we'll generate ia32 for now, so that the generation # succeeds. 'host_arch%': '