allow setting pkg-config variable

This commit is contained in:
Robo 2016-03-09 19:43:33 +05:30
parent f70ece1669
commit 3983566fa3
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', {