| 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': [ | 16 'defines': [ |
| 17 'BORINGSSL_IMPLEMENTATION', | 17 'BORINGSSL_IMPLEMENTATION', |
| 18 'BORINGSSL_NO_STATIC_INITIALIZER', | 18 'BORINGSSL_NO_STATIC_INITIALIZER', |
| 19 ], | 19 ], |
| 20 # TODO(davidben): Fix size_t truncations in BoringSSL. | 20 # TODO(davidben): Fix size_t truncations in BoringSSL. |
| 21 # https://crbug.com/429039 | 21 # https://crbug.com/429039 |
| 22 'msvs_disabled_warnings': [ 4267, ], | 22 'msvs_disabled_warnings': [ 4267, ], |
| 23 'conditions': [ | 23 'conditions': [ |
| 24 ['component == "shared_library"', { | 24 ['component == "shared_library"', { |
| 25 'defines': [ | 25 'defines': [ |
| 26 'BORINGSSL_SHARED_LIBRARY', | 26 'BORINGSSL_SHARED_LIBRARY', |
| 27 ], | 27 ], |
| 28 }], | 28 }], |
| 29 ['target_arch == "arm"', { | 29 ['target_arch == "arm" and msan == 0', { |
| 30 'conditions': [ | 30 'conditions': [ |
| 31 ['OS == "linux" or OS == "android"', { | 31 ['OS == "linux" or OS == "android"', { |
| 32 'sources': [ '<@(boringssl_linux_arm_sources)' ], | 32 'sources': [ '<@(boringssl_linux_arm_sources)' ], |
| 33 }, { | 33 }, { |
| 34 'defines': [ 'OPENSSL_NO_ASM' ], | 34 'defines': [ 'OPENSSL_NO_ASM' ], |
| 35 }], | 35 }], |
| 36 ], | 36 ], |
| 37 }], | 37 }], |
| 38 ['target_arch == "arm64"', { | 38 ['target_arch == "arm64" and msan == 0', { |
| 39 'conditions': [ | 39 'conditions': [ |
| 40 ['OS == "linux" or OS == "android"', { | 40 ['OS == "linux" or OS == "android"', { |
| 41 'sources': [ '<@(boringssl_linux_aarch64_sources)' ], | 41 'sources': [ '<@(boringssl_linux_aarch64_sources)' ], |
| 42 }, { | 42 }, { |
| 43 'defines': [ 'OPENSSL_NO_ASM' ], | 43 'defines': [ 'OPENSSL_NO_ASM' ], |
| 44 }], | 44 }], |
| 45 ], | 45 ], |
| 46 }], | 46 }], |
| 47 ['target_arch == "ia32"', { | 47 ['target_arch == "ia32" and msan == 0', { |
| 48 'conditions': [ | 48 'conditions': [ |
| 49 ['OS == "mac" or OS == "ios"', { | 49 ['OS == "mac" or OS == "ios"', { |
| 50 'sources': [ '<@(boringssl_mac_x86_sources)' ], | 50 'sources': [ '<@(boringssl_mac_x86_sources)' ], |
| 51 }], | 51 }], |
| 52 ['OS == "linux" or OS == "android"', { | 52 ['OS == "linux" or OS == "android"', { |
| 53 'sources': [ '<@(boringssl_linux_x86_sources)' ], | 53 'sources': [ '<@(boringssl_linux_x86_sources)' ], |
| 54 }], | 54 }], |
| 55 ['OS == "win"', { | 55 ['OS == "win"', { |
| 56 'sources': [ '<@(boringssl_win_x86_sources)' ], | 56 'sources': [ '<@(boringssl_win_x86_sources)' ], |
| 57 # Windows' assembly is built with Yasm. The other platforms use | 57 # Windows' assembly is built with Yasm. The other platforms use |
| 58 # the platform assembler. | 58 # the platform assembler. |
| 59 'variables': { | 59 'variables': { |
| 60 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/bori
ngssl', | 60 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/bori
ngssl', |
| 61 }, | 61 }, |
| 62 'includes': [ | 62 'includes': [ |
| 63 '../yasm/yasm_compile.gypi', | 63 '../yasm/yasm_compile.gypi', |
| 64 ], | 64 ], |
| 65 }], | 65 }], |
| 66 ['OS != "mac" and OS != "ios" and OS != "linux" and OS != "win" and
OS != "android"', { | 66 ['OS != "mac" and OS != "ios" and OS != "linux" and OS != "win" and
OS != "android"', { |
| 67 'defines': [ 'OPENSSL_NO_ASM' ], | 67 'defines': [ 'OPENSSL_NO_ASM' ], |
| 68 }], | 68 }], |
| 69 ] | 69 ] |
| 70 }], | 70 }], |
| 71 ['target_arch == "x64"', { | 71 ['target_arch == "x64" and msan == 0', { |
| 72 'conditions': [ | 72 'conditions': [ |
| 73 ['OS == "mac" or OS == "ios"', { | 73 ['OS == "mac" or OS == "ios"', { |
| 74 'sources': [ '<@(boringssl_mac_x86_64_sources)' ], | 74 'sources': [ '<@(boringssl_mac_x86_64_sources)' ], |
| 75 }], | 75 }], |
| 76 ['OS == "linux" or OS == "android"', { | 76 ['OS == "linux" or OS == "android"', { |
| 77 'sources': [ '<@(boringssl_linux_x86_64_sources)' ], | 77 'sources': [ '<@(boringssl_linux_x86_64_sources)' ], |
| 78 }], | 78 }], |
| 79 ['OS == "win"', { | 79 ['OS == "win"', { |
| 80 'sources': [ '<@(boringssl_win_x86_64_sources)' ], | 80 'sources': [ '<@(boringssl_win_x86_64_sources)' ], |
| 81 # Windows' assembly is built with Yasm. The other platforms use | 81 # Windows' assembly is built with Yasm. The other platforms use |
| 82 # the platform assembler. | 82 # the platform assembler. |
| 83 'variables': { | 83 'variables': { |
| 84 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/bori
ngssl', | 84 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/bori
ngssl', |
| 85 }, | 85 }, |
| 86 'includes': [ | 86 'includes': [ |
| 87 '../yasm/yasm_compile.gypi', | 87 '../yasm/yasm_compile.gypi', |
| 88 ], | 88 ], |
| 89 }], | 89 }], |
| 90 ['OS != "mac" and OS != "ios" and OS != "linux" and OS != "win" and
OS != "android"', { | 90 ['OS != "mac" and OS != "ios" and OS != "linux" and OS != "win" and
OS != "android"', { |
| 91 'defines': [ 'OPENSSL_NO_ASM' ], | 91 'defines': [ 'OPENSSL_NO_ASM' ], |
| 92 }], | 92 }], |
| 93 ] | 93 ] |
| 94 }], | 94 }], |
| 95 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64
" and target_arch != "arm64"', { | 95 ['msan == 1 or (target_arch != "arm" and target_arch != "ia32" and targe
t_arch != "x64" and target_arch != "arm64")', { |
| 96 'defines': [ 'OPENSSL_NO_ASM' ], | 96 'defines': [ 'OPENSSL_NO_ASM' ], |
| 97 }], | 97 }], |
| 98 ], | 98 ], |
| 99 'include_dirs': [ | 99 'include_dirs': [ |
| 100 'src/include', | 100 'src/include', |
| 101 # This is for arm_arch.h, which is needed by some asm files. Since the | 101 # This is for arm_arch.h, which is needed by some asm files. Since the |
| 102 # asm files are generated and kept in a different directory, they | 102 # asm files are generated and kept in a different directory, they |
| 103 # cannot use relative paths to find this file. | 103 # cannot use relative paths to find this file. |
| 104 'src/crypto', | 104 'src/crypto', |
| 105 ], | 105 ], |
| 106 'direct_dependent_settings': { | 106 'direct_dependent_settings': { |
| 107 'include_dirs': [ | 107 'include_dirs': [ |
| 108 'src/include', | 108 'src/include', |
| 109 ], | 109 ], |
| 110 'conditions': [ | 110 'conditions': [ |
| 111 ['component == "shared_library"', { | 111 ['component == "shared_library"', { |
| 112 'defines': [ | 112 'defines': [ |
| 113 'BORINGSSL_SHARED_LIBRARY', | 113 'BORINGSSL_SHARED_LIBRARY', |
| 114 ], | 114 ], |
| 115 }], | 115 }], |
| 116 ], | 116 ], |
| 117 }, | 117 }, |
| 118 }, | 118 }, |
| 119 ], | 119 ], |
| 120 } | 120 } |
| OLD | NEW |