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