| 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 '../../runtime/tools/gyp/runtime-configurations.gypi', | 7 '../../runtime/tools/gyp/runtime-configurations.gypi', |
| 8 'boringssl_configurations.gypi', | 8 'boringssl_configurations.gypi', |
| 9 ], | 9 ], |
| 10 'targets': [ | 10 'targets': [ |
| 11 { | 11 { |
| 12 'target_name': 'boringssl', | 12 'target_name': 'boringssl', |
| 13 'type': '<(component)', | 13 'type': '<(component)', |
| 14 'toolsets': ['host', 'target'], | 14 'toolsets': ['host', 'target'], |
| 15 'includes': [ | 15 'includes': [ |
| 16 'boringssl.gypi', | 16 'boringssl.gypi', |
| 17 ], | 17 ], |
| 18 'sources': [ | 18 'sources': [ |
| 19 '<@(boringssl_crypto_sources)', | 19 '<@(boringssl_crypto_sources)', |
| 20 '<@(boringssl_ssl_sources)', | 20 '<@(boringssl_ssl_sources)', |
| 21 ], | 21 ], |
| 22 'defines': [ | 22 'defines': [ |
| 23 'BORINGSSL_IMPLEMENTATION', | 23 'BORINGSSL_IMPLEMENTATION', |
| 24 'BORINGSSL_NO_STATIC_INITIALIZER', | 24 'BORINGSSL_NO_STATIC_INITIALIZER', |
| 25 'OPENSSL_SMALL', | |
| 26 ], | 25 ], |
| 27 # TODO(davidben): Fix size_t truncations in BoringSSL. | 26 # TODO(davidben): Fix size_t truncations in BoringSSL. |
| 28 # https://crbug.com/429039 | 27 # https://crbug.com/429039 |
| 29 'msvs_disabled_warnings': [ 4267, ], | 28 'msvs_disabled_warnings': [ 4267, ], |
| 30 'conditions': [ | 29 'conditions': [ |
| 31 ['OS == "mac"', { | 30 ['OS == "mac"', { |
| 32 'sources': [ | 31 'sources': [ |
| 33 '<@(boringssl_mac_x86_sources)', | 32 '<@(boringssl_mac_x86_sources)', |
| 34 '<@(boringssl_mac_x86_64_sources)' | 33 '<@(boringssl_mac_x86_64_sources)' |
| 35 ], | 34 ], |
| 36 }], | 35 }], |
| 37 ['OS == "linux" or OS == "android"', { | 36 ['OS == "linux" or OS == "android"', { |
| 38 'sources': [ | 37 'sources': [ |
| 39 '<@(boringssl_linux_x86_64_sources)', | 38 '<@(boringssl_linux_x86_64_sources)', |
| 40 '<@(boringssl_linux_x86_sources)', | 39 '<@(boringssl_linux_x86_sources)', |
| 41 '<@(boringssl_linux_arm_sources)', | 40 '<@(boringssl_linux_arm_sources)', |
| 42 '<@(boringssl_linux_aarch64_sources)', | 41 '<@(boringssl_linux_aarch64_sources)', |
| 43 ], | 42 ], |
| 44 }], | 43 }], |
| 45 ['OS == "win"', { | 44 ['OS == "win"', { |
| 46 'defines': [ 'OPENSSL_NO_ASM', 'WIN32_LEAN_AND_MEAN' ], | 45 'defines': [ 'OPENSSL_NO_ASM', 'WIN32_LEAN_AND_MEAN' ], |
| 47 }], | 46 }], |
| 48 ], | 47 ], |
| 49 'include_dirs': [ | 48 'include_dirs': [ |
| 50 'src/include', | 49 'src/include', |
| 50 # This is for arm_arch.h, which is needed by some asm files. Since the |
| 51 # asm files are generated and kept in a different directory, they |
| 52 # cannot use relative paths to find this file. |
| 53 'src/crypto', |
| 51 ], | 54 ], |
| 52 'direct_dependent_settings': { | 55 'direct_dependent_settings': { |
| 53 'include_dirs': [ | 56 'include_dirs': [ |
| 54 'src/include', | 57 'src/include', |
| 55 ], | 58 ], |
| 56 }, | 59 }, |
| 57 }, | 60 }, |
| 58 ], | 61 ], |
| 59 } | 62 } |
| OLD | NEW |