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': '<(component)', | 9 'type': '<(component)', |
10 'includes': [ | 10 'includes': [ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 }], | 58 }], |
59 ['target_arch == "ia32"', { | 59 ['target_arch == "ia32"', { |
60 'sources': [ '<@(openssl_x86_sources)' ], | 60 'sources': [ '<@(openssl_x86_sources)' ], |
61 'sources!': [ '<@(openssl_x86_source_excludes)' ], | 61 'sources!': [ '<@(openssl_x86_source_excludes)' ], |
62 'defines': [ '<@(openssl_x86_defines)' ], | 62 'defines': [ '<@(openssl_x86_defines)' ], |
63 'defines!': [ 'OPENSSL_NO_ASM' ], | 63 'defines!': [ 'OPENSSL_NO_ASM' ], |
64 }], | 64 }], |
65 ['target_arch == "x64"', { | 65 ['target_arch == "x64"', { |
66 'sources': [ '<@(openssl_x86_64_sources)' ], | 66 'sources': [ '<@(openssl_x86_64_sources)' ], |
67 'sources!': [ '<@(openssl_x86_64_source_excludes)' ], | 67 'sources!': [ '<@(openssl_x86_64_source_excludes)' ], |
68 'conditions': [['OS != "android"', { | |
digit1
2013/10/10 12:27:38
nit: Ah, can I ask you to avoid the double bracket
yhirano
2013/10/11 01:42:25
Done.
| |
69 # Due to a goma problem with compiling rc4-x86_64.S, | |
70 # We use the C rc4 source instead of the ASM source. | |
71 # This hurts performance, but it's not a problem | |
72 # because no production code uses openssl on x86-64. | |
73 'sources/': [ | |
74 ['exclude', 'openssl/crypto/rc4/asm/rc4-x86_64\\.S' ], | |
75 ['include', 'openssl/crypto/rc4/rc4_enc\\.c' ], | |
76 ['include', 'openssl/crypto/rc4/rc4_skey\\.c' ], | |
digit1
2013/10/10 12:27:38
Just for clarification, why this change exactly? I
yhirano
2013/10/11 01:42:25
I found that rc4-x86_64.S defined private_RC4_set_
| |
77 ], | |
78 }]], | |
68 'defines': [ '<@(openssl_x86_64_defines)' ], | 79 'defines': [ '<@(openssl_x86_64_defines)' ], |
69 'defines!': [ 'OPENSSL_NO_ASM' ], | 80 'defines!': [ 'OPENSSL_NO_ASM' ], |
70 'variables': { | 81 'variables': { |
71 # Ensure the 64-bit opensslconf.h header is used. | 82 # Ensure the 64-bit opensslconf.h header is used. |
72 'openssl_include_dirs+': [ 'config/x64' ], | 83 'openssl_include_dirs+': [ 'config/x64' ], |
73 }, | 84 }, |
74 }], | 85 }], |
75 ['component == "shared_library"', { | 86 ['component == "shared_library"', { |
76 'cflags!': ['-fvisibility=hidden'], | 87 'cflags!': ['-fvisibility=hidden'], |
77 }], | 88 }], |
(...skipping 21 matching lines...) Expand all Loading... | |
99 }, | 110 }, |
100 }, | 111 }, |
101 ], | 112 ], |
102 } | 113 } |
103 | 114 |
104 # Local Variables: | 115 # Local Variables: |
105 # tab-width:2 | 116 # tab-width:2 |
106 # indent-tabs-mode:nil | 117 # indent-tabs-mode:nil |
107 # End: | 118 # End: |
108 # vim: set expandtab tabstop=2 shiftwidth=2: | 119 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |