Home | History | Annotate | Download | only in chrome
      1 # Copyright (c) 2012 The Chromium 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   'conditions': [
      7     ['disable_nacl!=1', {
      8       'conditions': [
      9         ['OS=="linux"', {
     10           'includes': [
     11             '../components/nacl/nacl_defines.gypi',
     12           ],
     13           'targets': [
     14             {
     15               'target_name': 'nacl_helper',
     16               'type': 'executable',
     17               'include_dirs': [
     18                 '..',
     19               ],
     20               'dependencies': [
     21                 '../components/nacl.gyp:nacl',
     22                 '../components/nacl_common.gyp:nacl_common',
     23                 '../crypto/crypto.gyp:crypto',
     24                 '../sandbox/sandbox.gyp:libc_urandom_override',
     25                 '../sandbox/sandbox.gyp:sandbox',
     26               ],
     27               'defines': [
     28                 '<@(nacl_defines)',
     29               ],
     30               'sources': [
     31                 'nacl/nacl_helper_linux.cc',
     32                 '../base/posix/unix_domain_socket_linux.cc',
     33                 '../components/nacl/loader/nacl_sandbox_linux.cc',
     34                 '../content/common/child_process_sandbox_support_impl_shm_linux.cc',
     35                 '../content/common/sandbox_init_linux.cc',
     36                 '../content/common/sandbox_seccomp_bpf_linux.cc',
     37                 '../content/public/common/content_switches.cc',
     38               ],
     39               'conditions': [
     40                 ['toolkit_uses_gtk == 1', {
     41                   'dependencies': [
     42                     '../build/linux/system.gyp:gtk',
     43                   ],
     44                 }],
     45                 ['use_glib == 1', {
     46                   'dependencies': [
     47                     '../build/linux/system.gyp:glib',
     48                   ],
     49                 }],
     50                 ['os_posix == 1 and OS != "mac"', {
     51                   'conditions': [
     52                     ['linux_use_tcmalloc==1', {
     53                       'dependencies': [
     54                         '../base/allocator/allocator.gyp:allocator',
     55                       ],
     56                     }],
     57                   ],
     58                 }],
     59               ],
     60               'cflags': ['-fPIE'],
     61               'link_settings': {
     62                 'ldflags': ['-pie'],
     63               },
     64             },
     65           ],
     66         }],
     67       ],
     68     }],
     69   ],
     70 }
     71