Skip to content

Instantly share code, notes, and snippets.

@pedia
Created December 10, 2012 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedia/4247997 to your computer and use it in GitHub Desktop.
Save pedia/4247997 to your computer and use it in GitHub Desktop.
fontconfig,freetype2 build file for gyp
{
'variables': {
'pkg-config': 'pkg-config'
},
'targets': [
{
'target_name': 'freetype2',
'type': 'none',
'conditions': [
['_toolset=="target"', {
'direct_dependent_settings': {
'cflags': [
'<!@(<(pkg-config) --cflags freetype2)',
],
'xcode_settings': {
'OTHER_CFLAGS': [
'<!@(<(pkg-config) --cflags freetype2)',
],
'OTHER_CPLUSPLUSFLAGS': [
'<!@(<(pkg-config) --cflags freetype2)',
],
'OTHER_LDFLAGS': [
'<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)',
],
},
},
'link_settings': {
'ldflags': [
'<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)',
],
'libraries': [
'<!@(<(pkg-config) --libs-only-l freetype2)',
],
},
}],
],
},
{
'target_name': 'fontconfig',
'type': 'none',
#'conditions': [
# ['_toolset=="target"', {
'direct_dependent_settings': {
'cflags': [
'<!@(<(pkg-config) --cflags fontconfig)',
],
'xcode_settings': {
'OTHER_CFLAGS': [
'<!@(<(pkg-config) --cflags fontconfig)',
],
'OTHER_CPLUSPLUSFLAGS': [
'<!@(<(pkg-config) --cflags fontconfig)',
],
'OTHER_LDFLAGS': [
'<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)',
],
},
},
'link_settings': {
'ldflags': [
'<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)',
],
'libraries': [
'<!@(<(pkg-config) --libs-only-l fontconfig)',
],
},
# }],
#],
},
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment