ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / third_party / boringssl / boringssl.gyp
blob845a920589a2a9a393d870cf12e0671702dadf4e
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"', {
30           'sources': [ '<@(boringssl_linux_arm_sources)' ],
31         }],
32         ['target_arch == "arm64"', {
33           'sources': [ '<@(boringssl_linux_aarch64_sources)' ],
34         }],
35         ['target_arch == "ia32"', {
36           'conditions': [
37             ['OS == "mac"', {
38               'sources': [ '<@(boringssl_mac_x86_sources)' ],
39             }],
40             ['OS == "linux" or OS == "android"', {
41               'sources': [ '<@(boringssl_linux_x86_sources)' ],
42             }],
43             ['OS == "win"', {
44               'sources': [ '<@(boringssl_win_x86_sources)' ],
45               # Windows' assembly is built with Yasm. The other platforms use
46               # the platform assembler.
47               'variables': {
48                 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
49               },
50               'includes': [
51                 '../yasm/yasm_compile.gypi',
52               ],
53             }],
54             ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"', {
55               'defines': [ 'OPENSSL_NO_ASM' ],
56             }],
57           ]
58         }],
59         ['target_arch == "x64"', {
60           'conditions': [
61             ['OS == "mac"', {
62               'sources': [ '<@(boringssl_mac_x86_64_sources)' ],
63             }],
64             ['OS == "linux" or OS == "android"', {
65               'sources': [ '<@(boringssl_linux_x86_64_sources)' ],
66             }],
67             ['OS == "win"', {
68               'sources': [ '<@(boringssl_win_x86_64_sources)' ],
69               # Windows' assembly is built with Yasm. The other platforms use
70               # the platform assembler.
71               'variables': {
72                 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
73               },
74               'includes': [
75                 '../yasm/yasm_compile.gypi',
76               ],
77             }],
78             ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"', {
79               'defines': [ 'OPENSSL_NO_ASM' ],
80             }],
81           ]
82         }],
83         ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64" and target_arch != "arm64"', {
84           'defines': [ 'OPENSSL_NO_ASM' ],
85         }],
86       ],
87       'include_dirs': [
88         'src/include',
89         # This is for arm_arch.h, which is needed by some asm files. Since the
90         # asm files are generated and kept in a different directory, they
91         # cannot use relative paths to find this file.
92         'src/crypto',
93       ],
94       'direct_dependent_settings': {
95         'include_dirs': [
96           'src/include',
97         ],
98         'conditions': [
99           ['component == "shared_library"', {
100             'defines': [
101               'BORINGSSL_SHARED_LIBRARY',
102             ],
103           }],
104         ],
105       },
106     },
107   ],