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

Side by Side Diff: chrome/utility/BUILD.gn

Issue 881213004: Support building BoringSSL with NSS certificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: slightly tidier (edit: looks like this'll need a rebase later for try jobs to run.) Created 5 years, 9 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
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 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 7
8 gypi_values = exec_script("//build/gypi_to_gn.py", 8 gypi_values = exec_script("//build/gypi_to_gn.py",
9 [ rebase_path("../chrome_utility.gypi") ], 9 [ rebase_path("../chrome_utility.gypi") ],
10 "scope", 10 "scope",
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "..") 65 "..")
66 } 66 }
67 67
68 # Linux should use system libexif 68 # Linux should use system libexif
69 if (!is_linux) { 69 if (!is_linux) {
70 # TODO(thestig): Properly support building on Linux and ChromeOS. 70 # TODO(thestig): Properly support building on Linux and ChromeOS.
71 deps += [ "//third_party/libexif" ] 71 deps += [ "//third_party/libexif" ]
72 } 72 }
73 } 73 }
74 74
75 if (use_openssl) { 75 if (use_nss_certs) {
76 if (!is_win && !is_mac && !is_android) { 76 sources += [
77 sources -= [ "importer/nss_decryptor.cc" ] 77 "importer/nss_decryptor_system_nss.cc",
78 } 78 "importer/nss_decryptor_system_nss.h",
79 } else { # !use_openssl 79 ]
80 if (!is_win && !is_mac) { 80 deps += [
81 sources += [ 81 "//crypto",
82 "importer/nss_decryptor_system_nss.cc", 82 "//crypto:platform",
83 "importer/nss_decryptor_system_nss.h", 83 ]
84 ]
85 deps += [
86 "//crypto",
87 "//crypto:platform",
88 ]
89 }
90 } 84 }
91 85
92 if (!enable_print_preview) { 86 if (!enable_print_preview) {
93 sources -= [ 87 sources -= [
94 "printing_handler.cc", 88 "printing_handler.cc",
95 "printing_handler.h", 89 "printing_handler.h",
96 ] 90 ]
97 } 91 }
98 92
99 if (!enable_mdns) { 93 if (!enable_mdns) {
100 sources -= [ 94 sources -= [
101 "local_discovery/service_discovery_message_handler.cc", 95 "local_discovery/service_discovery_message_handler.cc",
102 "local_discovery/service_discovery_message_handler.h", 96 "local_discovery/service_discovery_message_handler.h",
103 ] 97 ]
104 } 98 }
105 99
106 if (safe_browsing_mode == 1) { 100 if (safe_browsing_mode == 1) {
107 defines += [ "FULL_SAFE_BROWSING" ] 101 defines += [ "FULL_SAFE_BROWSING" ]
108 } 102 }
109 } 103 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698