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.
8 'target_name': 'boringssl',
9 'type': '<(component)',
14 '<@(boringssl_lib_sources)',
17 'BORINGSSL_IMPLEMENTATION',
18 'BORINGSSL_NO_STATIC_INITIALIZER',
21 ['component == "shared_library"', {
23 'BORINGSSL_SHARED_LIBRARY',
26 ['target_arch == "arm"', {
27 'sources': [ '<@(boringssl_linux_arm_sources)' ],
29 ['target_arch == "ia32"', {
32 'sources': [ '<@(boringssl_mac_x86_sources)' ],
34 ['OS == "linux" or OS == "android"', {
35 'sources': [ '<@(boringssl_linux_x86_sources)' ],
37 ['OS != "mac" and OS != "linux" and OS != "android"', {
38 'defines': [ 'OPENSSL_NO_ASM' ],
42 ['target_arch == "x64"', {
45 'sources': [ '<@(boringssl_mac_x86_64_sources)' ],
47 ['OS == "linux" or OS == "android"', {
48 'sources': [ '<@(boringssl_linux_x86_64_sources)' ],
51 'sources': [ '<@(boringssl_win_x86_64_sources)' ],
53 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"', {
54 'defines': [ 'OPENSSL_NO_ASM' ],
58 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64"', {
59 'defines': [ 'OPENSSL_NO_ASM' ],
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.
69 'direct_dependent_settings': {
74 ['component == "shared_library"', {
76 'BORINGSSL_SHARED_LIBRARY',