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',
|
2014-06-27 15:03:17 +00:00
|
|
|
'opts.gyp:opts_sse4',
|
2012-10-10 19:45:51 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'arm_neon == 1', {
|
|
|
|
'component_libs': [
|
|
|
|
'opts.gyp:opts_neon',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_gpu', {
|
|
|
|
'component_libs': [
|
2013-06-18 14:43:53 +00:00
|
|
|
'gpu.gyp:skgpu',
|
2012-10-10 19:45:51 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'targets': [
|
|
|
|
{
|
2013-06-03 12:10:19 +00:00
|
|
|
'target_name': 'skia_lib',
|
2014-08-04 19:51:19 +00:00
|
|
|
'sources': [ '<(skia_src_path)/core/SkForceCPlusPlusLinking.cpp', ],
|
2013-06-03 12:10:19 +00:00
|
|
|
'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)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|