• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  'include_dirs': [
3    'openssl/',
4    'openssl/include/',
5    'openssl/crypto/',
6    'openssl/crypto/include/',
7    'openssl/crypto/modes/',
8    'openssl/crypto/ec/curve448',
9    'openssl/crypto/ec/curve448/arch_32',
10    'openssl/providers/common/include',
11    'openssl/providers/implementations/include',
12    'config/',
13  ],
14  # build options specific to OS
15  'conditions': [
16    [ 'OS in ("aix", "os400")', {
17      # AIX is missing /usr/include/endian.h
18      'defines': [
19        '__LITTLE_ENDIAN=1234',
20        '__BIG_ENDIAN=4321',
21        '__BYTE_ORDER=__BIG_ENDIAN',
22        '__FLOAT_WORD_ORDER=__BIG_ENDIAN',
23        'OPENSSLDIR="/etc/ssl"',
24        'ENGINESDIR="/dev/null"',
25      ],
26    }, 'OS=="win"', {
27      'defines': [
28        ## default of Win. See INSTALL in openssl repo.
29        'OPENSSLDIR="C:\\\\Program\\ Files\\\\Common\\ Files\\\\SSL"',
30        'ENGINESDIR="NUL"',
31        'OPENSSL_SYS_WIN32', 'WIN32_LEAN_AND_MEAN', 'L_ENDIAN',
32        '_CRT_SECURE_NO_DEPRECATE', 'UNICODE', '_UNICODE',
33      ],
34      'cflags': [
35        '-W3', '-wd4090', '-Gs0', '-GF', '-Gy', '-nologo','/O2',
36      ],
37      'msvs_disabled_warnings': [4090],
38      'link_settings': {
39        'libraries': [
40          '-lws2_32.lib',
41          '-lgdi32.lib',
42          '-ladvapi32.lib',
43          '-lcrypt32.lib',
44          '-luser32.lib',
45        ],
46      },
47    }, 'OS=="mac"', {
48      'xcode_settings': {
49        'WARNING_CFLAGS': ['-Wno-missing-field-initializers']
50      },
51      'defines': [
52        'OPENSSLDIR="/System/Library/OpenSSL/"',
53        'ENGINESDIR="/dev/null"',
54      ],
55    }, 'OS=="solaris"', {
56      'defines': [
57        'OPENSSLDIR="/etc/ssl"',
58        'ENGINESDIR="/dev/null"',
59        '__EXTENSIONS__'
60      ],
61    }, {
62      # linux and others
63      'cflags': ['-Wno-missing-field-initializers',],
64      'defines': [
65        'OPENSSLDIR="/etc/ssl"',
66        'ENGINESDIR="/dev/null"',
67        'TERMIOS',
68      ],
69      'conditions': [
70        [ 'llvm_version=="0.0"', {
71          'cflags': ['-Wno-old-style-declaration',],
72        }],
73      ],
74    }],
75  ]
76}
77