summaryrefslogtreecommitdiffstats
path: root/third_party/libpng/libpng.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libpng/libpng.gyp')
-rw-r--r--third_party/libpng/libpng.gyp17
1 files changed, 14 insertions, 3 deletions
diff --git a/third_party/libpng/libpng.gyp b/third_party/libpng/libpng.gyp
index 1387b18..d29d8c1 100644
--- a/third_party/libpng/libpng.gyp
+++ b/third_party/libpng/libpng.gyp
@@ -67,6 +67,17 @@
},
]
}, {
+ 'conditions': [
+ ['sysroot!=""', {
+ 'variables': {
+ 'pkg-config': '../../build/linux/pkg-config-wrapper "<(sysroot)"',
+ },
+ }, {
+ 'variables': {
+ 'pkg-config': 'pkg-config'
+ },
+ }],
+ ],
'targets': [
{
'target_name': 'libpng',
@@ -76,7 +87,7 @@
],
'direct_dependent_settings': {
'cflags': [
- '<!@(pkg-config --cflags libpng)',
+ '<!@(<(pkg-config) --cflags libpng)',
],
'defines': [
'USE_SYSTEM_LIBPNG',
@@ -84,10 +95,10 @@
},
'link_settings': {
'ldflags': [
- '<!@(pkg-config --libs-only-L --libs-only-other libpng)',
+ '<!@(<(pkg-config) --libs-only-L --libs-only-other libpng)',
],
'libraries': [
- '<!@(pkg-config --libs-only-l libpng)',
+ '<!@(<(pkg-config) --libs-only-l libpng)',
],
},
},