• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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      'file_downloader.cc',
10      'module_ppapi.cc',
11      'nacl_subprocess.cc',
12      'plugin.cc',
13      'pnacl_coordinator.cc',
14      'pnacl_resources.cc',
15      'pnacl_translate_thread.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        'defines': [
34          'XP_UNIX',
35          'MOZ_X11',
36        ],
37        'cflags': [
38          '-Wno-long-long',
39        ],
40        'cflags!': [
41          '-Wno-unused-parameter', # be a bit stricter to match NaCl flags.
42        ],
43        'conditions': [
44          ['asan!=1 and msan!=1', {
45            'ldflags': [
46              # Catch unresolved symbols.
47              '-Wl,-z,defs',
48            ],
49          }],
50        ],
51        'libraries': [
52          '-ldl',
53        ],
54      }],
55      ['OS=="mac"', {
56        'defines': [
57          'XP_MACOSX',
58          'XP_UNIX',
59          'TARGET_API_MAC_CARBON=1',
60          'NO_X11',
61          'USE_SYSTEM_CONSOLE',
62        ],
63        'cflags': [
64          '-Wno-long-long',
65        ],
66        'cflags!': [
67          '-Wno-unused-parameter', # be a bit stricter to match NaCl flags.
68        ],
69        'link_settings': {
70          'libraries': [
71            '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
72          ],
73        },
74      }],
75      ['OS=="win"', {
76        'defines': [
77          'XP_WIN',
78          'WIN32',
79          '_WINDOWS'
80        ],
81        'flags': [
82          '-fPIC',
83          '-Wno-long-long',
84        ],
85        'link_settings': {
86          'libraries': [
87            '-lgdi32.lib',
88            '-luser32.lib',
89          ],
90        },
91      }],
92    ],
93  },
94}
95