| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # | 2 # |
| 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Sanitize environment. | 7 # Sanitize environment. |
| 8 set -e | 8 set -e |
| 9 export LANG=C | 9 export LANG=C |
| 10 export LC_ALL=C | 10 export LC_ALL=C |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 done | 395 done |
| 396 echo "$LIST" | 396 echo "$LIST" |
| 397 } | 397 } |
| 398 | 398 |
| 399 generate_gyp_file () { | 399 generate_gyp_file () { |
| 400 echo "# Auto-generated file - DO NOT EDIT" | 400 echo "# Auto-generated file - DO NOT EDIT" |
| 401 echo "# To regenerate - run import_from_android.sh." | 401 echo "# To regenerate - run import_from_android.sh." |
| 402 echo "# See 'import_from_android.sh --help' for details." | 402 echo "# See 'import_from_android.sh --help' for details." |
| 403 | 403 |
| 404 local ALL_PREFIXES="OPENSSL_CRYPTO OPENSSL_SSL" | 404 local ALL_PREFIXES="OPENSSL_CRYPTO OPENSSL_SSL" |
| 405 local ALL_ARCHS="arm x86 x86_64" | 405 local ALL_ARCHS="arm mips x86 x86_64" |
| 406 local PREFIX ARCH LIST | 406 local PREFIX ARCH LIST |
| 407 | 407 |
| 408 print_gyp "{" | 408 print_gyp "{" |
| 409 incr_gyp_margin | 409 incr_gyp_margin |
| 410 | 410 |
| 411 print_gyp "'variables': {" | 411 print_gyp "'variables': {" |
| 412 incr_gyp_margin | 412 incr_gyp_margin |
| 413 | 413 |
| 414 # First, the common sources and defines | 414 # First, the common sources and defines |
| 415 print_gyp_source_variable "openssl_common_sources" \ | 415 print_gyp_source_variable "openssl_common_sources" \ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 > $PROGDIR/config/x64/openssl/opensslconf.h | 461 > $PROGDIR/config/x64/openssl/opensslconf.h |
| 462 | 462 |
| 463 dump "Generating .gypi file." | 463 dump "Generating .gypi file." |
| 464 . $ANDROID_SRC_DIR/openssl.config | 464 . $ANDROID_SRC_DIR/openssl.config |
| 465 generate_gyp_file > $PROGDIR/openssl.gypi.new | 465 generate_gyp_file > $PROGDIR/openssl.gypi.new |
| 466 run mv $PROGDIR/openssl.gypi $PROGDIR/openssl.gypi.old | 466 run mv $PROGDIR/openssl.gypi $PROGDIR/openssl.gypi.old |
| 467 run mv $PROGDIR/openssl.gypi.new $PROGDIR/openssl.gypi | 467 run mv $PROGDIR/openssl.gypi.new $PROGDIR/openssl.gypi |
| 468 run rm $PROGDIR/openssl.gypi.old | 468 run rm $PROGDIR/openssl.gypi.old |
| 469 | 469 |
| 470 dump "Done." | 470 dump "Done." |
| OLD | NEW |