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