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)',
16 'defines': [ 'BORINGSSL_IMPLEMENTATION' ],
18 ['component == "shared_library"', {
20 'BORINGSSL_SHARED_LIBRARY',
23 ['target_arch == "arm"', {
24 'sources': [ '<@(boringssl_linux_arm_sources)' ],
26 ['target_arch == "ia32"', {
29 'sources': [ '<@(boringssl_mac_x86_sources)' ],
31 ['OS == "linux" or OS == "android"', {
32 'sources': [ '<@(boringssl_linux_x86_sources)' ],
34 ['OS != "mac" and OS != "linux" and OS != "android"', {
35 'defines': [ 'OPENSSL_NO_ASM' ],
39 ['target_arch == "x64"', {
42 'sources': [ '<@(boringssl_mac_x86_64_sources)' ],
44 ['OS == "linux" or OS == "android"', {
45 'sources': [ '<@(boringssl_linux_x86_64_sources)' ],
48 'sources': [ '<@(boringssl_win_x86_64_sources)' ],
50 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"', {
51 'defines': [ 'OPENSSL_NO_ASM' ],
55 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64"', {
56 'defines': [ 'OPENSSL_NO_ASM' ],
61 # This is for arm_arch.h, which is needed by some asm files. Since the
62 # asm files are generated and kept in a different directory, they
63 # cannot use relative paths to find this file.
66 'direct_dependent_settings': {
71 ['component == "shared_library"', {
73 'BORINGSSL_SHARED_LIBRARY',