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 == "ia32"', {
35 'sources': [ '<@(boringssl_mac_x86_sources)' ],
37 ['OS == "linux" or OS == "android"', {
38 'sources': [ '<@(boringssl_linux_x86_sources)' ],
41 'sources': [ '<@(boringssl_win_x86_sources)' ],
42 # Windows' assembly is built with Yasm. The other platforms use
43 # the platform assembler.
45 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
48 '../yasm/yasm_compile.gypi',
51 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"', {
52 'defines': [ 'OPENSSL_NO_ASM' ],
56 ['target_arch == "x64"', {
59 'sources': [ '<@(boringssl_mac_x86_64_sources)' ],
61 ['OS == "linux" or OS == "android"', {
62 'sources': [ '<@(boringssl_linux_x86_64_sources)' ],
65 'sources': [ '<@(boringssl_win_x86_64_sources)' ],
66 # Windows' assembly is built with Yasm. The other platforms use
67 # the platform assembler.
69 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
72 '../yasm/yasm_compile.gypi',
75 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"', {
76 'defines': [ 'OPENSSL_NO_ASM' ],
80 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64"', {
81 'defines': [ 'OPENSSL_NO_ASM' ],
86 # This is for arm_arch.h, which is needed by some asm files. Since the
87 # asm files are generated and kept in a different directory, they
88 # cannot use relative paths to find this file.
91 'direct_dependent_settings': {
96 ['component == "shared_library"', {
98 'BORINGSSL_SHARED_LIBRARY',