OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'includes': [ | |
7 '../../runtime/tools/gyp/runtime-configurations.gypi', | |
8 'boringssl_configurations.gypi', | |
9 ], | |
10 'targets': [ | |
11 { | |
12 'target_name': 'boringssl', | |
13 'type': '<(component)', | |
14 'toolsets': ['host', 'target'], | |
15 'includes': [ | |
16 'boringssl.gypi', | |
17 ], | |
18 'sources': [ | |
19 '<@(boringssl_crypto_sources)', | |
20 '<@(boringssl_ssl_sources)', | |
21 ], | |
22 'defines': [ | |
23 'BORINGSSL_IMPLEMENTATION', | |
24 'BORINGSSL_NO_STATIC_INITIALIZER', | |
25 'OPENSSL_SMALL' | |
26 ], | |
27 # TODO(davidben): Fix size_t truncations in BoringSSL. | |
28 # https://crbug.com/429039 | |
29 'msvs_disabled_warnings': [ 4267, ], | |
30 'conditions': [ | |
31 ['OS == "mac"', { | |
32 'sources': [ | |
33 '<@(boringssl_mac_x86_sources)', | |
34 '<@(boringssl_mac_x86_64_sources)' | |
35 ], | |
36 }], | |
37 ['OS == "linux" or OS == "android"', { | |
38 'sources': [ | |
39 '<@(boringssl_linux_x86_64_sources)', | |
40 '<@(boringssl_linux_x86_sources)', | |
41 '<@(boringssl_linux_arm_sources)', | |
42 '<@(boringssl_linux_aarch64_sources)', | |
43 ], | |
44 'defines': [ | |
45 '_BSD_SOURCE', | |
46 '_XOPEN_SOURCE=700', | |
47 ], | |
48 }], | |
49 ['OS == "win"', { | |
50 'defines': [ 'OPENSSL_NO_ASM', 'WIN32_LEAN_AND_MEAN' ], | |
51 }], | |
52 ], | |
53 'include_dirs': [ | |
54 'src/include', | |
55 ], | |
56 'direct_dependent_settings': { | |
57 'include_dirs': [ | |
58 'src/include', | |
59 ], | |
60 }, | |
61 }, | |
62 ], | |
63 } | |
OLD | NEW |