OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 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. |
| 4 |
| 5 { |
| 6 'includes': [ |
| 7 'boringssl_tests.gypi', |
| 8 ], |
| 9 'targets': [ |
| 10 { |
| 11 'target_name': 'boringssl', |
| 12 'type': 'static_library', |
| 13 'includes': [ |
| 14 'boringssl.gypi', |
| 15 ], |
| 16 'sources': [ |
| 17 '<@(boringssl_lib_sources)', |
| 18 ], |
| 19 'conditions': [ |
| 20 ['target_arch == "arm"', { |
| 21 'sources': [ '<@(boringssl_linux_arm_sources)' ], |
| 22 }], |
| 23 ['target_arch == "ia32"', { |
| 24 'conditions': [ |
| 25 ['OS == "mac"', { |
| 26 'sources': [ '<@(boringssl_mac_x86_sources)' ], |
| 27 }], |
| 28 ['OS == "linux"', { |
| 29 'sources': [ '<@(boringssl_linux_x86_sources)' ], |
| 30 }], |
| 31 ['OS != "mac" and OS != "linux"', { |
| 32 'defines': [ 'OPENSSL_NO_ASM' ], |
| 33 }], |
| 34 ] |
| 35 }], |
| 36 ['target_arch == "x64"', { |
| 37 'conditions': [ |
| 38 ['OS == "mac"', { |
| 39 'sources': [ '<@(boringssl_mac_x86_64_sources)' ], |
| 40 }], |
| 41 ['OS == "linux"', { |
| 42 'sources': [ '<@(boringssl_linux_x86_64_sources)' ], |
| 43 }], |
| 44 ['OS == "win"', { |
| 45 'sources': [ '<@(boringssl_win_x86_64_sources)' ], |
| 46 }], |
| 47 ['OS != "mac" and OS != "linux" and OS != "win"', { |
| 48 'defines': [ 'OPENSSL_NO_ASM' ], |
| 49 }], |
| 50 ] |
| 51 }], |
| 52 ['target_arch != "arm" and target_arch != "x86" and target_arch != "x64"
', { |
| 53 'defines': [ 'OPENSSL_NO_ASM' ], |
| 54 }], |
| 55 ], |
| 56 'include_dirs': [ |
| 57 'src/include', |
| 58 # This is for arm_arch.h, which is needed by some asm files. Since the |
| 59 # asm files are generated and kept in a different directory, they |
| 60 # cannot use relative paths to find this file. |
| 61 'src/crypto', |
| 62 ], |
| 63 'direct_dependent_settings': { |
| 64 'include_dirs': [ |
| 65 'src/include', |
| 66 ], |
| 67 }, |
| 68 }, |
| 69 { |
| 70 'target_name': 'boringssl_unittests', |
| 71 'type': 'executable', |
| 72 'sources': [ |
| 73 'boringssl_unittest.cc', |
| 74 ], |
| 75 'dependencies': [ |
| 76 '<@(boringssl_test_targets)', |
| 77 '../../base/base.gyp:base', |
| 78 '../../base/base.gyp:run_all_unittests', |
| 79 '../../base/base.gyp:test_support_base', |
| 80 '../../testing/gtest.gyp:gtest', |
| 81 ], |
| 82 }, |
| 83 ], |
| 84 } |
OLD | NEW |