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" and msan == 0', {
31 ['OS == "linux" or OS == "android"', {
32 'sources': [ '<@(boringssl_linux_arm_sources)' ],
34 'defines': [ 'OPENSSL_NO_ASM' ],
38 ['target_arch == "arm64" and msan == 0', {
40 ['OS == "linux" or OS == "android"', {
41 'sources': [ '<@(boringssl_linux_aarch64_sources)' ],
43 'defines': [ 'OPENSSL_NO_ASM' ],
47 ['target_arch == "ia32" and msan == 0', {
49 ['OS == "mac" or OS == "ios"', {
50 'sources': [ '<@(boringssl_mac_x86_sources)' ],
52 ['OS == "linux" or OS == "android"', {
53 'sources': [ '<@(boringssl_linux_x86_sources)' ],
56 'sources': [ '<@(boringssl_win_x86_sources)' ],
57 # Windows' assembly is built with Yasm. The other platforms use
58 # the platform assembler.
60 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
63 '../yasm/yasm_compile.gypi',
66 ['OS != "mac" and OS != "ios" and OS != "linux" and OS != "win" and OS != "android"', {
67 'defines': [ 'OPENSSL_NO_ASM' ],
71 ['target_arch == "x64" and msan == 0', {
73 ['OS == "mac" or OS == "ios"', {
74 'sources': [ '<@(boringssl_mac_x86_64_sources)' ],
76 ['OS == "linux" or OS == "android"', {
77 'sources': [ '<@(boringssl_linux_x86_64_sources)' ],
80 'sources': [ '<@(boringssl_win_x86_64_sources)' ],
81 # Windows' assembly is built with Yasm. The other platforms use
82 # the platform assembler.
84 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/third_party/boringssl',
87 '../yasm/yasm_compile.gypi',
90 ['OS != "mac" and OS != "ios" and OS != "linux" and OS != "win" and OS != "android"', {
91 'defines': [ 'OPENSSL_NO_ASM' ],
95 ['msan == 1 or (target_arch != "arm" and target_arch != "ia32" and target_arch != "x64" and target_arch != "arm64")', {
96 'defines': [ 'OPENSSL_NO_ASM' ],
101 # This is for arm_arch.h, which is needed by some asm files. Since the
102 # asm files are generated and kept in a different directory, they
103 # cannot use relative paths to find this file.
106 'direct_dependent_settings': {
111 ['component == "shared_library"', {
113 'BORINGSSL_SHARED_LIBRARY',