| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'openssl', | 8 'target_name': 'openssl', |
| 9 'type': '<(library)', | 9 'type': '<(library)', |
| 10 'defines': [ | 10 'defines': [ |
| 11 'L_ENDIAN', | 11 'L_ENDIAN', |
| 12 'OPENSSL_THREADS', | 12 'OPENSSL_THREADS', |
| 13 'PURIFY', | 13 'PURIFY', |
| 14 'TERMIO', | 14 'TERMIO', |
| 15 '_REENTRANT', | 15 '_REENTRANT', |
| 16 # We do not use TLS over UDP on Chromium so far. | 16 # We do not use TLS over UDP on Chromium so far. |
| 17 'OPENSSL_NO_DTLS1', | 17 'OPENSSL_NO_DTLS1', |
| 18 ], | 18 ], |
| 19 'copts': [ | |
| 20 '-w', | |
| 21 '-Wno-cast-qual', | |
| 22 '-Wno-error', | |
| 23 ], | |
| 24 'sources': [ | 19 'sources': [ |
| 25 'openssl/ssl/bio_ssl.c', | 20 'openssl/ssl/bio_ssl.c', |
| 26 'openssl/ssl/d1_both.c', | 21 'openssl/ssl/d1_both.c', |
| 27 'openssl/ssl/d1_clnt.c', | 22 'openssl/ssl/d1_clnt.c', |
| 28 'openssl/ssl/d1_enc.c', | 23 'openssl/ssl/d1_enc.c', |
| 29 'openssl/ssl/d1_lib.c', | 24 'openssl/ssl/d1_lib.c', |
| 30 'openssl/ssl/d1_meth.c', | 25 'openssl/ssl/d1_meth.c', |
| 31 'openssl/ssl/d1_pkt.c', | 26 'openssl/ssl/d1_pkt.c', |
| 32 'openssl/ssl/d1_srvr.c', | 27 'openssl/ssl/d1_srvr.c', |
| 33 'openssl/ssl/kssl.c', | 28 'openssl/ssl/kssl.c', |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 ['exclude', 'crypto/store/.*$'], | 647 ['exclude', 'crypto/store/.*$'], |
| 653 ['exclude', 'crypto/whrlpool/.$'], | 648 ['exclude', 'crypto/whrlpool/.$'], |
| 654 ], | 649 ], |
| 655 }, { | 650 }, { |
| 656 'sources/': [ | 651 'sources/': [ |
| 657 ['exclude', 'camellia/.*$'], | 652 ['exclude', 'camellia/.*$'], |
| 658 ['exclude', 'cms/.*$'], | 653 ['exclude', 'cms/.*$'], |
| 659 ['exclude', 'mdc2/.*$'], | 654 ['exclude', 'mdc2/.*$'], |
| 660 ], | 655 ], |
| 661 }], | 656 }], |
| 657 ['clang==1', { |
| 658 'cflags': [ |
| 659 # OpenSSL has a few |if ((foo == NULL))| checks. |
| 660 '-Wno-parentheses-equality', |
| 661 # OpenSSL uses several function-style macros and then ignores the |
| 662 # returned value. |
| 663 '-Wno-unused-value', |
| 664 ], |
| 665 }, { # Not clang. Disable all warnings. |
| 666 'cflags': [ |
| 667 '-w', |
| 668 ], |
| 669 }] |
| 662 ], | 670 ], |
| 663 'include_dirs': [ | 671 'include_dirs': [ |
| 664 '.', | 672 '.', |
| 665 'openssl', | 673 'openssl', |
| 666 'openssl/crypto', | 674 'openssl/crypto', |
| 667 'openssl/crypto/asn1', | 675 'openssl/crypto/asn1', |
| 668 'openssl/crypto/evp', | 676 'openssl/crypto/evp', |
| 669 'openssl/crypto/store', | 677 'openssl/crypto/store', |
| 670 'openssl/include', | 678 'openssl/include', |
| 671 '<@(openssl_config_path)', | 679 '<@(openssl_config_path)', |
| 672 ], | 680 ], |
| 673 'direct_dependent_settings': { | 681 'direct_dependent_settings': { |
| 674 'include_dirs': [ | 682 'include_dirs': [ |
| 675 'openssl/include', | 683 'openssl/include', |
| 676 '<@(openssl_config_path)', | 684 '<@(openssl_config_path)', |
| 677 ], | 685 ], |
| 678 }, | 686 }, |
| 679 }, | 687 }, |
| 680 ], | 688 ], |
| 681 } | 689 } |
| 682 | 690 |
| 683 # Local Variables: | 691 # Local Variables: |
| 684 # tab-width:2 | 692 # tab-width:2 |
| 685 # indent-tabs-mode:nil | 693 # indent-tabs-mode:nil |
| 686 # End: | 694 # End: |
| 687 # vim: set expandtab tabstop=2 shiftwidth=2: | 695 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |