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

Side by Side Diff: chrome/common/net/BUILD.gn

Issue 335053002: Add GN build for some chrome common, chrome net, and resources targets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sorting Created 6 years, 6 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 | « chrome/common/metrics/proto/BUILD.gn ('k') | chrome/common/safe_browsing/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 import("//build/config/crypto.gni")
6
7 # GYP version: chrome/chrome_common.gypi:common_net
8 static_library("net") {
9 sources = [
10 "net_error_info.cc",
11 "net_error_info.h",
12 "net_resource_provider.cc",
13 "net_resource_provider.h",
14 "predictor_common.h",
15 "url_util.cc",
16 "url_util.h",
17 "x509_certificate_model.cc",
18 "x509_certificate_model.h",
19 "x509_certificate_model_nss.cc",
20 "x509_certificate_model_openssl.cc",
21 ]
22
23 deps = [
24 "//base",
25 "//chrome:resources",
26 "//chrome:strings",
27 "//crypto",
28 "//net",
29 "//net:net_resources",
30 "//third_party/icu",
31 ]
32
33 if (is_ios) {
34 sources -= [
35 "net_resource_provider.cc",
36 "x509_certificate_model.cc",
37 ]
38 } else {
39 deps += [ "//gpu:ipc" ]
40 }
41
42 if (is_win || is_mac || is_ios) {
43 sources -= [
44 "x509_certificate_model_nss.cc",
45 "x509_certificate_model_openssl.cc",
46 ]
47 }
48
49 if (is_android) {
50 sources -= [
51 "x509_certificate_model.cc",
52 "x509_certificate_model_openssl.cc",
53 ]
54 deps += [ "//third_party/openssl" ]
55 }
56
57 if (use_openssl) {
58 # networking_private_crypto.cc uses NSS functions.
59 sources -= [
60 "x509_certificate_model_nss.cc",
61 ]
62 } else {
63 sources -= [
64 "x509_certificate_model_openssl.cc",
65 ]
66 }
67
68 if (is_win) {
69 cflags = [ "/wd4267" ]
70 }
71 }
OLDNEW
« no previous file with comments | « chrome/common/metrics/proto/BUILD.gn ('k') | chrome/common/safe_browsing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698