# Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Definitions to be used when building stand-alone NaCl binaries. { 'variables': { # These flags are only included in the NaCl standalone build. # They won't get included when NaCl is built as part of another # project, such as Chrome. We don't necessarily want to enable # these flags for Chrome source that is built as NaCl untrusted # code. 'nacl_default_compile_flags': [ '-Wundef', '-Wstrict-prototypes', ], # 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, 'variables': { # mac_sdk_min must be kept in synch with mac_sdk_min in # chromium/src/build/common.gypi. 'mac_sdk_min%': '10.10', }, # 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%': '