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',
20 # TODO(davidben): Fix size_t truncations in BoringSSL.
21 # https://crbug.com/429039
22 'msvs_disabled_warnings': [ 4267, ],
24 ['component == "shared_library"', {
26 'BORINGSSL_SHARED_LIBRARY',
29 ['target_arch == "arm"', {
30 'sources': [ '<@(boringssl_linux_arm_sources)' ],
32 ['target_arch == "arm64"', {
33 'sources': [ '<@(boringssl_linux_aarch64_sources)' ],
35 ['target_arch == "ia32"', {
38 'sources': [ '<@(boringssl_mac_x86_sources)' ],
40 ['OS == "linux" or OS == "android"', {
41 'sources': [ '<@(boringssl_linux_x86_sources)' ],
44 'sources': [ '<@(boringssl_win_x86_sources)' ],
45 # Windows' assembly is built with Yasm. The other platforms use
46 # the platform assembler.
48 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
51 '../yasm/yasm_compile.gypi',
54 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"', {
55 'defines': [ 'OPENSSL_NO_ASM' ],
59 ['target_arch == "x64"', {
62 'sources': [ '<@(boringssl_mac_x86_64_sources)' ],
64 ['OS == "linux" or OS == "android"', {
65 'sources': [ '<@(boringssl_linux_x86_64_sources)' ],
68 'sources': [ '<@(boringssl_win_x86_64_sources)' ],
69 # Windows' assembly is built with Yasm. The other platforms use
70 # the platform assembler.
72 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
75 '../yasm/yasm_compile.gypi',
78 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"', {
79 'defines': [ 'OPENSSL_NO_ASM' ],
83 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64" and target_arch != "arm64"', {
84 'defines': [ 'OPENSSL_NO_ASM' ],
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.
94 'direct_dependent_settings': {
99 ['component == "shared_library"', {
101 'BORINGSSL_SHARED_LIBRARY',