summaryrefslogtreecommitdiffstats
path: root/build/linux
diff options
context:
space:
mode:
authorelan.ruusamae@gmail.com <elan.ruusamae@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-11 20:53:42 +0000
committerelan.ruusamae@gmail.com <elan.ruusamae@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-11 20:53:42 +0000
commit94a14b19c3b3db7e8d2048c0a81e9e20a7698624 (patch)
tree041a0c86d2d0b04bfa2b9b1f9fea430f7b9d6f7c /build/linux
parent6682a857b7182a359595ecdd7199e81d43d4b591 (diff)
downloadchromium_src-94a14b19c3b3db7e8d2048c0a81e9e20a7698624.zip
chromium_src-94a14b19c3b3db7e8d2048c0a81e9e20a7698624.tar.gz
chromium_src-94a14b19c3b3db7e8d2048c0a81e9e20a7698624.tar.bz2
add system libXNVCtrl library support in linux unbundle
originally developed here: https://github.com/pld-linux/chromium-browser/commits/ea209591465e59e433cbb231270088a3d45658a2/system-libxnvctrl.patch reviewed by phajdan.jr in private mail exchange R=phajdan.jr@chromium.org BUG= Review URL: https://codereview.chromium.org/120533002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/linux')
-rw-r--r--build/linux/unbundle/libXNVCtrl.gyp35
-rwxr-xr-xbuild/linux/unbundle/replace_gyp_files.py1
2 files changed, 36 insertions, 0 deletions
diff --git a/build/linux/unbundle/libXNVCtrl.gyp b/build/linux/unbundle/libXNVCtrl.gyp
new file mode 100644
index 0000000..f076bdb
--- /dev/null
+++ b/build/linux/unbundle/libXNVCtrl.gyp
@@ -0,0 +1,35 @@
+# 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.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'libXNVCtrl',
+ 'type': 'none',
+ 'variables': {
+ 'headers_root_path': '.',
+ 'header_filenames': [
+ 'NVCtrlLib.h',
+ 'NVCtrl.h',
+ ],
+ },
+ 'includes': [
+ '../../build/shim_headers.gypi',
+ ],
+ 'direct_dependent_settings': {
+ 'cflags': [
+ '<!@(pkg-config --cflags libXNVCtrl)',
+ ],
+ },
+ 'link_settings': {
+ 'ldflags': [
+ '<!@(pkg-config --libs-only-L --libs-only-other libXNVCtrl)',
+ ],
+ 'libraries': [
+ '<!@(pkg-config --libs-only-l libXNVCtrl)',
+ ],
+ },
+ }
+ ],
+}
diff --git a/build/linux/unbundle/replace_gyp_files.py b/build/linux/unbundle/replace_gyp_files.py
index c0fcc49..28ab14f 100755
--- a/build/linux/unbundle/replace_gyp_files.py
+++ b/build/linux/unbundle/replace_gyp_files.py
@@ -29,6 +29,7 @@ REPLACEMENTS = {
'use_system_libvpx': 'third_party/libvpx/libvpx.gyp',
'use_system_libwebp': 'third_party/libwebp/libwebp.gyp',
'use_system_libxml': 'third_party/libxml/libxml.gyp',
+ 'use_system_libxnvctrl' : 'third_party/libXNVCtrl/libXNVCtrl.gyp',
'use_system_libxslt': 'third_party/libxslt/libxslt.gyp',
'use_system_openssl': 'third_party/openssl/openssl.gyp',
'use_system_opus': 'third_party/opus/opus.gyp',