1 # Copyright (c) 2012 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.
11 'includes': ['openssl.gypi'],
14 'target_name': 'openssl',
16 'sources': ['<@(openssl_sources)'],
18 ['exclude', 'md2/.*$'],
19 ['exclude', 'store/.*$']
22 ['openssl_no_asm!=0', {
27 'sources': ['<@(openssl_sources_no_asm)'],
29 # "else if" was supported in https://codereview.chromium.org/601353002
31 ['target_arch=="arm"', {
32 'defines': ['<@(openssl_defines_asm)'],
33 'sources': ['<@(openssl_sources_arm_elf_gas)'],
34 }, 'target_arch=="ia32" and OS=="mac"', {
36 '<@(openssl_defines_asm)',
37 '<@(openssl_defines_ia32_mac)',
39 'sources': ['<@(openssl_sources_ia32_mac_gas)'],
40 }, 'target_arch=="ia32" and OS=="win"', {
42 '<@(openssl_defines_asm)',
43 '<@(openssl_defines_ia32_win)',
45 'sources': ['<@(openssl_sources_ia32_win_masm)'],
46 }, 'target_arch=="ia32"', {
49 '<@(openssl_defines_asm)',
50 '<@(openssl_defines_ia32_elf)',
52 'sources': ['<@(openssl_sources_ia32_elf_gas)'],
53 }, 'target_arch=="x64" and OS=="mac"', {
55 '<@(openssl_defines_asm)',
56 '<@(openssl_defines_x64_mac)',
58 'sources': ['<@(openssl_sources_x64_mac_gas)'],
59 }, 'target_arch=="x64" and OS=="win"', {
61 '<@(openssl_defines_asm)',
62 '<@(openssl_defines_x64_win)',
64 'sources': ['<@(openssl_sources_x64_win_masm)'],
65 }, 'target_arch=="x64"', {
68 '<@(openssl_defines_asm)',
69 '<@(openssl_defines_x64_elf)',
71 'sources': ['<@(openssl_sources_x64_elf_gas)'],
73 # Other architectures don't use assembly.
74 'defines': ['OPENSSL_NO_ASM'],
75 'sources': ['<@(openssl_sources_no_asm)'],
78 }], # end of conditions of openssl_no_asm
80 'defines' : ['<@(openssl_defines_all_win)'],
81 'includes': ['masm_compile.gypi',],
83 'defines' : ['<@(openssl_defines_all_non_win)']
86 'include_dirs': ['<@(openssl_include_dirs)'],
87 'direct_dependent_settings': {
95 'includes': ['openssl-cli.gypi',],
99 'include_dirs': ['<@(openssl_default_include_dirs)'],
100 'defines': ['<@(openssl_default_defines_all)'],
103 'defines': ['<@(openssl_default_defines_win)'],
105 'libraries': ['<@(openssl_default_libraries_win)'],
108 'defines': ['<@(openssl_default_defines_not_win)'],
109 'cflags': ['-Wno-missing-field-initializers'],
112 'defines': ['<@(openssl_default_defines_mac)'],
114 'defines': ['<@(openssl_default_defines_linux_others)'],
118 ['is_clang==1 or gcc_version>=43', {
119 'cflags': ['-Wno-old-style-declaration'],
122 'defines': ['__EXTENSIONS__'],
130 # indent-tabs-mode:nil
132 # vim: set expandtab tabstop=2 shiftwidth=2: