OLD | NEW |
| (Empty) |
1 # Copyright (c) 2012 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. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, # Use higher warning level. | |
8 'common_sources': [ | |
9 'module_ppapi.cc', | |
10 'nacl_subprocess.cc', | |
11 'plugin.cc', | |
12 'pnacl_coordinator.cc', | |
13 'pnacl_resources.cc', | |
14 'pnacl_translate_thread.cc', | |
15 'ppapi_entrypoints.cc', | |
16 'sel_ldr_launcher_chrome.cc', | |
17 'service_runtime.cc', | |
18 'srpc_client.cc', | |
19 'srpc_params.cc', | |
20 'temporary_file.cc', | |
21 'utility.cc', | |
22 ], | |
23 }, | |
24 'includes': [ | |
25 '../../../../../native_client/build/common.gypi', | |
26 ], | |
27 'target_defaults': { | |
28 'variables': { | |
29 'target_platform': 'none', | |
30 }, | |
31 'conditions': [ | |
32 ['OS=="linux"', { | |
33 'cflags': [ | |
34 '-Wno-long-long', | |
35 ], | |
36 'cflags!': [ | |
37 '-Wno-unused-parameter', # be a bit stricter to match NaCl flags. | |
38 ], | |
39 'conditions': [ | |
40 ['asan!=1 and msan!=1 and ubsan_vptr!=1', { | |
41 'ldflags': [ | |
42 # Catch unresolved symbols. | |
43 '-Wl,-z,defs', | |
44 ], | |
45 }], | |
46 ], | |
47 'libraries': [ | |
48 '-ldl', | |
49 ], | |
50 }], | |
51 ['OS=="mac"', { | |
52 'cflags': [ | |
53 '-Wno-long-long', | |
54 ], | |
55 'cflags!': [ | |
56 '-Wno-unused-parameter', # be a bit stricter to match NaCl flags. | |
57 ], | |
58 'link_settings': { | |
59 'libraries': [ | |
60 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
61 ], | |
62 }, | |
63 }], | |
64 ['OS=="win"', { | |
65 'defines': [ | |
66 'WIN32', | |
67 '_WINDOWS' | |
68 ], | |
69 'flags': [ | |
70 '-fPIC', | |
71 '-Wno-long-long', | |
72 ], | |
73 'link_settings': { | |
74 'libraries': [ | |
75 '-lgdi32.lib', | |
76 '-luser32.lib', | |
77 ], | |
78 }, | |
79 }], | |
80 ], | |
81 }, | |
82 } | |
OLD | NEW |