2012-10-10 19:45:51 +00:00
|
|
|
# The minimal set of static libraries for basic Skia functionality.
|
2013-06-03 12:10:19 +00:00
|
|
|
|
2012-10-10 19:45:51 +00:00
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'component_libs': [
|
|
|
|
'core.gyp:core',
|
2013-06-03 12:10:19 +00:00
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
2012-10-10 19:45:51 +00:00
|
|
|
'opts.gyp:opts',
|
|
|
|
'ports.gyp:ports',
|
2013-06-03 12:10:19 +00:00
|
|
|
'sfnt.gyp:sfnt',
|
2012-10-10 19:45:51 +00:00
|
|
|
'utils.gyp:utils',
|
|
|
|
],
|
|
|
|
'conditions': [
|
2013-01-18 15:21:54 +00:00
|
|
|
[ 'skia_arch_type == "x86" and skia_os != "android"', {
|
2012-10-10 19:45:51 +00:00
|
|
|
'component_libs': [
|
|
|
|
'opts.gyp:opts_ssse3',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'arm_neon == 1', {
|
|
|
|
'component_libs': [
|
|
|
|
'opts.gyp:opts_neon',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_gpu', {
|
|
|
|
'component_libs': [
|
|
|
|
'gpu.gyp:gr',
|
|
|
|
'gpu.gyp:skgr',
|
|
|
|
],
|
|
|
|
}],
|
2013-03-01 20:28:57 +00:00
|
|
|
[ 'skia_os == "nacl"', {
|
|
|
|
'component_libs': [
|
|
|
|
'freetype.gyp:freetype',
|
|
|
|
],
|
|
|
|
}],
|
2012-10-10 19:45:51 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'targets': [
|
|
|
|
{
|
2013-06-03 12:10:19 +00:00
|
|
|
'target_name': 'skia_lib',
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_shared_lib', {
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_os == "android"', {
|
|
|
|
# The name skia will confuse the linker on android into using the system's libskia.so
|
|
|
|
# instead of the one packaged with the apk. We simply choose a different name to fix
|
|
|
|
# this.
|
|
|
|
'product_name': 'skia_android',
|
|
|
|
}, {
|
|
|
|
'product_name': 'skia',
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'type': 'shared_library',
|
|
|
|
}, {
|
|
|
|
'type': 'none',
|
|
|
|
}],
|
|
|
|
],
|
2012-10-10 19:45:51 +00:00
|
|
|
'dependencies': [
|
|
|
|
'<@(component_libs)',
|
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'<@(component_libs)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|