• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  # gyp only supports two toolchains: host and target.
3  # In order to get around this limitation we use a compiler
4  # wrapper than will then invoke either the glibc or the newlib
5  # compiler.
6  'make_global_settings': [
7    ['CC.target'   , '../../toolchain/linux_x86/bin/i686-nacl-gcc'],
8    ['CXX.target'  , '../../toolchain/linux_x86/bin/i686-nacl-g++'],
9    ['LINK.target' , '../../toolchain/linux_x86/bin/i686-nacl-g++'],
10    ['AR.target'   , '../../toolchain/linux_x86/bin/i686-nacl-ar'],
11  ],
12
13  'variables': {
14    'EXECUTABLE_SUFFIX': '.nexe',
15    'TOOLROOT': '../../toolchain',
16    'OBJDUMP': '<(TOOLROOT)/linux_x86_glibc/bin/i686-nacl-objdump',
17    'NMF_PATH1': '<(TOOLROOT)/linux_x86_glibc/x86_64-nacl/lib32',
18    'NMF_PATH2': '<(TOOLROOT)/linux_x86_glibc/x86_64-nacl/lib',
19  },
20
21  'target_defaults': {
22    'link_settings': { 'ldflags': ['-Wl,-as-needed'] },
23    'libraries' : ['-lppapi', '-lppapi_cpp'],
24    'ldflags': ['-pthread'],
25    'cflags': ['-pthread', '-Wno-long-long', '-Wall', '-Wswitch-enum', '-Werror'],
26  },
27}
28