1 # Copyright 2011 The LibYuv Project Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree.
14 'use_system_libjpeg%': 0,
15 'libyuv_disable_jpeg%': 0,
18 [ '(target_arch == "armv7" or target_arch == "armv7s" or (target_arch == "arm" and arm_version >= 7)) and target_subarch != 64 and (arm_neon == 1 or arm_neon_optional == 1)', {
24 [ 'build_neon != 0', {
26 # The NEON-specific components.
28 'target_name': 'libyuv_neon',
29 'type': 'static_library',
30 'standalone_static_library': 1,
31 # TODO(noahric): This should remove whatever mfpu is set, not
45 'direct_dependent_settings': {
53 'source/compare_neon.cc',
54 'source/rotate_neon.cc',
56 'source/scale_neon.cc',
64 'target_name': 'libyuv',
65 # Change type to 'shared_library' to build .so or .dll files.
66 'type': 'static_library',
67 # Allows libyuv.a redistributable library without external dependencies.
68 'standalone_static_library': 1,
70 [ 'OS == "ios" and target_subarch == 64', {
75 [ 'OS != "ios" and libyuv_disable_jpeg != 1', {
80 # Caveat system jpeg support may not support motion jpeg
81 [ 'use_system_libjpeg == 1', {
83 '<(DEPTH)/third_party/libjpeg/libjpeg.gyp:libjpeg',
87 '<(DEPTH)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
90 [ 'use_system_libjpeg == 1', {
99 [ 'build_neon != 0', {
107 # MemorySanitizer does not support assembly code yet.
108 # http://crbug.com/344505
111 'LIBYUV_DISABLE_X86',
116 # Enable the following 3 macros to turn off assembly for specified CPU.
117 # 'LIBYUV_DISABLE_X86',
118 # 'LIBYUV_DISABLE_NEON',
119 # 'LIBYUV_DISABLE_MIPS',
120 # Enable the following macro to build libyuv as a shared library (dll).
121 # 'LIBYUV_USING_SHARED_LIBRARY',
127 'direct_dependent_settings': {
134 '<@(libyuv_sources)',
142 # indent-tabs-mode:nil
144 # vim: set expandtab tabstop=2 shiftwidth=2: