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 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'boringssl', | 8 'target_name': 'boringssl', |
9 'type': '<(component)', | 9 'type': '<(component)', |
10 'includes': [ | 10 'includes': [ |
11 'boringssl.gypi', | 11 'boringssl.gypi', |
12 ], | 12 ], |
13 'sources': [ | 13 'sources': [ |
14 '<@(boringssl_lib_sources)', | 14 '<@(boringssl_lib_sources)', |
15 ], | 15 ], |
16 'defines': [ 'BORINGSSL_IMPLEMENTATION' ], | |
16 'conditions': [ | 17 'conditions': [ |
18 ['component == "shared_library"', { | |
19 'defines': [ | |
20 'BORINGSSL_SHARED_LIBRARY', | |
21 'BORINGSSL_IMPLEMENTATION', | |
davidben
2014/08/01 17:59:47
This is redundant with line 16. The line 16 versio
agl
2014/08/01 21:05:23
Done.
| |
22 ], | |
23 }], | |
17 ['target_arch == "arm"', { | 24 ['target_arch == "arm"', { |
18 'sources': [ '<@(boringssl_linux_arm_sources)' ], | 25 'sources': [ '<@(boringssl_linux_arm_sources)' ], |
19 }], | 26 }], |
20 ['target_arch == "ia32"', { | 27 ['target_arch == "ia32"', { |
21 'conditions': [ | 28 'conditions': [ |
22 ['OS == "mac"', { | 29 ['OS == "mac"', { |
23 'sources': [ '<@(boringssl_mac_x86_sources)' ], | 30 'sources': [ '<@(boringssl_mac_x86_sources)' ], |
24 }], | 31 }], |
25 ['OS == "linux" or OS == "android"', { | 32 ['OS == "linux" or OS == "android"', { |
26 'sources': [ '<@(boringssl_linux_x86_sources)' ], | 33 'sources': [ '<@(boringssl_linux_x86_sources)' ], |
(...skipping 15 matching lines...) Expand all Loading... | |
42 'sources': [ '<@(boringssl_win_x86_64_sources)' ], | 49 'sources': [ '<@(boringssl_win_x86_64_sources)' ], |
43 }], | 50 }], |
44 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"' , { | 51 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"' , { |
45 'defines': [ 'OPENSSL_NO_ASM' ], | 52 'defines': [ 'OPENSSL_NO_ASM' ], |
46 }], | 53 }], |
47 ] | 54 ] |
48 }], | 55 }], |
49 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64 "', { | 56 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64 "', { |
50 'defines': [ 'OPENSSL_NO_ASM' ], | 57 'defines': [ 'OPENSSL_NO_ASM' ], |
51 }], | 58 }], |
52 ['component == "shared_library"', { | |
53 'xcode_settings': { | |
54 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # no -fvisibility=hidden | |
55 }, | |
56 'cflags!': [ '-fvisibility=hidden' ], | |
57 'conditions': [ | |
58 ['os_posix == 1 and OS != "mac"', { | |
59 # Avoid link failures on Linux x86-64. | |
60 # See http://rt.openssl.org/Ticket/Display.html?id=2466&user=guest &pass=guest | |
61 'ldflags+': [ '-Wl,-Bsymbolic' ], | |
62 }], | |
63 ], | |
64 }], | |
65 ], | 59 ], |
66 'include_dirs': [ | 60 'include_dirs': [ |
67 'src/include', | 61 'src/include', |
68 # This is for arm_arch.h, which is needed by some asm files. Since the | 62 # This is for arm_arch.h, which is needed by some asm files. Since the |
69 # asm files are generated and kept in a different directory, they | 63 # asm files are generated and kept in a different directory, they |
70 # cannot use relative paths to find this file. | 64 # cannot use relative paths to find this file. |
71 'src/crypto', | 65 'src/crypto', |
72 ], | 66 ], |
73 'direct_dependent_settings': { | 67 'direct_dependent_settings': { |
74 'include_dirs': [ | 68 'include_dirs': [ |
75 'src/include', | 69 'src/include', |
76 ], | 70 ], |
71 'conditions': [ | |
72 ['component == "shared_library"', { | |
73 'defines': [ | |
74 'BORINGSSL_SHARED_LIBRARY', | |
75 ], | |
76 }], | |
77 ], | |
77 }, | 78 }, |
78 }, | 79 }, |
79 ], | 80 ], |
80 } | 81 } |
OLD | NEW |