1 # Copyright (c) 2014 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Native Client Definitions
6 config("nacl_defines") {
10 "_POSIX_C_SOURCE=199506",
13 "__STDC_LIMIT_MACROS=1",
17 config("nexe_defines") {
19 "DYNAMIC_ANNOTATIONS_ENABLED=1",
20 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_",
24 # The base target that all targets in the NaCl build should depend on.
25 # This allows configs to be modified for everything in the NaCl build, even when
26 # the NaCl build is composed into the Chrome build. (GN has no functionality to
27 # add flags to everythin in //native_client, having a base target works around
29 source_set("nacl_base") {
30 public_configs = [ ":nacl_defines" ]
31 if (current_os == "nacl") {
32 public_configs += [ ":nexe_defines" ]