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,
17 [ '(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)', {
23 [ 'build_neon != 0', {
25 # The NEON-specific components.
27 'target_name': 'libyuv_neon',
28 'type': 'static_library',
29 'standalone_static_library': 1,
30 # TODO(noahric): This should remove whatever mfpu is set, not
44 'direct_dependent_settings': {
52 'source/compare_neon.cc',
53 'source/rotate_neon.cc',
55 'source/scale_neon.cc',
63 'target_name': 'libyuv',
64 # Change type to 'shared_library' to build .so or .dll files.
65 'type': 'static_library',
66 # Allows libyuv.a redistributable library without external dependencies.
67 'standalone_static_library': 1,
69 [ 'OS == "ios" and target_subarch == 64', {
74 # TODO(fbarchard): Use gyp define to enable jpeg.
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', {
109 # Enable the following 3 macros to turn off assembly for specified CPU.
110 # 'LIBYUV_DISABLE_X86',
111 # 'LIBYUV_DISABLE_NEON',
112 # 'LIBYUV_DISABLE_MIPS',
113 # Enable the following macro to build libyuv as a shared library (dll).
114 # 'LIBYUV_USING_SHARED_LIBRARY',
120 'direct_dependent_settings': {
127 '<@(libyuv_sources)',
135 # indent-tabs-mode:nil
137 # vim: set expandtab tabstop=2 shiftwidth=2: