kMaxBlockSize -> kMaxHeaderBlockSize to avoid shadowing warning on VS2015
[chromium-blink-merge.git] / components / nacl / nacl_defines.gni
blob8d69b16af971934df3c4b617bc769e431d670368
1 # Copyright 2014 The Chromium 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 nacl_defines = []
6 if (is_win) {
7   nacl_defines += [
8     "NACL_WINDOWS=1",
9     "NACL_LINUX=0",
10     "NACL_OSX=0",
11     "NACL_ANDROID=0",
12   ]
13 } else if (is_linux) {
14   nacl_defines += [
15     "NACL_WINDOWS=0",
16     "NACL_LINUX=1",
17     "NACL_OSX=0",
18     "NACL_ANDROID=0",
19   ]
20 } else if (is_mac) {
21   nacl_defines += [
22     "NACL_WINDOWS=0",
23     "NACL_LINUX=0",
24     "NACL_OSX=1",
25     "NACL_ANDROID=0",
26   ]
29 if (is_android) {
30   nacl_defines += [
31     "NACL_WINDOWS=0",
32     "NACL_LINUX=1",
33     "NACL_OSX=0",
34     "NACL_ANDROID=1",
35   ]
38 if (cpu_arch == "x86") {
39   nacl_defines += [
40     "NACL_BUILD_SUBARCH=32",
41     "NACL_BUILD_ARCH=x86",
42   ]
43 } else if (cpu_arch == "x64") {
44   nacl_defines += [
45     "NACL_BUILD_SUBARCH=64",
46     "NACL_BUILD_ARCH=x86",
47   ]
48 } else if (cpu_arch == "arm") {
49   nacl_defines += [
50     "NACL_BUILD_ARCH=arm",
51     "NACL_BUILD_SUBARCH=32",
52   ]
53 } else if (cpu_arch == "mipsel") {
54   nacl_defines += [
55     "NACL_BUILD_ARCH=mips",
56     "NACL_BUILD_SUBARCH=32",
57   ]