OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'includes': [ | 6 'includes': [ |
7 'boringssl_tests.gypi', | 7 'boringssl_tests.gypi', |
8 ], | 8 ], |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'boringssl', | 11 'target_name': 'boringssl', |
12 'type': 'static_library', | 12 'type': '<(component)', |
13 'includes': [ | 13 'includes': [ |
14 'boringssl.gypi', | 14 'boringssl.gypi', |
15 ], | 15 ], |
16 'sources': [ | 16 'sources': [ |
17 '<@(boringssl_lib_sources)', | 17 '<@(boringssl_lib_sources)', |
18 ], | 18 ], |
19 'conditions': [ | 19 'conditions': [ |
20 ['target_arch == "arm"', { | 20 ['target_arch == "arm"', { |
21 'sources': [ '<@(boringssl_linux_arm_sources)' ], | 21 'sources': [ '<@(boringssl_linux_arm_sources)' ], |
22 }], | 22 }], |
(...skipping 22 matching lines...) Expand all Loading... |
45 'sources': [ '<@(boringssl_win_x86_64_sources)' ], | 45 'sources': [ '<@(boringssl_win_x86_64_sources)' ], |
46 }], | 46 }], |
47 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"'
, { | 47 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"'
, { |
48 'defines': [ 'OPENSSL_NO_ASM' ], | 48 'defines': [ 'OPENSSL_NO_ASM' ], |
49 }], | 49 }], |
50 ] | 50 ] |
51 }], | 51 }], |
52 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64
"', { | 52 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64
"', { |
53 'defines': [ 'OPENSSL_NO_ASM' ], | 53 'defines': [ 'OPENSSL_NO_ASM' ], |
54 }], | 54 }], |
| 55 ['component == "shared_library"', { |
| 56 'xcode_settings': { |
| 57 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # no -fvisibility=hidden |
| 58 }, |
| 59 'cflags!': [ '-fvisibility=hidden' ], |
| 60 'conditions': [ |
| 61 ['os_posix == 1 and OS != "mac"', { |
| 62 # Avoid link failures on Linux x86-64. |
| 63 # See http://rt.openssl.org/Ticket/Display.html?id=2466&user=guest
&pass=guest |
| 64 'ldflags+': [ '-Wl,-Bsymbolic' ], |
| 65 }], |
| 66 ], |
| 67 }], |
55 ], | 68 ], |
56 'include_dirs': [ | 69 'include_dirs': [ |
57 'src/include', | 70 'src/include', |
58 # This is for arm_arch.h, which is needed by some asm files. Since the | 71 # This is for arm_arch.h, which is needed by some asm files. Since the |
59 # asm files are generated and kept in a different directory, they | 72 # asm files are generated and kept in a different directory, they |
60 # cannot use relative paths to find this file. | 73 # cannot use relative paths to find this file. |
61 'src/crypto', | 74 'src/crypto', |
62 ], | 75 ], |
63 'direct_dependent_settings': { | 76 'direct_dependent_settings': { |
64 'include_dirs': [ | 77 'include_dirs': [ |
(...skipping 10 matching lines...) Expand all Loading... |
75 'dependencies': [ | 88 'dependencies': [ |
76 '<@(boringssl_test_targets)', | 89 '<@(boringssl_test_targets)', |
77 '../../base/base.gyp:base', | 90 '../../base/base.gyp:base', |
78 '../../base/base.gyp:run_all_unittests', | 91 '../../base/base.gyp:run_all_unittests', |
79 '../../base/base.gyp:test_support_base', | 92 '../../base/base.gyp:test_support_base', |
80 '../../testing/gtest.gyp:gtest', | 93 '../../testing/gtest.gyp:gtest', |
81 ], | 94 ], |
82 }, | 95 }, |
83 ], | 96 ], |
84 } | 97 } |
OLD | NEW |