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', |
25 ], | 26 ], |
26 # TODO(davidben): Fix size_t truncations in BoringSSL. | 27 # TODO(davidben): Fix size_t truncations in BoringSSL. |
27 # https://crbug.com/429039 | 28 # https://crbug.com/429039 |
28 'msvs_disabled_warnings': [ 4267, ], | 29 'msvs_disabled_warnings': [ 4267, ], |
29 'conditions': [ | 30 'conditions': [ |
30 ['OS == "mac"', { | 31 ['OS == "mac"', { |
31 'sources': [ | 32 'sources': [ |
32 '<@(boringssl_mac_x86_sources)', | 33 '<@(boringssl_mac_x86_sources)', |
33 '<@(boringssl_mac_x86_64_sources)' | 34 '<@(boringssl_mac_x86_64_sources)' |
34 ], | 35 ], |
35 }], | 36 }], |
36 ['OS == "linux" or OS == "android"', { | 37 ['OS == "linux" or OS == "android"', { |
37 'sources': [ | 38 'sources': [ |
38 '<@(boringssl_linux_x86_64_sources)', | 39 '<@(boringssl_linux_x86_64_sources)', |
39 '<@(boringssl_linux_x86_sources)', | 40 '<@(boringssl_linux_x86_sources)', |
40 '<@(boringssl_linux_arm_sources)', | 41 '<@(boringssl_linux_arm_sources)', |
41 '<@(boringssl_linux_aarch64_sources)', | 42 '<@(boringssl_linux_aarch64_sources)', |
42 ], | 43 ], |
43 }], | 44 }], |
44 ['OS == "win"', { | 45 ['OS == "win"', { |
45 'defines': [ 'OPENSSL_NO_ASM', 'WIN32_LEAN_AND_MEAN' ], | 46 'defines': [ 'OPENSSL_NO_ASM', 'WIN32_LEAN_AND_MEAN' ], |
46 }], | 47 }], |
47 ], | 48 ], |
48 'include_dirs': [ | 49 'include_dirs': [ |
49 'src/include', | 50 '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', | |
54 ], | 51 ], |
55 'direct_dependent_settings': { | 52 'direct_dependent_settings': { |
56 'include_dirs': [ | 53 'include_dirs': [ |
57 'src/include', | 54 'src/include', |
58 ], | 55 ], |
59 }, | 56 }, |
60 }, | 57 }, |
61 ], | 58 ], |
62 } | 59 } |
OLD | NEW |