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

Unified Diff: openssl/import_openssl.sh

Issue 231353003: Adds support for compiling OpenSSL on mac. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl
Patch Set: Created 6 years, 8 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/crypto/x86cpuid-mac.S ('k') | openssl/openssl.config » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: openssl/import_openssl.sh
diff --git a/openssl/import_openssl.sh b/openssl/import_openssl.sh
index 01bbc298462ef843733d8564a0cf5f48820cfb70..320b8c41be24b170e529fd56423091934391ffd2 100755
--- a/openssl/import_openssl.sh
+++ b/openssl/import_openssl.sh
@@ -118,6 +118,13 @@ function default_asm_file () {
fi
}
+function default_asm_mac_ia32_file () {
+ if [ "$2" ]; then
+ echo "$2"
+ else
+ echo "${1%%.pl}-mac.S"
+ fi
+}
# Generate an ARM assembly file.
# $1: generator (perl script)
# $2: [optional] output file name
@@ -148,6 +155,11 @@ function gen_asm_x86_64 () {
perl "$1" elf "$OUT" > "$OUT"
}
+function gen_asm_mac_ia32 () {
+ local OUT
+ OUT=$(default_asm_mac_ia32_file "$@")
+ perl "$1" macosx "$OUT" > "$OUT"
+}
# Filter all items in a list that match a given pattern.
# $1: space-separated list
@@ -415,6 +427,24 @@ function import() {
gen_asm_x86_64 crypto/rc4/asm/rc4-x86_64.pl
gen_asm_x86_64 crypto/rc4/asm/rc4-md5-x86_64.pl
+ # Generate mac_ia32 asm
+ gen_asm_mac_ia32 crypto/x86cpuid.pl
+ gen_asm_mac_ia32 crypto/aes/asm/aes-586.pl
+ gen_asm_mac_ia32 crypto/aes/asm/vpaes-x86.pl
+ gen_asm_mac_ia32 crypto/aes/asm/aesni-x86.pl
+ gen_asm_mac_ia32 crypto/bn/asm/bn-586.pl
+ gen_asm_mac_ia32 crypto/bn/asm/co-586.pl
+ gen_asm_mac_ia32 crypto/bn/asm/x86-mont.pl
+ gen_asm_mac_ia32 crypto/bn/asm/x86-gf2m.pl
+ gen_asm_mac_ia32 crypto/modes/asm/ghash-x86.pl
+ gen_asm_mac_ia32 crypto/sha/asm/sha1-586.pl
+ gen_asm_mac_ia32 crypto/sha/asm/sha256-586.pl
+ gen_asm_mac_ia32 crypto/sha/asm/sha512-586.pl
+ gen_asm_mac_ia32 crypto/md5/asm/md5-586.pl
+ gen_asm_mac_ia32 crypto/des/asm/des-586.pl
+ gen_asm_mac_ia32 crypto/des/asm/crypt586.pl
+ gen_asm_mac_ia32 crypto/bf/asm/bf-586.pl
+
# Setup android.testssl directory
mkdir android.testssl
cat test/testssl | \
« no previous file with comments | « openssl/crypto/x86cpuid-mac.S ('k') | openssl/openssl.config » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698