# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'ZLIB_ROOT': '.', 'use_system_zlib%': 0, 'arm_fpu%': '', 'llvm_version%': '0.0', }, 'conditions': [ ['use_system_zlib==0', { 'targets': [ { 'target_name': 'zlib_adler32_simd', 'type': 'static_library', 'conditions': [ ['target_arch in "ia32 x64" and OS!="ios"', { 'defines': [ 'ADLER32_SIMD_SSSE3' ], 'conditions': [ ['OS=="win"', { 'defines': [ 'X86_WINDOWS' ], },{ 'defines': [ 'X86_NOT_WINDOWS' ], }], ['OS!="win" or llvm_version!="0.0"', { 'cflags': [ '-mssse3' ], 'xcode_settings': { 'OTHER_CFLAGS': [ '-mssse3' ], }, }], ], }], ['arm_fpu=="neon"', { 'defines': [ 'ADLER32_SIMD_NEON' ], }], ], 'include_dirs': [ '<(ZLIB_ROOT)' ], 'direct_dependent_settings': { 'conditions': [ ['target_arch in "ia32 x64" and OS!="ios"', { 'defines': [ 'ADLER32_SIMD_SSSE3' ], 'conditions': [ ['OS=="win"', { 'defines': [ 'X86_WINDOWS' ], },{ 'defines': [ 'X86_NOT_WINDOWS' ], }], ], }], ['arm_fpu=="neon"', { 'defines': [ 'ADLER32_SIMD_NEON' ], }], ], 'include_dirs': [ '<(ZLIB_ROOT)' ], }, 'sources': [ '