OLD | NEW |
1 # Copyright 2011 The LibYuv Project Authors. All rights reserved. | 1 # Copyright 2011 The LibYuv Project Authors. All rights reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 { | 9 { |
10 'includes': [ | 10 'includes': [ |
11 'libyuv.gypi', | 11 'libyuv.gypi', |
12 ], | 12 ], |
13 # Make sure that if we are being compiled to an xcodeproj, nothing tries to | 13 # Make sure that if we are being compiled to an xcodeproj, nothing tries to |
14 # include a .pch. | 14 # include a .pch. |
15 'xcode_settings': { | 15 'xcode_settings': { |
16 'GCC_PREFIX_HEADER': '', | 16 'GCC_PREFIX_HEADER': '', |
17 'GCC_PRECOMPILE_PREFIX_HEADER': 'NO', | 17 'GCC_PRECOMPILE_PREFIX_HEADER': 'NO', |
18 }, | 18 }, |
19 'variables': { | 19 'variables': { |
20 'use_system_libjpeg%': 0, | 20 'use_system_libjpeg%': 0, |
21 'libyuv_disable_jpeg%': 0, | 21 'libyuv_disable_jpeg%': 0, |
22 # 'chromium_code' treats libyuv as internal and increases warning level. | 22 # 'chromium_code' treats libyuv as internal and increases warning level. |
23 'chromium_code': 1, | 23 'chromium_code': 1, |
24 # clang compiler default variable usable by other apps that include libyuv. | 24 # clang compiler default variable usable by other apps that include libyuv. |
25 'clang%': 0, | 25 'clang%': 0, |
26 # Link-Time Optimizations. | 26 # Link-Time Optimizations. |
27 'use_lto%': 0, | 27 'use_lto%': 0, |
28 'build_neon': 0, | 28 'build_neon': 0, |
| 29 'build_msa': 0, |
29 'conditions': [ | 30 'conditions': [ |
30 ['(target_arch == "armv7" or target_arch == "armv7s" or \ | 31 ['(target_arch == "armv7" or target_arch == "armv7s" or \ |
31 (target_arch == "arm" and arm_version >= 7) or target_arch == "arm64")\ | 32 (target_arch == "arm" and arm_version >= 7) or target_arch == "arm64")\ |
32 and (arm_neon == 1 or arm_neon_optional == 1)', { | 33 and (arm_neon == 1 or arm_neon_optional == 1)', { |
33 'build_neon': 1, | 34 'build_neon': 1, |
34 }], | 35 }], |
| 36 ['(target_arch == "mipsel" or target_arch == "mips64el")\ |
| 37 and (mips_msa == 1)', |
| 38 { |
| 39 'build_msa': 1, |
| 40 }], |
35 ], | 41 ], |
36 }, | 42 }, |
37 | 43 |
38 'targets': [ | 44 'targets': [ |
39 { | 45 { |
40 'target_name': 'libyuv', | 46 'target_name': 'libyuv', |
41 # Change type to 'shared_library' to build .so or .dll files. | 47 # Change type to 'shared_library' to build .so or .dll files. |
42 'type': 'static_library', | 48 'type': 'static_library', |
43 'variables': { | 49 'variables': { |
44 'optimize': 'max', # enable O2 and ltcg. | 50 'optimize': 'max', # enable O2 and ltcg. |
(...skipping 27 matching lines...) Expand all Loading... |
72 }], | 78 }], |
73 # arm64 does not need -mfpu=neon option as neon is not optional | 79 # arm64 does not need -mfpu=neon option as neon is not optional |
74 ['target_arch != "arm64"', { | 80 ['target_arch != "arm64"', { |
75 'cflags': [ | 81 'cflags': [ |
76 '-mfpu=neon', | 82 '-mfpu=neon', |
77 # '-marm', # arm32 not thumb | 83 # '-marm', # arm32 not thumb |
78 ], | 84 ], |
79 }], | 85 }], |
80 ], | 86 ], |
81 }], | 87 }], |
| 88 ['build_msa != 0', { |
| 89 'defines': [ |
| 90 'LIBYUV_MSA', |
| 91 ], |
| 92 }], |
82 ['OS != "ios" and libyuv_disable_jpeg != 1', { | 93 ['OS != "ios" and libyuv_disable_jpeg != 1', { |
83 'defines': [ | 94 'defines': [ |
84 'HAVE_JPEG' | 95 'HAVE_JPEG' |
85 ], | 96 ], |
86 'conditions': [ | 97 'conditions': [ |
87 # Caveat system jpeg support may not support motion jpeg | 98 # Caveat system jpeg support may not support motion jpeg |
88 [ 'use_system_libjpeg == 1', { | 99 [ 'use_system_libjpeg == 1', { |
89 'dependencies': [ | 100 'dependencies': [ |
90 '<(DEPTH)/third_party/libjpeg/libjpeg.gyp:libjpeg', | 101 '<(DEPTH)/third_party/libjpeg/libjpeg.gyp:libjpeg', |
91 ], | 102 ], |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 ], | 151 ], |
141 }, | 152 }, |
142 ], # targets. | 153 ], # targets. |
143 } | 154 } |
144 | 155 |
145 # Local Variables: | 156 # Local Variables: |
146 # tab-width:2 | 157 # tab-width:2 |
147 # indent-tabs-mode:nil | 158 # indent-tabs-mode:nil |
148 # End: | 159 # End: |
149 # vim: set expandtab tabstop=2 shiftwidth=2: | 160 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |