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

Side by Side Diff: third_party/boringssl/BUILD.gn

Issue 400233002: GN Windows build fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
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 # Config for us and everybody else depending on BoringSSL. 5 # Config for us and everybody else depending on BoringSSL.
6 config("openssl_config") { 6 config("openssl_config") {
7 include_dirs = [] 7 include_dirs = []
8 include_dirs += [ "src/include" ] 8 include_dirs += [ "src/include" ]
9 } 9 }
10 10
11 # Config internal to this build file. 11 # Config internal to this build file.
12 config("openssl_internal_config") { 12 config("openssl_internal_config") {
13 visibility = ":*" # Only targets in this file can depend on this. 13 visibility = ":*" # Only targets in this file can depend on this.
14 } 14 }
15 15
16 # The list of BoringSSL files is kept in boringssl.gypi. 16 # The list of BoringSSL files is kept in boringssl.gypi.
17 gypi_values = exec_script( 17 gypi_values = exec_script(
18 "//build/gypi_to_gn.py", 18 "//build/gypi_to_gn.py",
19 [ rebase_path("//third_party/boringssl/boringssl.gypi") ], 19 [ rebase_path("//third_party/boringssl/boringssl.gypi") ],
20 "scope", 20 "scope",
21 [ "//third_party/boringssl/boringssl.gypi" ]) 21 [ "//third_party/boringssl/boringssl.gypi" ])
22 22
23 component("boringssl") { 23 component("boringssl") {
24 sources = gypi_values.boringssl_lib_sources 24 sources = gypi_values.boringssl_lib_sources
25 25
26 direct_dependent_configs = [ ":openssl_config" ] 26 direct_dependent_configs = [ ":openssl_config" ]
27 27
28 cflags = [] 28 cflags = []
29 defines = []
29 30
30 configs -= [ "//build/config/compiler:chromium_code" ] 31 configs -= [ "//build/config/compiler:chromium_code" ]
31 configs += [ "//build/config/compiler:no_chromium_code" ] 32 configs += [ "//build/config/compiler:no_chromium_code" ]
32 33
33 # Also gets the include dirs from :openssl_config 34 # Also gets the include dirs from :openssl_config
34 include_dirs = [ 35 include_dirs = [
35 "src/include", 36 "src/include",
36 # This is for arm_arch.h, which is needed by some asm files. Since the 37 # This is for arm_arch.h, which is needed by some asm files. Since the
37 # asm files are generated and kept in a different directory, they 38 # asm files are generated and kept in a different directory, they
38 # cannot use relative paths to find this file. 39 # cannot use relative paths to find this file.
(...skipping 17 matching lines...) Expand all
56 sources += gypi_values.boringssl_linux_x86_sources 57 sources += gypi_values.boringssl_linux_x86_sources
57 } else { 58 } else {
58 defines += [ "OPENSSL_NO_ASM" ] 59 defines += [ "OPENSSL_NO_ASM" ]
59 } 60 }
60 } else if (cpu_arch == "arm") { 61 } else if (cpu_arch == "arm") {
61 sources += gypi_values.boringssl_linux_arm_sources 62 sources += gypi_values.boringssl_linux_arm_sources
62 } else { 63 } else {
63 defines += [ "OPENSSL_NO_ASM" ] 64 defines += [ "OPENSSL_NO_ASM" ]
64 } 65 }
65 } 66 }
OLDNEW
« media/BUILD.gn ('K') | « media/BUILD.gn ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698