Chromium Code Reviews| 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': '<(component)', | |
|
Ryan Sleevi
2014/07/09 00:03:35
I don't think this can be built as a <(component)
agl
2014/07/09 16:42:00
I think you're correct. I took this from the exist
| |
| 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 ['component == "shared_library"', { | |
| 56 'xcode_settings': { | |
| 57 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # no -fvisibility=hidden | |
| 58 }, | |
| 59 'cflags!': ['-fvisibility=hidden'], | |
| 60 }], | |
| 61 ], | |
| 62 'include_dirs': [ | |
| 63 'src/include', | |
| 64 # This is for arm_arch.h, which is needed by some asm files. Since the | |
| 65 # asm files are generated and kept in a different directory, they | |
| 66 # cannot use relative paths to find this file. | |
| 67 'src/crypto', | |
| 68 ], | |
| 69 'direct_dependent_settings': { | |
| 70 'include_dirs': [ | |
| 71 'src/include', | |
| 72 ], | |
| 73 }, | |
| 74 }, | |
| 75 { | |
| 76 'target_name': 'boringssl_unittests', | |
| 77 'type': 'executable', | |
| 78 'sources': [ | |
| 79 'boringssl_unittest.cc', | |
| 80 ], | |
| 81 'dependencies': [ | |
| 82 '<@(boringssl_test_targets)', | |
| 83 '../../base/base.gyp:base', | |
| 84 '../../base/base.gyp:run_all_unittests', | |
| 85 '../../base/base.gyp:test_support_base', | |
| 86 '../../testing/gtest.gyp:gtest', | |
| 87 ], | |
| 88 }, | |
| 89 ], | |
| 90 } | |
| 91 | |
| 92 # Local Variables: | |
| 93 # tab-width:2 | |
| 94 # indent-tabs-mode:nil | |
| 95 # End: | |
| 96 # vim: set expandtab tabstop=2 shiftwidth=2: | |
|
Ryan Sleevi
2014/07/09 00:03:35
Our GYP files removed mode-lines. There are utilit
agl
2014/07/09 16:42:00
Done (again, taken from openssl.gyp).
| |
| OLD | NEW |