Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | |
|
Dirk Pranke
2015/08/28 02:29:41
This file is simply copied over from //native_clie
| |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("nacl_defines.gni") | |
| 6 | |
| 7 # Native Client Definitions | |
| 8 config("nacl_defines") { | |
| 9 defines = nacl_defines | |
| 10 include_dirs = [ "//." ] | |
|
brettw
2015/08/28 18:25:52
This should come from //build/config/compiler:defa
Dirk Pranke
2015/08/28 20:08:31
Acknowledged.
| |
| 11 } | |
| 12 | |
| 13 config("nexe_defines") { | |
| 14 defines = [ | |
| 15 "DYNAMIC_ANNOTATIONS_ENABLED=1", | |
| 16 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", | |
| 17 ] | |
| 18 } | |
| 19 | |
| 20 # The base target that all targets in the NaCl build should depend on. | |
| 21 # This allows configs to be modified for everything in the NaCl build, even when | |
| 22 # the NaCl build is composed into the Chrome build. (GN has no functionality to | |
| 23 # add flags to everythin in //native_client, having a base target works around | |
| 24 # that limitation.) | |
| 25 source_set("nacl_base") { | |
| 26 public_configs = [ ":nacl_defines" ] | |
| 27 if (current_os == "nacl") { | |
| 28 public_configs += [ ":nexe_defines" ] | |
| 29 } | |
| 30 } | |
| OLD | NEW |