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