Merge pull request #202 from deepak1556/sysroot

allow setting pkg-config variable
This commit is contained in:
Cheng Zhao 2016-03-10 17:15:09 +09:00
commit 5652af8e61
2 changed files with 5 additions and 4 deletions

View file

@ -55,15 +55,15 @@
['OS=="linux"', {
'link_settings': {
'ldflags': [
'<!@(pkg-config --libs-only-L --libs-only-other <(linux_system_libraries))',
'<!@(<(pkg-config) --libs-only-L --libs-only-other <(linux_system_libraries))',
],
'libraries': [
'-lpthread',
'<!@(pkg-config --libs-only-l <(linux_system_libraries))',
'<!@(<(pkg-config) --libs-only-l <(linux_system_libraries))',
],
},
'cflags': [
'<!@(pkg-config --cflags <(linux_system_libraries))',
'<!@(<(pkg-config) --cflags <(linux_system_libraries))',
# Needed by using libgtk2ui:
'-Wno-deprecated-register',
'-Wno-sentinel',
@ -73,7 +73,7 @@
],
'direct_dependent_settings': {
'cflags': [
'<!@(pkg-config --cflags <(linux_system_libraries))',
'<!@(<(pkg-config) --cflags <(linux_system_libraries))',
'-Wno-deprecated-register',
'-Wno-sentinel',
],

View file

@ -4,6 +4,7 @@
],
'variables': {
'libchromiumcontent_component%': 1,
'pkg-config%': 'pkg-config',
'conditions': [
# The "libchromiumcontent_component" is defined when calling "gyp".
['libchromiumcontent_component', {