| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'xcode_settings': { | 6 'xcode_settings': { |
| 7 'SYMROOT': '<(DEPTH)/xcodebuild', | 7 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 8 }, | 8 }, |
| 9 'variables': { | 9 'variables': { |
| 10 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/externals/li
bjpeg-turbo', | 10 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/externals/li
bjpeg-turbo', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 ], | 25 ], |
| 26 'copies' : [{ | 26 'copies' : [{ |
| 27 'destination': '<(PRODUCT_DIR)', | 27 'destination': '<(PRODUCT_DIR)', |
| 28 'files': [ '../third_party/externals/yasm/binaries/win/yasm.exe' ], | 28 'files': [ '../third_party/externals/yasm/binaries/win/yasm.exe' ], |
| 29 }], | 29 }], |
| 30 }, | 30 }, |
| 31 { | 31 { |
| 32 'target_name': 'libjpeg-turbo', | 32 'target_name': 'libjpeg-turbo', |
| 33 'type': 'static_library', | 33 'type': 'static_library', |
| 34 'include_dirs': [ | 34 'include_dirs': [ |
| 35 '../third_party/externals/libjpeg-turbo/', | 35 '../turbo/libjpeg-turbo/', |
| 36 ], | 36 ], |
| 37 'defines': [ | 37 'defines': [ |
| 38 'WITH_SIMD', | 38 'WITH_SIMD', |
| 39 'MOTION_JPEG_SUPPORTED', | 39 'MOTION_JPEG_SUPPORTED', |
| 40 'NO_GETENV', | 40 'NO_GETENV', |
| 41 ], | 41 ], |
| 42 'cflags': [ | 42 'cflags': [ |
| 43 '-w', # supresses warnings | 43 '-w', # supresses warnings |
| 44 ], | 44 ], |
| 45 'msvs_settings': { | 45 'msvs_settings': { |
| 46 'VCCLCompilerTool': { | 46 'VCCLCompilerTool': { |
| 47 'WarningLevel': '0', | 47 'WarningLevel': '0', |
| 48 }, | 48 }, |
| 49 }, | 49 }, |
| 50 'xcode_settings': { | 50 'xcode_settings': { |
| 51 'WARNING_CFLAGS': [ | 51 'WARNING_CFLAGS': [ |
| 52 '-w', | 52 '-w', |
| 53 ], | 53 ], |
| 54 }, | 54 }, |
| 55 'sources': [ | 55 'sources': [ |
| 56 '../third_party/externals/libjpeg-turbo/jcapimin.c', | 56 '../turbo/libjpeg-turbo/jcapimin.c', |
| 57 '../third_party/externals/libjpeg-turbo/jcapistd.c', | 57 '../turbo/libjpeg-turbo/jcapistd.c', |
| 58 '../third_party/externals/libjpeg-turbo/jccoefct.c', | 58 '../turbo/libjpeg-turbo/jccoefct.c', |
| 59 '../third_party/externals/libjpeg-turbo/jccolor.c', | 59 '../turbo/libjpeg-turbo/jccolor.c', |
| 60 '../third_party/externals/libjpeg-turbo/jcdctmgr.c', | 60 '../turbo/libjpeg-turbo/jcdctmgr.c', |
| 61 '../third_party/externals/libjpeg-turbo/jchuff.c', | 61 '../turbo/libjpeg-turbo/jchuff.c', |
| 62 '../third_party/externals/libjpeg-turbo/jchuff.h', | 62 '../turbo/libjpeg-turbo/jchuff.h', |
| 63 '../third_party/externals/libjpeg-turbo/jcinit.c', | 63 '../turbo/libjpeg-turbo/jcinit.c', |
| 64 '../third_party/externals/libjpeg-turbo/jcmainct.c', | 64 '../turbo/libjpeg-turbo/jcmainct.c', |
| 65 '../third_party/externals/libjpeg-turbo/jcmarker.c', | 65 '../turbo/libjpeg-turbo/jcmarker.c', |
| 66 '../third_party/externals/libjpeg-turbo/jcmaster.c', | 66 '../turbo/libjpeg-turbo/jcmaster.c', |
| 67 '../third_party/externals/libjpeg-turbo/jcomapi.c', | 67 '../turbo/libjpeg-turbo/jcomapi.c', |
| 68 '../third_party/externals/libjpeg-turbo/jconfig.h', | 68 '../turbo/libjpeg-turbo/jconfig.h', |
| 69 '../third_party/externals/libjpeg-turbo/jcparam.c', | 69 '../turbo/libjpeg-turbo/jcparam.c', |
| 70 '../third_party/externals/libjpeg-turbo/jcphuff.c', | 70 '../turbo/libjpeg-turbo/jcphuff.c', |
| 71 '../third_party/externals/libjpeg-turbo/jcprepct.c', | 71 '../turbo/libjpeg-turbo/jcprepct.c', |
| 72 '../third_party/externals/libjpeg-turbo/jcsample.c', | 72 '../turbo/libjpeg-turbo/jcsample.c', |
| 73 '../third_party/externals/libjpeg-turbo/jdapimin.c', | 73 '../turbo/libjpeg-turbo/jdapimin.c', |
| 74 '../third_party/externals/libjpeg-turbo/jdapistd.c', | 74 '../turbo/libjpeg-turbo/jdapistd.c', |
| 75 '../third_party/externals/libjpeg-turbo/jdcoefct.c', | 75 '../turbo/libjpeg-turbo/jdcoefct.c', |
| 76 '../third_party/externals/libjpeg-turbo/jdcolor.c', | 76 '../turbo/libjpeg-turbo/jdcolor.c', |
| 77 '../third_party/externals/libjpeg-turbo/jdct.h', | 77 '../turbo/libjpeg-turbo/jdct.h', |
| 78 '../third_party/externals/libjpeg-turbo/jddctmgr.c', | 78 '../turbo/libjpeg-turbo/jddctmgr.c', |
| 79 '../third_party/externals/libjpeg-turbo/jdhuff.c', | 79 '../turbo/libjpeg-turbo/jdhuff.c', |
| 80 '../third_party/externals/libjpeg-turbo/jdhuff.h', | 80 '../turbo/libjpeg-turbo/jdhuff.h', |
| 81 '../third_party/externals/libjpeg-turbo/jdinput.c', | 81 '../turbo/libjpeg-turbo/jdinput.c', |
| 82 '../third_party/externals/libjpeg-turbo/jdmainct.c', | 82 '../turbo/libjpeg-turbo/jdmainct.c', |
| 83 '../third_party/externals/libjpeg-turbo/jdmarker.c', | 83 '../turbo/libjpeg-turbo/jdmarker.c', |
| 84 '../third_party/externals/libjpeg-turbo/jdmaster.c', | 84 '../turbo/libjpeg-turbo/jdmaster.c', |
| 85 '../third_party/externals/libjpeg-turbo/jdmerge.c', | 85 '../turbo/libjpeg-turbo/jdmerge.c', |
| 86 '../third_party/externals/libjpeg-turbo/jdphuff.c', | 86 '../turbo/libjpeg-turbo/jdphuff.c', |
| 87 '../third_party/externals/libjpeg-turbo/jdpostct.c', | 87 '../turbo/libjpeg-turbo/jdpostct.c', |
| 88 '../third_party/externals/libjpeg-turbo/jdsample.c', | 88 '../turbo/libjpeg-turbo/jdsample.c', |
| 89 '../third_party/externals/libjpeg-turbo/jerror.c', | 89 '../turbo/libjpeg-turbo/jerror.c', |
| 90 '../third_party/externals/libjpeg-turbo/jerror.h', | 90 '../turbo/libjpeg-turbo/jerror.h', |
| 91 '../third_party/externals/libjpeg-turbo/jfdctflt.c', | 91 '../turbo/libjpeg-turbo/jfdctflt.c', |
| 92 '../third_party/externals/libjpeg-turbo/jfdctfst.c', | 92 '../turbo/libjpeg-turbo/jfdctfst.c', |
| 93 '../third_party/externals/libjpeg-turbo/jfdctint.c', | 93 '../turbo/libjpeg-turbo/jfdctint.c', |
| 94 '../third_party/externals/libjpeg-turbo/jidctflt.c', | 94 '../turbo/libjpeg-turbo/jidctflt.c', |
| 95 '../third_party/externals/libjpeg-turbo/jidctfst.c', | 95 '../turbo/libjpeg-turbo/jidctfst.c', |
| 96 '../third_party/externals/libjpeg-turbo/jidctint.c', | 96 '../turbo/libjpeg-turbo/jidctint.c', |
| 97 '../third_party/externals/libjpeg-turbo/jidctred.c', | 97 '../turbo/libjpeg-turbo/jidctred.c', |
| 98 '../third_party/externals/libjpeg-turbo/jinclude.h', | 98 '../turbo/libjpeg-turbo/jinclude.h', |
| 99 '../third_party/externals/libjpeg-turbo/jmemmgr.c', | 99 '../turbo/libjpeg-turbo/jmemmgr.c', |
| 100 '../third_party/externals/libjpeg-turbo/jmemnobs.c', | 100 '../turbo/libjpeg-turbo/jmemnobs.c', |
| 101 '../third_party/externals/libjpeg-turbo/jmemsys.h', | 101 '../turbo/libjpeg-turbo/jmemsys.h', |
| 102 '../third_party/externals/libjpeg-turbo/jmorecfg.h', | 102 '../turbo/libjpeg-turbo/jmorecfg.h', |
| 103 '../third_party/externals/libjpeg-turbo/jpegint.h', | 103 '../turbo/libjpeg-turbo/jpegint.h', |
| 104 '../third_party/externals/libjpeg-turbo/jpeglib.h', | 104 '../turbo/libjpeg-turbo/jpeglib.h', |
| 105 '../third_party/externals/libjpeg-turbo/jquant1.c', | 105 '../turbo/libjpeg-turbo/jquant1.c', |
| 106 '../third_party/externals/libjpeg-turbo/jquant2.c', | 106 '../turbo/libjpeg-turbo/jquant2.c', |
| 107 '../third_party/externals/libjpeg-turbo/jutils.c', | 107 '../turbo/libjpeg-turbo/jutils.c', |
| 108 '../third_party/externals/libjpeg-turbo/jversion.h', | 108 '../turbo/libjpeg-turbo/jversion.h', |
| 109 ], | 109 ], |
| 110 'direct_dependent_settings': { | 110 'direct_dependent_settings': { |
| 111 'include_dirs': [ | 111 'include_dirs': [ |
| 112 '../third_party/externals/libjpeg-turbo/', | 112 '../turbo/libjpeg-turbo/', |
| 113 ], | 113 ], |
| 114 }, | 114 }, |
| 115 'msvs_disabled_warnings': [4018, 4101], | 115 'msvs_disabled_warnings': [4018, 4101], |
| 116 # VS2010 does not correctly incrementally link obj files generated | 116 # VS2010 does not correctly incrementally link obj files generated |
| 117 # from asm files. This flag disables UseLibraryDependencyInputs to | 117 # from asm files. This flag disables UseLibraryDependencyInputs to |
| 118 # avoid this problem. | 118 # avoid this problem. |
| 119 'msvs_2010_disable_uldi_when_referenced': 1, | 119 'msvs_2010_disable_uldi_when_referenced': 1, |
| 120 | 120 |
| 121 # Add target-specific source files. | 121 # Add target-specific source files. |
| 122 'conditions': [ | 122 'conditions': [ |
| 123 # TODO (msarett): Is it possible to enable cross compiling for Android o
n other platforms? | 123 # TODO (msarett): Is it possible to enable cross compiling for Android o
n other platforms? |
| 124 [ 'skia_os == "android" and host_os != "linux" and "x86" in skia_arch_ty
pe', { | 124 [ 'skia_os == "android" and host_os != "linux" and "x86" in skia_arch_ty
pe', { |
| 125 'sources': [ | 125 'sources': [ |
| 126 '../third_party/externals/libjpeg-turbo/jsimd_none.c', | 126 '../turbo/libjpeg-turbo/jsimd_none.c', |
| 127 ], | 127 ], |
| 128 }], | 128 }], |
| 129 [ 'skia_arch_type == "x86" and (skia_os != "android" or host_os == "linu
x")', { | 129 [ 'skia_arch_type == "x86" and (skia_os != "android" or host_os == "linu
x")', { |
| 130 'sources': [ | 130 'sources': [ |
| 131 '../third_party/externals/libjpeg-turbo/simd/jsimd_i386.c', | 131 '../turbo/libjpeg-turbo/simd/jsimd_i386.c', |
| 132 '../third_party/externals/libjpeg-turbo/simd/jccolor-mmx.asm', | 132 '../turbo/libjpeg-turbo/simd/jccolor-mmx.asm', |
| 133 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2.asm', | 133 '../turbo/libjpeg-turbo/simd/jccolor-sse2.asm', |
| 134 '../third_party/externals/libjpeg-turbo/simd/jcgray-mmx.asm', | 134 '../turbo/libjpeg-turbo/simd/jcgray-mmx.asm', |
| 135 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2.asm', | 135 '../turbo/libjpeg-turbo/simd/jcgray-sse2.asm', |
| 136 '../third_party/externals/libjpeg-turbo/simd/jcsample-mmx.asm', | 136 '../turbo/libjpeg-turbo/simd/jcsample-mmx.asm', |
| 137 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2.asm', | 137 '../turbo/libjpeg-turbo/simd/jcsample-sse2.asm', |
| 138 '../third_party/externals/libjpeg-turbo/simd/jdcolor-mmx.asm', | 138 '../turbo/libjpeg-turbo/simd/jdcolor-mmx.asm', |
| 139 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2.asm', | 139 '../turbo/libjpeg-turbo/simd/jdcolor-sse2.asm', |
| 140 '../third_party/externals/libjpeg-turbo/simd/jdmerge-mmx.asm', | 140 '../turbo/libjpeg-turbo/simd/jdmerge-mmx.asm', |
| 141 '../third_party/externals/libjpeg-turbo/simd/jdmerge-sse2.asm', | 141 '../turbo/libjpeg-turbo/simd/jdmerge-sse2.asm', |
| 142 '../third_party/externals/libjpeg-turbo/simd/jdsample-mmx.asm', | 142 '../turbo/libjpeg-turbo/simd/jdsample-mmx.asm', |
| 143 '../third_party/externals/libjpeg-turbo/simd/jdsample-sse2.asm', | 143 '../turbo/libjpeg-turbo/simd/jdsample-sse2.asm', |
| 144 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-3dn.asm', | 144 '../turbo/libjpeg-turbo/simd/jfdctflt-3dn.asm', |
| 145 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-sse.asm', | 145 '../turbo/libjpeg-turbo/simd/jfdctflt-sse.asm', |
| 146 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-mmx.asm', | 146 '../turbo/libjpeg-turbo/simd/jfdctfst-mmx.asm', |
| 147 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-sse2.asm', | 147 '../turbo/libjpeg-turbo/simd/jfdctfst-sse2.asm', |
| 148 '../third_party/externals/libjpeg-turbo/simd/jfdctint-mmx.asm', | 148 '../turbo/libjpeg-turbo/simd/jfdctint-mmx.asm', |
| 149 '../third_party/externals/libjpeg-turbo/simd/jfdctint-sse2.asm', | 149 '../turbo/libjpeg-turbo/simd/jfdctint-sse2.asm', |
| 150 '../third_party/externals/libjpeg-turbo/simd/jidctflt-3dn.asm', | 150 '../turbo/libjpeg-turbo/simd/jidctflt-3dn.asm', |
| 151 '../third_party/externals/libjpeg-turbo/simd/jidctflt-sse2.asm', | 151 '../turbo/libjpeg-turbo/simd/jidctflt-sse2.asm', |
| 152 '../third_party/externals/libjpeg-turbo/simd/jidctflt-sse.asm', | 152 '../turbo/libjpeg-turbo/simd/jidctflt-sse.asm', |
| 153 '../third_party/externals/libjpeg-turbo/simd/jidctfst-mmx.asm', | 153 '../turbo/libjpeg-turbo/simd/jidctfst-mmx.asm', |
| 154 '../third_party/externals/libjpeg-turbo/simd/jidctfst-sse2.asm', | 154 '../turbo/libjpeg-turbo/simd/jidctfst-sse2.asm', |
| 155 '../third_party/externals/libjpeg-turbo/simd/jidctint-mmx.asm', | 155 '../turbo/libjpeg-turbo/simd/jidctint-mmx.asm', |
| 156 '../third_party/externals/libjpeg-turbo/simd/jidctint-sse2.asm', | 156 '../turbo/libjpeg-turbo/simd/jidctint-sse2.asm', |
| 157 '../third_party/externals/libjpeg-turbo/simd/jidctred-mmx.asm', | 157 '../turbo/libjpeg-turbo/simd/jidctred-mmx.asm', |
| 158 '../third_party/externals/libjpeg-turbo/simd/jidctred-sse2.asm', | 158 '../turbo/libjpeg-turbo/simd/jidctred-sse2.asm', |
| 159 '../third_party/externals/libjpeg-turbo/simd/jquant-3dn.asm', | 159 '../turbo/libjpeg-turbo/simd/jquant-3dn.asm', |
| 160 '../third_party/externals/libjpeg-turbo/simd/jquantf-sse2.asm', | 160 '../turbo/libjpeg-turbo/simd/jquantf-sse2.asm', |
| 161 '../third_party/externals/libjpeg-turbo/simd/jquanti-sse2.asm', | 161 '../turbo/libjpeg-turbo/simd/jquanti-sse2.asm', |
| 162 '../third_party/externals/libjpeg-turbo/simd/jquant-mmx.asm', | 162 '../turbo/libjpeg-turbo/simd/jquant-mmx.asm', |
| 163 '../third_party/externals/libjpeg-turbo/simd/jquant-sse.asm', | 163 '../turbo/libjpeg-turbo/simd/jquant-sse.asm', |
| 164 '../third_party/externals/libjpeg-turbo/simd/jsimdcpu.asm', | 164 '../turbo/libjpeg-turbo/simd/jsimdcpu.asm', |
| 165 ], | 165 ], |
| 166 }], | 166 }], |
| 167 [ 'skia_arch_type == "x86_64" and (skia_os != "android" or host_os == "l
inux")', { | 167 [ 'skia_arch_type == "x86_64" and (skia_os != "android" or host_os == "l
inux")', { |
| 168 'sources': [ | 168 'sources': [ |
| 169 '../third_party/externals/libjpeg-turbo/simd/jsimd_x86_64.c', | 169 '../turbo/libjpeg-turbo/simd/jsimd_x86_64.c', |
| 170 '../third_party/externals/libjpeg-turbo/simd/jccolor-sse2-64.asm', | 170 #'../turbo/libjpeg-turbo/jsimd_none.c', |
| 171 '../third_party/externals/libjpeg-turbo/simd/jcgray-sse2-64.asm', | 171 '../turbo/libjpeg-turbo/simd/jccolor-sse2-64.asm', |
| 172 '../third_party/externals/libjpeg-turbo/simd/jcsample-sse2-64.asm', | 172 '../turbo/libjpeg-turbo/simd/jcgray-sse2-64.asm', |
| 173 '../third_party/externals/libjpeg-turbo/simd/jdcolor-sse2-64.asm', | 173 '../turbo/libjpeg-turbo/simd/jcsample-sse2-64.asm', |
| 174 '../third_party/externals/libjpeg-turbo/simd/jdmerge-sse2-64.asm', | 174 '../turbo/libjpeg-turbo/simd/jdcolor-sse2-64.asm', |
| 175 '../third_party/externals/libjpeg-turbo/simd/jdsample-sse2-64.asm', | 175 '../turbo/libjpeg-turbo/simd/jdmerge-sse2-64.asm', |
| 176 '../third_party/externals/libjpeg-turbo/simd/jfdctflt-sse-64.asm', | 176 '../turbo/libjpeg-turbo/simd/jdsample-sse2-64.asm', |
| 177 '../third_party/externals/libjpeg-turbo/simd/jfdctfst-sse2-64.asm', | 177 '../turbo/libjpeg-turbo/simd/jfdctflt-sse-64.asm', |
| 178 '../third_party/externals/libjpeg-turbo/simd/jfdctint-sse2-64.asm', | 178 '../turbo/libjpeg-turbo/simd/jfdctfst-sse2-64.asm', |
| 179 '../third_party/externals/libjpeg-turbo/simd/jidctflt-sse2-64.asm', | 179 '../turbo/libjpeg-turbo/simd/jfdctint-sse2-64.asm', |
| 180 '../third_party/externals/libjpeg-turbo/simd/jidctfst-sse2-64.asm', | 180 '../turbo/libjpeg-turbo/simd/jidctflt-sse2-64.asm', |
| 181 '../third_party/externals/libjpeg-turbo/simd/jidctint-sse2-64.asm', | 181 '../turbo/libjpeg-turbo/simd/jidctfst-sse2-64.asm', |
| 182 '../third_party/externals/libjpeg-turbo/simd/jidctred-sse2-64.asm', | 182 '../turbo/libjpeg-turbo/simd/jidctint-sse2-64.asm', |
| 183 '../third_party/externals/libjpeg-turbo/simd/jquantf-sse2-64.asm', | 183 '../turbo/libjpeg-turbo/simd/jidctred-sse2-64.asm', |
| 184 '../third_party/externals/libjpeg-turbo/simd/jquanti-sse2-64.asm', | 184 '../turbo/libjpeg-turbo/simd/jquantf-sse2-64.asm', |
| 185 '../turbo/libjpeg-turbo/simd/jquanti-sse2-64.asm', |
| 185 ], | 186 ], |
| 186 }], | 187 }], |
| 187 [ 'skia_arch_type == "arm64"', { | 188 [ 'skia_arch_type == "arm64"', { |
| 188 'sources': [ | 189 'sources': [ |
| 189 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm64.c', | 190 '../turbo/libjpeg-turbo/simd/jsimd_arm64.c', |
| 190 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm64_neon.S', | 191 '../turbo/libjpeg-turbo/simd/jsimd_arm64_neon.S', |
| 191 ], | 192 ], |
| 192 }], | 193 }], |
| 193 [ 'skia_arch_type == "arm"', { | 194 [ 'skia_arch_type == "arm"', { |
| 194 'conditions': [ | 195 'conditions': [ |
| 195 [ 'arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)',
{ | 196 [ 'arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)',
{ |
| 196 'sources': [ | 197 'sources': [ |
| 197 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm.c', | 198 '../turbo/libjpeg-turbo/simd/jsimd_arm.c', |
| 198 '../third_party/externals/libjpeg-turbo/simd/jsimd_arm_neon.S', | 199 '../turbo/libjpeg-turbo/simd/jsimd_arm_neon.S', |
| 199 ], | 200 ], |
| 200 }, { | 201 }, { |
| 201 'sources': [ | 202 'sources': [ |
| 202 '../third_party/externals/libjpeg-turbo/jsimd_none.c', | 203 '../turbo/libjpeg-turbo/jsimd_none.c', |
| 203 ], | 204 ], |
| 204 }], | 205 }], |
| 205 ], | 206 ], |
| 206 }], | 207 }], |
| 207 # mips simd is supported in later versions of libjpeg-turbo. If we | 208 # mips simd is supported in later versions of libjpeg-turbo. If we |
| 208 # choose to update our copy of libjpeg-turbo we can enable mips simd. | 209 # choose to update our copy of libjpeg-turbo we can enable mips simd. |
| 209 [ '"mips" in skia_arch_type', { | 210 [ '"mips" in skia_arch_type', { |
| 210 'sources': [ | 211 'sources': [ |
| 211 '../third_party/externals/libjpeg-turbo/jsimd_none.c', | 212 '../turbo/libjpeg-turbo/jsimd_none.c', |
| 212 ], | 213 ], |
| 213 }], | 214 }], |
| 214 | 215 |
| 215 # Build rules for an asm file. | 216 # Build rules for an asm file. |
| 216 # On Windows, we use the precompiled yasm binary. | 217 # On Windows, we use the precompiled yasm binary. |
| 217 # On Linux, we build our patched yasm and use it. | 218 # On Linux, we build our patched yasm and use it. |
| 218 # On Mac, we always build our patched yasm and use it. | 219 # On Mac, we always build our patched yasm and use it. |
| 219 [ 'skia_os == "win"', { | 220 [ 'skia_os == "win"', { |
| 220 'dependencies': [ | 221 'dependencies': [ |
| 221 'yasm-win', | 222 'yasm-win', |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 'inputs': [], | 328 'inputs': [], |
| 328 'outputs': [ | 329 'outputs': [ |
| 329 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)', | 330 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffix)', |
| 330 ], | 331 ], |
| 331 'action': [ | 332 'action': [ |
| 332 '<(yasm_path)', | 333 '<(yasm_path)', |
| 333 '<(yasm_format)', | 334 '<(yasm_format)', |
| 334 '<@(yasm_flags)', | 335 '<@(yasm_flags)', |
| 335 '-DRGBX_FILLER_0XFF', | 336 '-DRGBX_FILLER_0XFF', |
| 336 '-DSTRICT_MEMORY_ACCESS', | 337 '-DSTRICT_MEMORY_ACCESS', |
| 337 '-Isimd/', | 338 '-I../turbo/libjpeg-turbo/simd/', |
| 338 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffi
x)', | 339 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).<(object_suffi
x)', |
| 339 '<(RULE_INPUT_PATH)', | 340 '<(RULE_INPUT_PATH)', |
| 340 ], | 341 ], |
| 341 'process_outputs_as_sources': 1, | 342 'process_outputs_as_sources': 1, |
| 342 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)', | 343 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)', |
| 343 }], | 344 }], |
| 344 ] | 345 ] |
| 345 }, | 346 }, |
| 346 ], | 347 ], |
| 347 }, | 348 }, |
| 348 ], | 349 ], |
| 349 } | 350 } |
| OLD | NEW |