Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: third_party/boringssl/boringssl.gyp

Issue 447213004: BoringSSL: switch around GYP files again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittest build. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/all.gyp ('k') | third_party/boringssl/boringssl_lib.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'includes': [
7 'boringssl_tests.gypi',
8 'boringssl_lib.gypi',
9 ],
10 'targets': [ 6 'targets': [
11 { 7 {
12 'target_name': 'boringssl_unittests', 8 'target_name': 'boringssl',
13 'type': 'executable', 9 'type': '<(component)',
10 'includes': [
11 'boringssl.gypi',
12 ],
14 'sources': [ 13 'sources': [
15 'boringssl_unittest.cc', 14 '<@(boringssl_lib_sources)',
16 ],
17 'dependencies': [
18 '<@(boringssl_test_targets)',
19 '../../base/base.gyp:base',
20 '../../base/base.gyp:run_all_unittests',
21 '../../base/base.gyp:test_support_base',
22 '../../testing/gtest.gyp:gtest',
23 ], 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 },
24 }, 78 },
25 ], 79 ],
26 } 80 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | third_party/boringssl/boringssl_lib.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698