summaryrefslogtreecommitdiffstats
path: root/base/third_party
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 16:49:07 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 16:49:07 +0000
commitc486e4ee5565db7ff554f992f92757f456e1ec13 (patch)
tree822469cf46abc3634525379aac3bf7a6ec9faee4 /base/third_party
parent49da07b4e0625ba3228309148a607b587e58f3c8 (diff)
downloadchromium_src-c486e4ee5565db7ff554f992f92757f456e1ec13.zip
chromium_src-c486e4ee5565db7ff554f992f92757f456e1ec13.tar.gz
chromium_src-c486e4ee5565db7ff554f992f92757f456e1ec13.tar.bz2
Linux: add option to use system nspr.
Note that for NaCl bundles nspr files will be used anyway, since NaCl toolchain doesn't looks for libraries in system directories. BUG=none Review URL: https://codereview.chromium.org/11685002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/third_party')
-rw-r--r--base/third_party/nspr/nspr.gyp41
1 files changed, 41 insertions, 0 deletions
diff --git a/base/third_party/nspr/nspr.gyp b/base/third_party/nspr/nspr.gyp
new file mode 100644
index 0000000..681e6ae
--- /dev/null
+++ b/base/third_party/nspr/nspr.gyp
@@ -0,0 +1,41 @@
+# Copyright (c) 2012 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.
+
+{
+ 'conditions': [
+ ['use_system_nspr==1', {
+ 'targets': [
+ {
+ 'target_name': 'nspr',
+ 'type': 'none',
+ 'toolsets': ['host', 'target'],
+ 'variables': {
+ 'headers_root_path': '.',
+ 'header_filenames': [
+ 'prcpucfg.h',
+ 'prtime.h',
+ 'prtypes.h',
+ ],
+ },
+ 'includes': [
+ '../../../build/shim_headers.gypi',
+ ],
+ 'direct_dependent_settings': {
+ 'cflags': [
+ '<!@(pkg-config --cflags nspr)',
+ ],
+ },
+ 'link_settings': {
+ 'ldflags': [
+ '<!@(pkg-config --libs-only-L --libs-only-other nspr)',
+ ],
+ 'libraries': [
+ '<!@(pkg-config --libs-only-l nspr)',
+ ],
+ },
+ }
+ ],
+ }],
+ ],
+}