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