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