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 := media_media_sse2_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 media/base/simd/convert_rgb_to_yuv_sse2.cc \ 27 media/base/simd/convert_rgb_to_yuv_ssse3.cc \ 28 media/base/simd/filter_yuv_sse2.cc 29 30 31 # Flags passed to both C and C++ files. 32 MY_CFLAGS_Debug := \ 33 --param=ssp-buffer-size=4 \ 34 -Werror \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wall \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -msse2 \ 44 -m32 \ 45 -mmmx \ 46 -march=pentium4 \ 47 -msse2 \ 48 -mfpmath=sse \ 49 -fuse-ld=gold \ 50 -ffunction-sections \ 51 -funwind-tables \ 52 -g \ 53 -fno-short-enums \ 54 -finline-limit=64 \ 55 -Wa,--noexecstack \ 56 -U_FORTIFY_SOURCE \ 57 -Wno-extra \ 58 -Wno-ignored-qualifiers \ 59 -Wno-type-limits \ 60 -fno-stack-protector \ 61 -Os \ 62 -g \ 63 -fomit-frame-pointer \ 64 -fdata-sections \ 65 -ffunction-sections 66 67 MY_DEFS_Debug := \ 68 '-DV8_DEPRECATION_WARNINGS' \ 69 '-D_FILE_OFFSET_BITS=64' \ 70 '-DNO_TCMALLOC' \ 71 '-DDISABLE_NACL' \ 72 '-DCHROMIUM_BUILD' \ 73 '-DUSE_LIBJPEG_TURBO=1' \ 74 '-DUSE_PROPRIETARY_CODECS' \ 75 '-DENABLE_CONFIGURATION_POLICY' \ 76 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 77 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 78 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 79 '-DUSE_OPENSSL=1' \ 80 '-DENABLE_EGLIMAGE=1' \ 81 '-DCLD_VERSION=1' \ 82 '-DENABLE_PRINTING=1' \ 83 '-DENABLE_MANAGED_USERS=1' \ 84 '-DMEDIA_IMPLEMENTATION' \ 85 '-D__STDC_CONSTANT_MACROS' \ 86 '-D__STDC_FORMAT_MACROS' \ 87 '-DANDROID' \ 88 '-D__GNU_SOURCE=1' \ 89 '-DUSE_STLPORT=1' \ 90 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 91 '-DCHROME_BUILD_ID=""' \ 92 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 93 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 94 '-D_DEBUG' 95 96 97 # Include paths placed before CFLAGS/CPPFLAGS 98 LOCAL_C_INCLUDES_Debug := \ 99 $(LOCAL_PATH) \ 100 $(PWD)/frameworks/wilhelm/include \ 101 $(PWD)/bionic \ 102 $(PWD)/external/stlport/stlport 103 104 105 # Flags passed to only C++ (and not C) files. 106 LOCAL_CPPFLAGS_Debug := \ 107 -fno-rtti \ 108 -fno-threadsafe-statics \ 109 -fvisibility-inlines-hidden \ 110 -Wsign-compare \ 111 -Wno-error=c++0x-compat \ 112 -Wno-non-virtual-dtor \ 113 -Wno-sign-promo 114 115 116 # Flags passed to both C and C++ files. 117 MY_CFLAGS_Release := \ 118 --param=ssp-buffer-size=4 \ 119 -Werror \ 120 -fno-exceptions \ 121 -fno-strict-aliasing \ 122 -Wall \ 123 -Wno-unused-parameter \ 124 -Wno-missing-field-initializers \ 125 -fvisibility=hidden \ 126 -pipe \ 127 -fPIC \ 128 -msse2 \ 129 -m32 \ 130 -mmmx \ 131 -march=pentium4 \ 132 -msse2 \ 133 -mfpmath=sse \ 134 -fuse-ld=gold \ 135 -ffunction-sections \ 136 -funwind-tables \ 137 -g \ 138 -fno-short-enums \ 139 -finline-limit=64 \ 140 -Wa,--noexecstack \ 141 -U_FORTIFY_SOURCE \ 142 -Wno-extra \ 143 -Wno-ignored-qualifiers \ 144 -Wno-type-limits \ 145 -fno-stack-protector \ 146 -Os \ 147 -fno-ident \ 148 -fdata-sections \ 149 -ffunction-sections \ 150 -fomit-frame-pointer \ 151 -fno-unwind-tables \ 152 -fno-asynchronous-unwind-tables 153 154 MY_DEFS_Release := \ 155 '-DV8_DEPRECATION_WARNINGS' \ 156 '-D_FILE_OFFSET_BITS=64' \ 157 '-DNO_TCMALLOC' \ 158 '-DDISABLE_NACL' \ 159 '-DCHROMIUM_BUILD' \ 160 '-DUSE_LIBJPEG_TURBO=1' \ 161 '-DUSE_PROPRIETARY_CODECS' \ 162 '-DENABLE_CONFIGURATION_POLICY' \ 163 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 164 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 165 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 166 '-DUSE_OPENSSL=1' \ 167 '-DENABLE_EGLIMAGE=1' \ 168 '-DCLD_VERSION=1' \ 169 '-DENABLE_PRINTING=1' \ 170 '-DENABLE_MANAGED_USERS=1' \ 171 '-DMEDIA_IMPLEMENTATION' \ 172 '-D__STDC_CONSTANT_MACROS' \ 173 '-D__STDC_FORMAT_MACROS' \ 174 '-DANDROID' \ 175 '-D__GNU_SOURCE=1' \ 176 '-DUSE_STLPORT=1' \ 177 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 178 '-DCHROME_BUILD_ID=""' \ 179 '-DNDEBUG' \ 180 '-DNVALGRIND' \ 181 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 182 '-D_FORTIFY_SOURCE=2' 183 184 185 # Include paths placed before CFLAGS/CPPFLAGS 186 LOCAL_C_INCLUDES_Release := \ 187 $(LOCAL_PATH) \ 188 $(PWD)/frameworks/wilhelm/include \ 189 $(PWD)/bionic \ 190 $(PWD)/external/stlport/stlport 191 192 193 # Flags passed to only C++ (and not C) files. 194 LOCAL_CPPFLAGS_Release := \ 195 -fno-rtti \ 196 -fno-threadsafe-statics \ 197 -fvisibility-inlines-hidden \ 198 -Wsign-compare \ 199 -Wno-error=c++0x-compat \ 200 -Wno-non-virtual-dtor \ 201 -Wno-sign-promo 202 203 204 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 205 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 206 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 207 ### Rules for final target. 208 209 LOCAL_LDFLAGS_Debug := \ 210 -Wl,-z,now \ 211 -Wl,-z,relro \ 212 -Wl,-z,noexecstack \ 213 -fPIC \ 214 -m32 \ 215 -fuse-ld=gold \ 216 -nostdlib \ 217 -Wl,--no-undefined \ 218 -Wl,--exclude-libs=ALL \ 219 -Wl,--fatal-warnings \ 220 -Wl,--gc-sections \ 221 -Wl,--warn-shared-textrel \ 222 -Wl,-O1 \ 223 -Wl,--as-needed 224 225 226 LOCAL_LDFLAGS_Release := \ 227 -Wl,-z,now \ 228 -Wl,-z,relro \ 229 -Wl,-z,noexecstack \ 230 -fPIC \ 231 -m32 \ 232 -fuse-ld=gold \ 233 -nostdlib \ 234 -Wl,--no-undefined \ 235 -Wl,--exclude-libs=ALL \ 236 -Wl,-O1 \ 237 -Wl,--as-needed \ 238 -Wl,--gc-sections \ 239 -Wl,--fatal-warnings \ 240 -Wl,--warn-shared-textrel 241 242 243 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 244 245 LOCAL_STATIC_LIBRARIES := 246 247 # Enable grouping to fix circular references 248 LOCAL_GROUP_STATIC_LIBRARIES := true 249 250 LOCAL_SHARED_LIBRARIES := \ 251 libstlport \ 252 libdl 253 254 # Add target alias to "gyp_all_modules" target. 255 .PHONY: gyp_all_modules 256 gyp_all_modules: media_media_sse2_gyp 257 258 # Alias gyp target name. 259 .PHONY: media_sse2 260 media_sse2: media_media_sse2_gyp 261 262 include $(BUILD_STATIC_LIBRARY) 263