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