| 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 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'libwebp_dec', | 8 'target_name': 'libwebp_dec', |
| 9 'type': 'static_library', | 9 'type': 'static_library', |
| 10 'dependencies' : [ | 10 'dependencies' : [ |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ], | 76 ], |
| 77 'dependencies' : [ | 77 'dependencies' : [ |
| 78 'libwebp_dsp_sse2', | 78 'libwebp_dsp_sse2', |
| 79 'libwebp_dsp_sse41', | 79 'libwebp_dsp_sse41', |
| 80 'libwebp_utils', | 80 'libwebp_utils', |
| 81 ], | 81 ], |
| 82 'conditions': [ | 82 'conditions': [ |
| 83 ['OS == "android"', { | 83 ['OS == "android"', { |
| 84 'dependencies': [ '../../build/android/ndk.gyp:cpu_features' ], | 84 'dependencies': [ '../../build/android/ndk.gyp:cpu_features' ], |
| 85 }], | 85 }], |
| 86 ['target_arch=="ia32" or target_arch=="x64"', { | 86 # iOS uses the same project to generate build project for both device |
| 87 # and simulator and do not use "target_arch" variable. Other platform |
| 88 # set it correctly. |
| 89 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { |
| 87 'defines': [ 'WEBP_HAVE_SSE2', 'WEBP_HAVE_SSE41' ], | 90 'defines': [ 'WEBP_HAVE_SSE2', 'WEBP_HAVE_SSE41' ], |
| 88 }], | 91 }], |
| 89 ['order_profiling != 0', { | 92 ['order_profiling != 0', { |
| 90 'target_conditions' : [ | 93 'target_conditions' : [ |
| 91 ['_toolset=="target"', { | 94 ['_toolset=="target"', { |
| 92 'cflags!': [ '-finstrument-functions' ], | 95 'cflags!': [ '-finstrument-functions' ], |
| 93 }], | 96 }], |
| 94 ], | 97 ], |
| 95 }], | 98 }], |
| 96 ], | 99 ], |
| 97 }, | 100 }, |
| 98 { | 101 { |
| 99 'target_name': 'libwebp_dsp_sse2', | 102 'target_name': 'libwebp_dsp_sse2', |
| 100 'type': 'static_library', | 103 'type': 'static_library', |
| 101 'include_dirs': ['.'], | 104 'include_dirs': ['.'], |
| 102 'sources': [ | 105 'sources': [ |
| 103 'dsp/alpha_processing_sse2.c', | 106 'dsp/alpha_processing_sse2.c', |
| 104 'dsp/argb_sse2.c', | 107 'dsp/argb_sse2.c', |
| 105 'dsp/cost_sse2.c', | 108 'dsp/cost_sse2.c', |
| 106 'dsp/dec_sse2.c', | 109 'dsp/dec_sse2.c', |
| 107 'dsp/enc_sse2.c', | 110 'dsp/enc_sse2.c', |
| 108 'dsp/filters_sse2.c', | 111 'dsp/filters_sse2.c', |
| 109 'dsp/lossless_enc_sse2.c', | 112 'dsp/lossless_enc_sse2.c', |
| 110 'dsp/lossless_sse2.c', | 113 'dsp/lossless_sse2.c', |
| 111 'dsp/rescaler_sse2.c', | 114 'dsp/rescaler_sse2.c', |
| 112 'dsp/upsampling_sse2.c', | 115 'dsp/upsampling_sse2.c', |
| 113 'dsp/yuv_sse2.c', | 116 'dsp/yuv_sse2.c', |
| 114 ], | 117 ], |
| 115 'conditions': [ | 118 'conditions': [ |
| 116 ['(target_arch=="ia32" or target_arch=="x64") and msan==0', { | 119 # iOS uses the same project to generate build project for both device |
| 120 # and simulator and do not use "target_arch" variable. Other platform |
| 121 # set it correctly. |
| 122 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64") and msan==0'
, { |
| 117 'cflags': [ '-msse2', ], | 123 'cflags': [ '-msse2', ], |
| 118 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse2' ] }, | 124 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse2' ] }, |
| 119 }], | 125 }], |
| 120 ['order_profiling != 0', { | 126 ['order_profiling != 0', { |
| 121 'target_conditions' : [ | 127 'target_conditions' : [ |
| 122 ['_toolset=="target"', { | 128 ['_toolset=="target"', { |
| 123 'cflags!': [ '-finstrument-functions' ], | 129 'cflags!': [ '-finstrument-functions' ], |
| 124 }], | 130 }], |
| 125 ], | 131 ], |
| 126 }], | 132 }], |
| (...skipping 10 matching lines...) Expand all Loading... |
| 137 'dsp/lossless_enc_sse41.c', | 143 'dsp/lossless_enc_sse41.c', |
| 138 ], | 144 ], |
| 139 'conditions': [ | 145 'conditions': [ |
| 140 ['OS=="win" and clang==1', { | 146 ['OS=="win" and clang==1', { |
| 141 # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe | 147 # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe |
| 142 # doesn't need it for intrinsics. clang-cl does need it, though. | 148 # doesn't need it for intrinsics. clang-cl does need it, though. |
| 143 'msvs_settings': { | 149 'msvs_settings': { |
| 144 'VCCLCompilerTool': { 'AdditionalOptions': [ '-msse4.1' ] }, | 150 'VCCLCompilerTool': { 'AdditionalOptions': [ '-msse4.1' ] }, |
| 145 }, | 151 }, |
| 146 }], | 152 }], |
| 147 ['(target_arch=="ia32" or target_arch=="x64") and msan==0', { | 153 # iOS uses the same project to generate build project for both device |
| 154 # and simulator and do not use "target_arch" variable. Other platform |
| 155 # set it correctly. |
| 156 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64") and msan==0'
, { |
| 148 'cflags': [ '-msse4.1', ], | 157 'cflags': [ '-msse4.1', ], |
| 149 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse4.1' ] }, | 158 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse4.1' ] }, |
| 150 }], | 159 }], |
| 151 ['order_profiling != 0', { | 160 ['order_profiling != 0', { |
| 152 'target_conditions' : [ | 161 'target_conditions' : [ |
| 153 ['_toolset=="target"', { | 162 ['_toolset=="target"', { |
| 154 'cflags!': [ '-finstrument-functions' ], | 163 'cflags!': [ '-finstrument-functions' ], |
| 155 }], | 164 }], |
| 156 ], | 165 ], |
| 157 }], | 166 }], |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 ], | 281 ], |
| 273 'direct_dependent_settings': { | 282 'direct_dependent_settings': { |
| 274 'include_dirs': ['.'], | 283 'include_dirs': ['.'], |
| 275 }, | 284 }, |
| 276 'conditions': [ | 285 'conditions': [ |
| 277 ['OS!="win"', {'product_name': 'webp'}], | 286 ['OS!="win"', {'product_name': 'webp'}], |
| 278 ], | 287 ], |
| 279 }, | 288 }, |
| 280 ], | 289 ], |
| 281 } | 290 } |
| OLD | NEW |