Chromium Code Reviews| Index: openssl_nacl.gyp |
| diff --git a/openssl_nacl.gyp b/openssl_nacl.gyp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e89a4b4a941ea27b2507e3e03138101b75977ebc |
| --- /dev/null |
| +++ b/openssl_nacl.gyp |
| @@ -0,0 +1,67 @@ |
| +# 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. |
| +{ |
| + 'variables': { |
| + 'werror': '', |
|
wtc
2014/01/10 00:31:03
Just curious: what is 'werror'?
Sergey Ulanov
2014/01/10 01:35:29
It's necessary for untrusted.gypi to remove -werro
|
| + }, |
| + '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, |
| + }, |
| + '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' |
|
wtc
2014/01/10 00:31:03
In third_party/openssl/openssl.gyp, this line is a
Sergey Ulanov
2014/01/10 01:35:29
Done.
|
| + ], |
| + 'sources': [ |
| + '<@(openssl_common_sources)', |
| + ], |
| + 'defines': [ |
| + '<@(openssl_common_defines)', |
| + 'MONOLITH', |
| + 'NO_SYS_UN_H', |
| + 'NO_SYSLOG', |
| + 'OPENSSL_NO_ASM', |
| + 'PURIFY', |
| + 'TERMIOS', |
| + 'SSIZE_MAX=INT_MAX', |
|
wtc
2014/01/10 00:31:03
Just curious: why do you need the following?
'
Sergey Ulanov
2014/01/10 01:35:29
NaCl toolchain doesn't have some headers that are
|
| + ], |
| + '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' |
| + ], |
| + '!pnacl_compile_flags': [ |
|
wtc
2014/01/10 00:31:03
I am not familiar with GYP syntax, but I have neve
Sergey Ulanov
2014/01/10 01:35:29
Yes that was a mistake. I actually meant to write
|
| + '-Wunused-variable', |
| + ], |
| + }, # target openssl_nacl |
| + ], |
| +} |