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',
|
2015-03-03 16:59:20 +00:00
|
|
|
'codec.gyp:codec',
|
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': [
|
2015-02-12 18:48:25 +00:00
|
|
|
[ '"x86" in skia_arch_type and skia_os != "android"', {
|
2012-10-10 19:45:51 +00:00
|
|
|
'component_libs': [
|
|
|
|
'opts.gyp:opts_ssse3',
|
2015-01-27 02:55:58 +00:00
|
|
|
'opts.gyp:opts_sse41',
|
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)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|