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