| 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 ], |
| 22 }], |
| 17 ['target_arch == "arm"', { | 23 ['target_arch == "arm"', { |
| 18 'sources': [ '<@(boringssl_linux_arm_sources)' ], | 24 'sources': [ '<@(boringssl_linux_arm_sources)' ], |
| 19 }], | 25 }], |
| 20 ['target_arch == "ia32"', { | 26 ['target_arch == "ia32"', { |
| 21 'conditions': [ | 27 'conditions': [ |
| 22 ['OS == "mac"', { | 28 ['OS == "mac"', { |
| 23 'sources': [ '<@(boringssl_mac_x86_sources)' ], | 29 'sources': [ '<@(boringssl_mac_x86_sources)' ], |
| 24 }], | 30 }], |
| 25 ['OS == "linux" or OS == "android"', { | 31 ['OS == "linux" or OS == "android"', { |
| 26 'sources': [ '<@(boringssl_linux_x86_sources)' ], | 32 'sources': [ '<@(boringssl_linux_x86_sources)' ], |
| (...skipping 15 matching lines...) Expand all Loading... |
| 42 'sources': [ '<@(boringssl_win_x86_64_sources)' ], | 48 'sources': [ '<@(boringssl_win_x86_64_sources)' ], |
| 43 }], | 49 }], |
| 44 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"'
, { | 50 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"'
, { |
| 45 'defines': [ 'OPENSSL_NO_ASM' ], | 51 'defines': [ 'OPENSSL_NO_ASM' ], |
| 46 }], | 52 }], |
| 47 ] | 53 ] |
| 48 }], | 54 }], |
| 49 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64
"', { | 55 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64
"', { |
| 50 'defines': [ 'OPENSSL_NO_ASM' ], | 56 'defines': [ 'OPENSSL_NO_ASM' ], |
| 51 }], | 57 }], |
| 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 ], | 58 ], |
| 66 'include_dirs': [ | 59 'include_dirs': [ |
| 67 'src/include', | 60 'src/include', |
| 68 # This is for arm_arch.h, which is needed by some asm files. Since the | 61 # 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 | 62 # asm files are generated and kept in a different directory, they |
| 70 # cannot use relative paths to find this file. | 63 # cannot use relative paths to find this file. |
| 71 'src/crypto', | 64 'src/crypto', |
| 72 ], | 65 ], |
| 73 'direct_dependent_settings': { | 66 'direct_dependent_settings': { |
| 74 'include_dirs': [ | 67 'include_dirs': [ |
| 75 'src/include', | 68 'src/include', |
| 76 ], | 69 ], |
| 70 'conditions': [ |
| 71 ['component == "shared_library"', { |
| 72 'defines': [ |
| 73 'BORINGSSL_SHARED_LIBRARY', |
| 74 ], |
| 75 }], |
| 76 ], |
| 77 }, | 77 }, |
| 78 }, | 78 }, |
| 79 ], | 79 ], |
| 80 } | 80 } |
| OLD | NEW |