Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / nonnacl_util / build.scons
1 # -*- python -*-
2 # Copyright 2008 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7 import platform
8 import sys
9 Import('env')
10
11 if env.Bit('mac'):
12     # there are some issue with compiling ".mm" files
13     # TODO(sehr): this should Clone an env specifically for the mm file.
14     env.FilterOut(CCFLAGS=['-pedantic'])
15
16 nonnacl_util_inputs = [
17   'launcher_factory.cc',
18   'sel_ldr_launcher_base.cc',
19   'sel_ldr_launcher_standalone.cc',
20 ]
21
22 if env.Bit('windows'):
23   nonnacl_util_inputs += [
24       'win/sel_ldr_launcher_win.cc',
25   ]
26 elif env.Bit('linux'):
27   nonnacl_util_inputs += [
28       'posix/sel_ldr_launcher_posix.cc',
29       'posix/sel_ldr_launcher_zygote_posix.cc',
30       'posix/get_plugin_dirname.cc',
31   ]
32 elif env.Bit('mac'):
33   nonnacl_util_inputs += [
34       'posix/sel_ldr_launcher_posix.cc',
35       'posix/sel_ldr_launcher_zygote_posix.cc',
36       'osx/get_plugin_dirname.mm',
37   ]
38
39 nonnacl_util_inputs = env.DualObject(nonnacl_util_inputs)
40
41 env.DualLibrary('nonnacl_util', nonnacl_util_inputs)