Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / boringssl / boringssl.gyp
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   '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       'conditions': [
21         ['component == "shared_library"', {
22           'defines': [
23             'BORINGSSL_SHARED_LIBRARY',
24           ],
25         }],
26         ['target_arch == "arm"', {
27           'sources': [ '<@(boringssl_linux_arm_sources)' ],
28         }],
29         ['target_arch == "ia32"', {
30           'conditions': [
31             ['OS == "mac"', {
32               'sources': [ '<@(boringssl_mac_x86_sources)' ],
33             }],
34             ['OS == "linux" or OS == "android"', {
35               'sources': [ '<@(boringssl_linux_x86_sources)' ],
36             }],
37             ['OS != "mac" and OS != "linux" and OS != "android"', {
38               'defines': [ 'OPENSSL_NO_ASM' ],
39             }],
40           ]
41         }],
42         ['target_arch == "x64"', {
43           'conditions': [
44             ['OS == "mac"', {
45               'sources': [ '<@(boringssl_mac_x86_64_sources)' ],
46             }],
47             ['OS == "linux" or OS == "android"', {
48               'sources': [ '<@(boringssl_linux_x86_64_sources)' ],
49             }],
50             ['OS == "win"', {
51               'sources': [ '<@(boringssl_win_x86_64_sources)' ],
52             }],
53             ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"', {
54               'defines': [ 'OPENSSL_NO_ASM' ],
55             }],
56           ]
57         }],
58         ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64"', {
59           'defines': [ 'OPENSSL_NO_ASM' ],
60         }],
61       ],
62       'include_dirs': [
63         'src/include',
64         # This is for arm_arch.h, which is needed by some asm files. Since the
65         # asm files are generated and kept in a different directory, they
66         # cannot use relative paths to find this file.
67         'src/crypto',
68       ],
69       'direct_dependent_settings': {
70         'include_dirs': [
71           'src/include',
72         ],
73         'conditions': [
74           ['component == "shared_library"', {
75             'defines': [
76               'BORINGSSL_SHARED_LIBRARY',
77             ],
78           }],
79         ],
80       },
81     },
82   ],
83 }