| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 { | |
| 6 'targets': [ | |
| 7 { | |
| 8 'target_name': 'boringssl', | |
| 9 'type': '<(component)', | |
| 10 'includes': [ | |
| 11 'boringssl.gypi', | |
| 12 ], | |
| 13 'sources': [ | |
| 14 '<@(boringssl_lib_sources)', | |
| 15 ], | |
| 16 'defines': [ 'BORINGSSL_IMPLEMENTATION' ], | |
| 17 'conditions': [ | |
| 18 ['component == "shared_library"', { | |
| 19 'defines': [ | |
| 20 'BORINGSSL_SHARED_LIBRARY', | |
| 21 ], | |
| 22 }], | |
| 23 ['target_arch == "arm"', { | |
| 24 'sources': [ '<@(boringssl_linux_arm_sources)' ], | |
| 25 }], | |
| 26 ['target_arch == "ia32"', { | |
| 27 'conditions': [ | |
| 28 ['OS == "mac"', { | |
| 29 'sources': [ '<@(boringssl_mac_x86_sources)' ], | |
| 30 }], | |
| 31 ['OS == "linux" or OS == "android"', { | |
| 32 'sources': [ '<@(boringssl_linux_x86_sources)' ], | |
| 33 }], | |
| 34 ['OS != "mac" and OS != "linux" and OS != "android"', { | |
| 35 'defines': [ 'OPENSSL_NO_ASM' ], | |
| 36 }], | |
| 37 ] | |
| 38 }], | |
| 39 ['target_arch == "x64"', { | |
| 40 'conditions': [ | |
| 41 ['OS == "mac"', { | |
| 42 'sources': [ '<@(boringssl_mac_x86_64_sources)' ], | |
| 43 }], | |
| 44 ['OS == "linux" or OS == "android"', { | |
| 45 'sources': [ '<@(boringssl_linux_x86_64_sources)' ], | |
| 46 }], | |
| 47 ['OS == "win"', { | |
| 48 'sources': [ '<@(boringssl_win_x86_64_sources)' ], | |
| 49 }], | |
| 50 ['OS != "mac" and OS != "linux" and OS != "win" and OS != "android"'
, { | |
| 51 'defines': [ 'OPENSSL_NO_ASM' ], | |
| 52 }], | |
| 53 ] | |
| 54 }], | |
| 55 ['target_arch != "arm" and target_arch != "ia32" and target_arch != "x64
"', { | |
| 56 'defines': [ 'OPENSSL_NO_ASM' ], | |
| 57 }], | |
| 58 ], | |
| 59 'include_dirs': [ | |
| 60 'src/include', | |
| 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. | |
| 64 'src/crypto', | |
| 65 ], | |
| 66 'direct_dependent_settings': { | |
| 67 'include_dirs': [ | |
| 68 'src/include', | |
| 69 ], | |
| 70 'conditions': [ | |
| 71 ['component == "shared_library"', { | |
| 72 'defines': [ | |
| 73 'BORINGSSL_SHARED_LIBRARY', | |
| 74 ], | |
| 75 }], | |
| 76 ], | |
| 77 }, | |
| 78 }, | |
| 79 ], | |
| 80 } | |
| OLD | NEW |