Index: openssl_nacl.gyp |
diff --git a/openssl_nacl.gyp b/openssl_nacl.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5129ef39411bc1bd228b4106f781635abf4e3dd6 |
--- /dev/null |
+++ b/openssl_nacl.gyp |
@@ -0,0 +1,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', |
wtc
2014/01/10 02:06:27
Why didn't you add the '_XOPEN_SOURCE=600' line he
Sergey Ulanov
2014/01/10 02:10:04
Because untrusted.gypi adds it in "variables->defi
wtc
2014/01/10 03:25:43
I see. Thanks for the explanation.
I wonder if we
Sergey Ulanov
2014/01/10 05:19:47
I don't think that would work. gyp processes defin
|
+ ], |
+ '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 |
+ ], |
+} |