1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := third_party_libyuv_libyuv_neon_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 third_party/libyuv/source/compare_neon.cc \ 28 third_party/libyuv/source/rotate_neon.cc \ 29 third_party/libyuv/source/row_neon.cc \ 30 third_party/libyuv/source/scale_neon.cc 31 32 33 # Flags passed to both C and C++ files. 34 MY_CFLAGS_Debug := \ 35 -fstack-protector \ 36 --param=ssp-buffer-size=4 \ 37 -fno-exceptions \ 38 -fno-strict-aliasing \ 39 -Wno-unused-parameter \ 40 -Wno-missing-field-initializers \ 41 -fvisibility=hidden \ 42 -pipe \ 43 -fPIC \ 44 -Wno-unused-local-typedefs \ 45 -mfpu=neon \ 46 -Wno-format \ 47 -fno-tree-sra \ 48 -fno-partial-inlining \ 49 -fno-early-inlining \ 50 -fno-tree-copy-prop \ 51 -fno-tree-loop-optimize \ 52 -fno-move-loop-invariants \ 53 -fno-caller-saves \ 54 -Wno-psabi \ 55 -ffunction-sections \ 56 -funwind-tables \ 57 -g \ 58 -fstack-protector \ 59 -fno-short-enums \ 60 -finline-limit=64 \ 61 -Wa,--noexecstack \ 62 -U_FORTIFY_SOURCE \ 63 -Wno-extra \ 64 -Wno-ignored-qualifiers \ 65 -Wno-type-limits \ 66 -Wno-unused-but-set-variable \ 67 -Wno-address \ 68 -Wno-format-security \ 69 -Wno-return-type \ 70 -Wno-sequence-point \ 71 -Os \ 72 -g \ 73 -fdata-sections \ 74 -ffunction-sections \ 75 -fomit-frame-pointer \ 76 -funwind-tables 77 78 MY_DEFS_Debug := \ 79 '-DV8_DEPRECATION_WARNINGS' \ 80 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 81 '-D_FILE_OFFSET_BITS=64' \ 82 '-DNO_TCMALLOC' \ 83 '-DDISABLE_NACL' \ 84 '-DCHROMIUM_BUILD' \ 85 '-DUSE_LIBJPEG_TURBO=1' \ 86 '-DENABLE_WEBRTC=1' \ 87 '-DUSE_PROPRIETARY_CODECS' \ 88 '-DENABLE_BROWSER_CDMS' \ 89 '-DENABLE_CONFIGURATION_POLICY' \ 90 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 91 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 92 '-DENABLE_EGLIMAGE=1' \ 93 '-DCLD_VERSION=1' \ 94 '-DENABLE_PRINTING=1' \ 95 '-DENABLE_MANAGED_USERS=1' \ 96 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 97 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 98 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 99 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 100 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 101 '-DVIDEO_HOLE=1' \ 102 '-DUSE_OPENSSL=1' \ 103 '-DUSE_OPENSSL_CERTS=1' \ 104 '-DANDROID' \ 105 '-D__GNU_SOURCE=1' \ 106 '-DUSE_STLPORT=1' \ 107 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 108 '-DCHROME_BUILD_ID=""' \ 109 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 110 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 111 '-D_DEBUG' 112 113 114 # Include paths placed before CFLAGS/CPPFLAGS 115 LOCAL_C_INCLUDES_Debug := \ 116 $(gyp_shared_intermediate_dir) \ 117 $(LOCAL_PATH)/third_party/libyuv/include \ 118 $(LOCAL_PATH)/third_party/libyuv \ 119 $(PWD)/frameworks/wilhelm/include \ 120 $(PWD)/bionic \ 121 $(PWD)/external/stlport/stlport 122 123 124 # Flags passed to only C++ (and not C) files. 125 LOCAL_CPPFLAGS_Debug := \ 126 -fno-rtti \ 127 -fno-threadsafe-statics \ 128 -fvisibility-inlines-hidden \ 129 -Wno-deprecated \ 130 -Wno-abi \ 131 -Wno-non-virtual-dtor \ 132 -Wno-sign-promo \ 133 -Wno-non-virtual-dtor 134 135 136 LOCAL_FDO_SUPPORT_Debug := false 137 138 # Flags passed to both C and C++ files. 139 MY_CFLAGS_Release := \ 140 -fstack-protector \ 141 --param=ssp-buffer-size=4 \ 142 -fno-exceptions \ 143 -fno-strict-aliasing \ 144 -Wno-unused-parameter \ 145 -Wno-missing-field-initializers \ 146 -fvisibility=hidden \ 147 -pipe \ 148 -fPIC \ 149 -Wno-unused-local-typedefs \ 150 -mfpu=neon \ 151 -Wno-format \ 152 -fno-tree-sra \ 153 -fno-partial-inlining \ 154 -fno-early-inlining \ 155 -fno-tree-copy-prop \ 156 -fno-tree-loop-optimize \ 157 -fno-move-loop-invariants \ 158 -fno-caller-saves \ 159 -Wno-psabi \ 160 -ffunction-sections \ 161 -funwind-tables \ 162 -g \ 163 -fstack-protector \ 164 -fno-short-enums \ 165 -finline-limit=64 \ 166 -Wa,--noexecstack \ 167 -U_FORTIFY_SOURCE \ 168 -Wno-extra \ 169 -Wno-ignored-qualifiers \ 170 -Wno-type-limits \ 171 -Wno-unused-but-set-variable \ 172 -Wno-address \ 173 -Wno-format-security \ 174 -Wno-return-type \ 175 -Wno-sequence-point \ 176 -Os \ 177 -fno-ident \ 178 -fdata-sections \ 179 -ffunction-sections \ 180 -fomit-frame-pointer \ 181 -funwind-tables 182 183 MY_DEFS_Release := \ 184 '-DV8_DEPRECATION_WARNINGS' \ 185 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 186 '-D_FILE_OFFSET_BITS=64' \ 187 '-DNO_TCMALLOC' \ 188 '-DDISABLE_NACL' \ 189 '-DCHROMIUM_BUILD' \ 190 '-DUSE_LIBJPEG_TURBO=1' \ 191 '-DENABLE_WEBRTC=1' \ 192 '-DUSE_PROPRIETARY_CODECS' \ 193 '-DENABLE_BROWSER_CDMS' \ 194 '-DENABLE_CONFIGURATION_POLICY' \ 195 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 196 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 197 '-DENABLE_EGLIMAGE=1' \ 198 '-DCLD_VERSION=1' \ 199 '-DENABLE_PRINTING=1' \ 200 '-DENABLE_MANAGED_USERS=1' \ 201 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 202 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 203 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 204 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 205 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 206 '-DVIDEO_HOLE=1' \ 207 '-DUSE_OPENSSL=1' \ 208 '-DUSE_OPENSSL_CERTS=1' \ 209 '-DANDROID' \ 210 '-D__GNU_SOURCE=1' \ 211 '-DUSE_STLPORT=1' \ 212 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 213 '-DCHROME_BUILD_ID=""' \ 214 '-DNDEBUG' \ 215 '-DNVALGRIND' \ 216 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 217 218 219 # Include paths placed before CFLAGS/CPPFLAGS 220 LOCAL_C_INCLUDES_Release := \ 221 $(gyp_shared_intermediate_dir) \ 222 $(LOCAL_PATH)/third_party/libyuv/include \ 223 $(LOCAL_PATH)/third_party/libyuv \ 224 $(PWD)/frameworks/wilhelm/include \ 225 $(PWD)/bionic \ 226 $(PWD)/external/stlport/stlport 227 228 229 # Flags passed to only C++ (and not C) files. 230 LOCAL_CPPFLAGS_Release := \ 231 -fno-rtti \ 232 -fno-threadsafe-statics \ 233 -fvisibility-inlines-hidden \ 234 -Wno-deprecated \ 235 -Wno-abi \ 236 -Wno-non-virtual-dtor \ 237 -Wno-sign-promo \ 238 -Wno-non-virtual-dtor 239 240 241 LOCAL_FDO_SUPPORT_Release := false 242 243 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 244 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 245 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 246 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 247 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 248 ### Rules for final target. 249 250 LOCAL_LDFLAGS_Debug := \ 251 -Wl,-z,now \ 252 -Wl,-z,relro \ 253 -Wl,--fatal-warnings \ 254 -Wl,-z,noexecstack \ 255 -fPIC \ 256 -Wl,-z,relro \ 257 -Wl,-z,now \ 258 -fuse-ld=gold \ 259 -nostdlib \ 260 -Wl,--no-undefined \ 261 -Wl,--exclude-libs=ALL \ 262 -Wl,--icf=safe \ 263 -Wl,--warn-shared-textrel \ 264 -Wl,-O1 \ 265 -Wl,--as-needed 266 267 268 LOCAL_LDFLAGS_Release := \ 269 -Wl,-z,now \ 270 -Wl,-z,relro \ 271 -Wl,--fatal-warnings \ 272 -Wl,-z,noexecstack \ 273 -fPIC \ 274 -Wl,-z,relro \ 275 -Wl,-z,now \ 276 -fuse-ld=gold \ 277 -nostdlib \ 278 -Wl,--no-undefined \ 279 -Wl,--exclude-libs=ALL \ 280 -Wl,--icf=safe \ 281 -Wl,-O1 \ 282 -Wl,--as-needed \ 283 -Wl,--gc-sections \ 284 -Wl,--warn-shared-textrel 285 286 287 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 288 289 LOCAL_STATIC_LIBRARIES := 290 291 # Enable grouping to fix circular references 292 LOCAL_GROUP_STATIC_LIBRARIES := true 293 294 LOCAL_SHARED_LIBRARIES := \ 295 libstlport \ 296 libdl 297 298 # Add target alias to "gyp_all_modules" target. 299 .PHONY: gyp_all_modules 300 gyp_all_modules: third_party_libyuv_libyuv_neon_gyp 301 302 # Alias gyp target name. 303 .PHONY: libyuv_neon 304 libyuv_neon: third_party_libyuv_libyuv_neon_gyp 305 306 include $(BUILD_STATIC_LIBRARY) 307