Created
December 10, 2012 02:14
-
-
Save pedia/4247997 to your computer and use it in GitHub Desktop.
fontconfig,freetype2 build file for gyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'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