Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / third_party / boringssl / boringssl.gyp
blob3079d0b6ed25865076d71e84ca3af27cee1589a2
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.
6   'targets': [
7     {
8       'target_name': 'boringssl',
9       'type': '<(component)',
10       'includes': [
11         'boringssl.gypi',
12       ],
13       'sources': [
14         '<@(boringssl_lib_sources)',
15       ],
16       'defines': [
17         'BORINGSSL_IMPLEMENTATION',
18         'BORINGSSL_NO_STATIC_INITIALIZER',
19       ],
20       # TODO(davidben): Fix size_t truncations in BoringSSL.
21       # https://crbug.com/429039
22       'msvs_disabled_warnings': [ 4267, ],
23       'conditions': [
24         ['component == "shared_library"', {
25           'defines': [
26             'BORINGSSL_SHARED_LIBRARY',
27           ],
28         }],
29         ['target_arch == "arm" and msan == 0', {
30           'conditions': [
31             ['OS == "linux" or OS == "android"', {
32               'sources': [ '<@(boringssl_linux_arm_sources)' ],
33             }, {
34               'defines': [ 'OPENSSL_NO_ASM' ],
35             }],
36           ],
37         }],
38         ['target_arch == "arm64" and msan == 0', {
39           'conditions': [
40             ['OS == "linux" or OS == "android"', {
41               'sources': [ '<@(boringssl_linux_aarch64_sources)' ],
42             }, {
43               'defines': [ 'OPENSSL_NO_ASM' ],
44             }],
45           ],
46         }],
47         ['target_arch == "ia32" and msan == 0', {
48           'conditions': [
49             ['OS == "mac" or OS == "ios"', {
50               'sources': [ '<@(boringssl_mac_x86_sources)' ],
51             }],
52             ['OS == "linux" or OS == "android"', {
53               'sources': [ '<@(boringssl_linux_x86_sources)' ],
54             }],
55             ['OS == "win"', {
56               'sources': [ '<@(boringssl_win_x86_sources)' ],
57               # Windows' assembly is built with Yasm. The other platforms use
58               # the platform assembler.
59               'variables': {
60                 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
61               },
62               'includes': [
63                 '../yasm/yasm_compile.gypi',
64               ],
65             }],
66             ['OS != "mac" and OS != "ios" and OS != "linux" and OS != "win" and OS != "android"', {
67               'defines': [ 'OPENSSL_NO_ASM' ],
68             }],
69           ]
70         }],
71         ['target_arch == "x64" and msan == 0', {
72           'conditions': [
73             ['OS == "mac" or OS == "ios"', {
74               'sources': [ '<@(boringssl_mac_x86_64_sources)' ],
75             }],
76             ['OS == "linux" or OS == "android"', {
77               'sources': [ '<@(boringssl_linux_x86_64_sources)' ],
78             }],
79             ['OS == "win"', {
80               'sources': [ '<@(boringssl_win_x86_64_sources)' ],
81               # Windows' assembly is built with Yasm. The other platforms use
82               # the platform assembler.
83               'variables': {
84                 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
85               },
86               'includes': [
87                 '../yasm/yasm_compile.gypi',
88               ],
89             }],
90             ['OS != "mac" and OS != "ios" and OS != "linux" and OS != "win" and OS != "android"', {
91               'defines': [ 'OPENSSL_NO_ASM' ],
92             }],
93           ]
94         }],
95         ['msan == 1 or (target_arch != "arm" and target_arch != "ia32" and target_arch != "x64" and target_arch != "arm64")', {
96           'defines': [ 'OPENSSL_NO_ASM' ],
97         }],
98       ],
99       'include_dirs': [
100         'src/include',
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
103         # cannot use relative paths to find this file.
104         'src/crypto',
105       ],
106       'direct_dependent_settings': {
107         'include_dirs': [
108           'src/include',
109         ],
110         'conditions': [
111           ['component == "shared_library"', {
112             'defines': [
113               'BORINGSSL_SHARED_LIBRARY',
114             ],
115           }],
116         ],
117       },
118     },
119   ],