Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: openssl_nacl.gyp

Issue 130373002: Compile OpenSSL for NaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/openssl
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « openssl.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+ ],
+}
« no previous file with comments | « openssl.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698