summaryrefslogtreecommitdiffstats
path: root/third_party/boringssl/boringssl_nacl.gyp
blob: 6ab4b9d79aecd9e4851bcf3bb88743991a12db2e (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
# Copyright 2014 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',
  ],
  'targets': [
    {
      'target_name': 'boringssl_nacl',
      'type': 'none',
      'variables': {
        'nlib_target': 'libboringssl_nacl.a',
        'build_glibc': 0,
        'build_newlib': 0,
        'build_pnacl_newlib': 1,
      },
      'dependencies': [
        '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
        '<(DEPTH)/native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untrusted',
      ],
      'includes': [
        # Include the auto-generated gypi file.
        'boringssl.gypi'
      ],
      'sources': [
        '<@(boringssl_lib_sources)',
      ],
      'defines': [
        'OPENSSL_NO_ASM',
      ],
      'include_dirs': [
        'src/include',
        # This is for arm_arch.h, which is needed by some asm files. Since the
        # asm files are generated and kept in a different directory, they
        # cannot use relative paths to find this file.
        'src/crypto',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          'src/include',
        ],
      },
      'pnacl_compile_flags': [
        '-Wno-sometimes-uninitialized',
        '-Wno-unused-variable',
      ],
    },  # target boringssl_nacl
  ],
}