summaryrefslogtreecommitdiffstats
path: root/chrome/common/net
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-16 19:29:56 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-16 19:29:56 +0000
commit77ce8025e3f43da6f09e7153e853eabd93863542 (patch)
tree8b7f126902c61e63059f900f3b8e2ce5aa2c8324 /chrome/common/net
parent7555225d77e3b08547dc5c64ea5585f425a0a8e3 (diff)
downloadchromium_src-77ce8025e3f43da6f09e7153e853eabd93863542.zip
chromium_src-77ce8025e3f43da6f09e7153e853eabd93863542.tar.gz
chromium_src-77ce8025e3f43da6f09e7153e853eabd93863542.tar.bz2
Add GN build for some chrome common, chrome net, and resources targets.
Slight enhancements to the grit template. R=thestig@chromium.org Review URL: https://codereview.chromium.org/335053002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/net')
-rw-r--r--chrome/common/net/BUILD.gn71
1 files changed, 71 insertions, 0 deletions
diff --git a/chrome/common/net/BUILD.gn b/chrome/common/net/BUILD.gn
new file mode 100644
index 0000000..cc62c57
--- /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" ]
+ }
+}