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_webrtc_modules_webrtc_i420_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 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 third_party/webrtc/modules/video_coding/codecs/i420/main/source/i420.cc 27 28 29 # Flags passed to both C and C++ files. 30 MY_CFLAGS_Debug := \ 31 --param=ssp-buffer-size=4 \ 32 -Werror \ 33 -fno-strict-aliasing \ 34 -Wall \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-unused-local-typedefs \ 41 -fno-builtin-cos \ 42 -fno-builtin-sin \ 43 -fno-builtin-cosf \ 44 -fno-builtin-sinf \ 45 -fno-builtin-cos \ 46 -fno-builtin-sin \ 47 -fno-builtin-cosf \ 48 -fno-builtin-sinf \ 49 -msse2 \ 50 -mfpmath=sse \ 51 -mmmx \ 52 -m32 \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -Wno-unused-but-set-variable \ 64 -fno-stack-protector \ 65 -Os \ 66 -g \ 67 -gdwarf-4 \ 68 -fdata-sections \ 69 -ffunction-sections \ 70 -fomit-frame-pointer \ 71 -funwind-tables 72 73 MY_DEFS_Debug := \ 74 '-DV8_DEPRECATION_WARNINGS' \ 75 '-D_FILE_OFFSET_BITS=64' \ 76 '-DNO_TCMALLOC' \ 77 '-DDISABLE_NACL' \ 78 '-DCHROMIUM_BUILD' \ 79 '-DUSE_LIBJPEG_TURBO=1' \ 80 '-DENABLE_WEBRTC=1' \ 81 '-DUSE_PROPRIETARY_CODECS' \ 82 '-DENABLE_BROWSER_CDMS' \ 83 '-DENABLE_CONFIGURATION_POLICY' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DENABLE_EGLIMAGE=1' \ 87 '-DCLD_VERSION=1' \ 88 '-DENABLE_PRINTING=1' \ 89 '-DENABLE_MANAGED_USERS=1' \ 90 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 91 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 92 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 93 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 94 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 95 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 96 '-DVIDEO_HOLE=1' \ 97 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 98 '-DWEBRTC_RESTRICT_LOGGING' \ 99 '-DEXPAT_RELATIVE_PATH' \ 100 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 101 '-DWEBRTC_CHROMIUM_BUILD' \ 102 '-DLOGGING_INSIDE_WEBRTC' \ 103 '-DWEBRTC_POSIX' \ 104 '-DWEBRTC_LINUX' \ 105 '-DWEBRTC_ANDROID' \ 106 '-DWEBRTC_ANDROID_OPENSLES' \ 107 '-DUSE_OPENSSL=1' \ 108 '-DUSE_OPENSSL_CERTS=1' \ 109 '-D__STDC_CONSTANT_MACROS' \ 110 '-D__STDC_FORMAT_MACROS' \ 111 '-DANDROID' \ 112 '-D__GNU_SOURCE=1' \ 113 '-DUSE_STLPORT=1' \ 114 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 115 '-DCHROME_BUILD_ID=""' \ 116 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 117 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 118 '-D_DEBUG' 119 120 121 # Include paths placed before CFLAGS/CPPFLAGS 122 LOCAL_C_INCLUDES_Debug := \ 123 $(gyp_shared_intermediate_dir) \ 124 $(LOCAL_PATH) \ 125 $(LOCAL_PATH)/third_party/webrtc/overrides \ 126 $(LOCAL_PATH)/third_party \ 127 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 128 $(PWD)/frameworks/wilhelm/include \ 129 $(PWD)/bionic \ 130 $(PWD)/external/stlport/stlport 131 132 133 # Flags passed to only C++ (and not C) files. 134 LOCAL_CPPFLAGS_Debug := \ 135 -fno-exceptions \ 136 -fno-rtti \ 137 -fno-threadsafe-statics \ 138 -fvisibility-inlines-hidden \ 139 -Wsign-compare \ 140 -std=gnu++11 \ 141 -Wno-narrowing \ 142 -Wno-literal-suffix \ 143 -Wno-non-virtual-dtor \ 144 -Wno-sign-promo 145 146 147 # Flags passed to both C and C++ files. 148 MY_CFLAGS_Release := \ 149 --param=ssp-buffer-size=4 \ 150 -Werror \ 151 -fno-strict-aliasing \ 152 -Wall \ 153 -Wno-unused-parameter \ 154 -Wno-missing-field-initializers \ 155 -fvisibility=hidden \ 156 -pipe \ 157 -fPIC \ 158 -Wno-unused-local-typedefs \ 159 -fno-builtin-cos \ 160 -fno-builtin-sin \ 161 -fno-builtin-cosf \ 162 -fno-builtin-sinf \ 163 -fno-builtin-cos \ 164 -fno-builtin-sin \ 165 -fno-builtin-cosf \ 166 -fno-builtin-sinf \ 167 -msse2 \ 168 -mfpmath=sse \ 169 -mmmx \ 170 -m32 \ 171 -ffunction-sections \ 172 -funwind-tables \ 173 -g \ 174 -fno-short-enums \ 175 -finline-limit=64 \ 176 -Wa,--noexecstack \ 177 -U_FORTIFY_SOURCE \ 178 -Wno-extra \ 179 -Wno-ignored-qualifiers \ 180 -Wno-type-limits \ 181 -Wno-unused-but-set-variable \ 182 -fno-stack-protector \ 183 -Os \ 184 -fno-ident \ 185 -fdata-sections \ 186 -ffunction-sections \ 187 -fomit-frame-pointer \ 188 -funwind-tables 189 190 MY_DEFS_Release := \ 191 '-DV8_DEPRECATION_WARNINGS' \ 192 '-D_FILE_OFFSET_BITS=64' \ 193 '-DNO_TCMALLOC' \ 194 '-DDISABLE_NACL' \ 195 '-DCHROMIUM_BUILD' \ 196 '-DUSE_LIBJPEG_TURBO=1' \ 197 '-DENABLE_WEBRTC=1' \ 198 '-DUSE_PROPRIETARY_CODECS' \ 199 '-DENABLE_BROWSER_CDMS' \ 200 '-DENABLE_CONFIGURATION_POLICY' \ 201 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 202 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 203 '-DENABLE_EGLIMAGE=1' \ 204 '-DCLD_VERSION=1' \ 205 '-DENABLE_PRINTING=1' \ 206 '-DENABLE_MANAGED_USERS=1' \ 207 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 208 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 209 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 210 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 211 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 212 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 213 '-DVIDEO_HOLE=1' \ 214 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 215 '-DWEBRTC_RESTRICT_LOGGING' \ 216 '-DEXPAT_RELATIVE_PATH' \ 217 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 218 '-DWEBRTC_CHROMIUM_BUILD' \ 219 '-DLOGGING_INSIDE_WEBRTC' \ 220 '-DWEBRTC_POSIX' \ 221 '-DWEBRTC_LINUX' \ 222 '-DWEBRTC_ANDROID' \ 223 '-DWEBRTC_ANDROID_OPENSLES' \ 224 '-DUSE_OPENSSL=1' \ 225 '-DUSE_OPENSSL_CERTS=1' \ 226 '-D__STDC_CONSTANT_MACROS' \ 227 '-D__STDC_FORMAT_MACROS' \ 228 '-DANDROID' \ 229 '-D__GNU_SOURCE=1' \ 230 '-DUSE_STLPORT=1' \ 231 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 232 '-DCHROME_BUILD_ID=""' \ 233 '-DNDEBUG' \ 234 '-DNVALGRIND' \ 235 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 236 '-D_FORTIFY_SOURCE=2' 237 238 239 # Include paths placed before CFLAGS/CPPFLAGS 240 LOCAL_C_INCLUDES_Release := \ 241 $(gyp_shared_intermediate_dir) \ 242 $(LOCAL_PATH) \ 243 $(LOCAL_PATH)/third_party/webrtc/overrides \ 244 $(LOCAL_PATH)/third_party \ 245 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 246 $(PWD)/frameworks/wilhelm/include \ 247 $(PWD)/bionic \ 248 $(PWD)/external/stlport/stlport 249 250 251 # Flags passed to only C++ (and not C) files. 252 LOCAL_CPPFLAGS_Release := \ 253 -fno-exceptions \ 254 -fno-rtti \ 255 -fno-threadsafe-statics \ 256 -fvisibility-inlines-hidden \ 257 -Wsign-compare \ 258 -std=gnu++11 \ 259 -Wno-narrowing \ 260 -Wno-literal-suffix \ 261 -Wno-non-virtual-dtor \ 262 -Wno-sign-promo 263 264 265 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 266 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 267 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 268 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 269 ### Rules for final target. 270 271 LOCAL_SHARED_LIBRARIES := \ 272 libstlport \ 273 libdl 274 275 # Add target alias to "gyp_all_modules" target. 276 .PHONY: gyp_all_modules 277 gyp_all_modules: third_party_webrtc_modules_webrtc_i420_gyp 278 279 # Alias gyp target name. 280 .PHONY: webrtc_i420 281 webrtc_i420: third_party_webrtc_modules_webrtc_i420_gyp 282 283 include $(BUILD_STATIC_LIBRARY) 284