summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client/native_client.gyp
blob: fa51ee26cbb69af0e9b7968b6257f4e441d37171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'includes': [
    '../../native_client/build/untrusted.gypi',
  ],
  'conditions': [
    ['disable_nacl!=1', {
      'targets': [
        {
          'target_name': 'nacl_irt',
          'type': 'none',
          'variables': {
            'nexe_target': 'nacl_irt',
            'out64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
            'out32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
            'build_glibc': 0,
            'build_newlib': 1,
            'include_dirs': [
              'lib/gl/include',
              '..',
            ],
            'link_flags': [
              '-lirt_browser',
              '-lppruntime',
              '-lsrpc',
              '-limc_syscalls',
              '-lplatform',
              '-lgio',
              '-lm',
            ],
            'sources': [
            ],
          },
          'conditions': [
            ['target_arch=="x64" or target_arch == "ia32"', {
              'variables': {
                'link_flags': [
                  '-Wl,--section-start,.rodata=0x3ef00000',
                  '-Wl,-Ttext-segment=0x0fc00000',
                ],
              },
            }],
          ],
          'dependencies': [
            'src/shared/ppapi_proxy/ppapi_proxy.gyp:ppruntime_lib',
            '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib',
            '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib',
            '../../native_client/src/shared/platform/platform.gyp:platform_lib',
            '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
            '../../native_client/src/shared/gio/gio.gyp:gio_lib',
          ],
        },
      ],
    }],
  ],
}