summaryrefslogtreecommitdiff
path: root/openssl_nacl.gyp
blob: 5129ef39411bc1bd228b4106f781635abf4e3dd6 (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
60
61
62
63
64
65
# Copyright 2013 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': 'openssl_nacl',
      'type': 'none',
      'variables': {
        'nlib_target': 'libopenssl_nacl.a',
        'build_glibc': 0,
        'build_newlib': 0,
        'build_pnacl_newlib': 1,
        'defines!': [
          '_XOPEN_SOURCE=600',
        ],
      },
      '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.
        'openssl.gypi'
      ],
      'sources': [
        '<@(openssl_common_sources)',
      ],
      'defines': [
        '<@(openssl_common_defines)',
        'MONOLITH',
        'NO_SYS_UN_H',
        'NO_SYSLOG',
        'OPENSSL_NO_ASM',
        'PURIFY',
        'TERMIOS',
        'SSIZE_MAX=INT_MAX',
      ],
      'defines!': [
        'TERMIO',
      ],
      'include_dirs': [
        '.',
        'openssl',
        'openssl/crypto',
        'openssl/crypto/asn1',
        'openssl/crypto/evp',
        'openssl/crypto/modes',
        'openssl/include',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          'openssl/include',
        ],
      },
      'pnacl_compile_flags': [
        '-Wno-sometimes-uninitialized',
        '-Wno-unused-variable',
      ],
    },  # target openssl_nacl
  ],
}