[ 'skia_arch_type == "arm64"', {
'sources': [ '<@(arm64_sources)' ],
+ 'dependencies': [ 'opts_crc32' ]
}],
[ 'skia_android_framework', {
],
},
{
+ 'target_name': 'opts_crc32',
+ 'product_name': 'skia_opts_crc32',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'dependencies': [ 'core.gyp:*' ],
+ 'include_dirs': [
+ '../include/private',
+ '../src/core',
+ '../src/utils',
+ ],
+ 'sources': [ '<@(crc32_sources)' ],
+ 'conditions': [
+ [ 'not skia_android_framework', { 'cflags': [ '-march=armv8-a+crc' ] }],
+ ],
+ },
+ {
'target_name': 'opts_ssse3',
'product_name': 'skia_opts_ssse3',
'type': 'static_library',
'<(skia_src_path)/opts/SkBlitRow_opts_arm.cpp',
'<(skia_src_path)/opts/SkBlitRow_opts_arm_neon.cpp',
],
+ 'crc32_sources': [
+ '<(skia_src_path)/core/SkForceCPlusPlusLinking.cpp',
+ ],
'mips_dsp_sources': [
'<(skia_src_path)/opts/SkBitmapProcState_opts_mips_dsp.cpp',