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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/metrics/proto/BUILD.gn ('k') | chrome/common/safe_browsing/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/BUILD.gn
diff --git a/chrome/common/net/BUILD.gn b/chrome/common/net/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..cc62c57af5f95a19ba27cf068d119dba24518222
--- /dev/null
+++ b/chrome/common/net/BUILD.gn
@@ -0,0 +1,71 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/crypto.gni")
+
+# GYP version: chrome/chrome_common.gypi:common_net
+static_library("net") {
+ sources = [
+ "net_error_info.cc",
+ "net_error_info.h",
+ "net_resource_provider.cc",
+ "net_resource_provider.h",
+ "predictor_common.h",
+ "url_util.cc",
+ "url_util.h",
+ "x509_certificate_model.cc",
+ "x509_certificate_model.h",
+ "x509_certificate_model_nss.cc",
+ "x509_certificate_model_openssl.cc",
+ ]
+
+ deps = [
+ "//base",
+ "//chrome:resources",
+ "//chrome:strings",
+ "//crypto",
+ "//net",
+ "//net:net_resources",
+ "//third_party/icu",
+ ]
+
+ if (is_ios) {
+ sources -= [
+ "net_resource_provider.cc",
+ "x509_certificate_model.cc",
+ ]
+ } else {
+ deps += [ "//gpu:ipc" ]
+ }
+
+ if (is_win || is_mac || is_ios) {
+ sources -= [
+ "x509_certificate_model_nss.cc",
+ "x509_certificate_model_openssl.cc",
+ ]
+ }
+
+ if (is_android) {
+ sources -= [
+ "x509_certificate_model.cc",
+ "x509_certificate_model_openssl.cc",
+ ]
+ deps += [ "//third_party/openssl" ]
+ }
+
+ if (use_openssl) {
+ # networking_private_crypto.cc uses NSS functions.
+ sources -= [
+ "x509_certificate_model_nss.cc",
+ ]
+ } else {
+ sources -= [
+ "x509_certificate_model_openssl.cc",
+ ]
+ }
+
+ if (is_win) {
+ cflags = [ "/wd4267" ]
+ }
+}
« 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