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_base_rtc_base_approved_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/base/checks.cc \ 27 third_party/webrtc/base/exp_filter.cc \ 28 third_party/webrtc/base/md5.cc \ 29 third_party/webrtc/base/platform_file.cc \ 30 third_party/webrtc/base/stringencode.cc \ 31 third_party/webrtc/base/stringutils.cc \ 32 third_party/webrtc/base/timeutils.cc 33 34 35 # Flags passed to both C and C++ files. 36 MY_CFLAGS_Debug := \ 37 -fstack-protector \ 38 --param=ssp-buffer-size=4 \ 39 -Werror \ 40 -fno-strict-aliasing \ 41 -Wall \ 42 -Wno-unused-parameter \ 43 -Wno-missing-field-initializers \ 44 -fvisibility=hidden \ 45 -pipe \ 46 -fPIC \ 47 -Wno-unused-local-typedefs \ 48 -fno-builtin-cos \ 49 -fno-builtin-sin \ 50 -fno-builtin-cosf \ 51 -fno-builtin-sinf \ 52 -fno-tree-sra \ 53 -fno-caller-saves \ 54 -Wno-psabi \ 55 -fno-partial-inlining \ 56 -fno-early-inlining \ 57 -fno-tree-copy-prop \ 58 -fno-tree-loop-optimize \ 59 -fno-move-loop-invariants \ 60 -ffunction-sections \ 61 -funwind-tables \ 62 -g \ 63 -fstack-protector \ 64 -fno-short-enums \ 65 -finline-limit=64 \ 66 -Wa,--noexecstack \ 67 -U_FORTIFY_SOURCE \ 68 -Wno-extra \ 69 -Wno-ignored-qualifiers \ 70 -Wno-type-limits \ 71 -Wno-unused-but-set-variable \ 72 -Os \ 73 -g \ 74 -gdwarf-4 \ 75 -fdata-sections \ 76 -ffunction-sections \ 77 -fomit-frame-pointer \ 78 -funwind-tables 79 80 MY_DEFS_Debug := \ 81 '-DV8_DEPRECATION_WARNINGS' \ 82 '-D_FILE_OFFSET_BITS=64' \ 83 '-DNO_TCMALLOC' \ 84 '-DDISABLE_NACL' \ 85 '-DCHROMIUM_BUILD' \ 86 '-DUSE_LIBJPEG_TURBO=1' \ 87 '-DENABLE_WEBRTC=1' \ 88 '-DUSE_PROPRIETARY_CODECS' \ 89 '-DENABLE_BROWSER_CDMS' \ 90 '-DENABLE_CONFIGURATION_POLICY' \ 91 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 92 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 93 '-DENABLE_EGLIMAGE=1' \ 94 '-DCLD_VERSION=1' \ 95 '-DENABLE_PRINTING=1' \ 96 '-DENABLE_MANAGED_USERS=1' \ 97 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 98 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 99 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 105 '-DWEBRTC_RESTRICT_LOGGING' \ 106 '-DEXPAT_RELATIVE_PATH' \ 107 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 108 '-DWEBRTC_CHROMIUM_BUILD' \ 109 '-DLOGGING_INSIDE_WEBRTC' \ 110 '-DWEBRTC_ARCH_ARM' \ 111 '-DWEBRTC_ARCH_ARM_V7' \ 112 '-DWEBRTC_DETECT_ARM_NEON' \ 113 '-DWEBRTC_POSIX' \ 114 '-DWEBRTC_LINUX' \ 115 '-DWEBRTC_ANDROID' \ 116 '-DWEBRTC_ANDROID_OPENSLES' \ 117 '-DUSE_OPENSSL=1' \ 118 '-DUSE_OPENSSL_CERTS=1' \ 119 '-D__STDC_CONSTANT_MACROS' \ 120 '-D__STDC_FORMAT_MACROS' \ 121 '-DANDROID' \ 122 '-D__GNU_SOURCE=1' \ 123 '-DUSE_STLPORT=1' \ 124 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 125 '-DCHROME_BUILD_ID=""' \ 126 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 127 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 128 '-D_DEBUG' 129 130 131 # Include paths placed before CFLAGS/CPPFLAGS 132 LOCAL_C_INCLUDES_Debug := \ 133 $(gyp_shared_intermediate_dir) \ 134 $(LOCAL_PATH) \ 135 $(LOCAL_PATH)/third_party/webrtc/overrides \ 136 $(LOCAL_PATH)/third_party \ 137 $(PWD)/frameworks/wilhelm/include \ 138 $(PWD)/bionic \ 139 $(PWD)/external/stlport/stlport 140 141 142 # Flags passed to only C++ (and not C) files. 143 LOCAL_CPPFLAGS_Debug := \ 144 -fno-exceptions \ 145 -fno-rtti \ 146 -fno-threadsafe-statics \ 147 -fvisibility-inlines-hidden \ 148 -Wsign-compare \ 149 -Wno-abi \ 150 -std=gnu++11 \ 151 -Wno-narrowing \ 152 -Wno-literal-suffix \ 153 -Wno-non-virtual-dtor \ 154 -Wno-sign-promo 155 156 157 # Flags passed to both C and C++ files. 158 MY_CFLAGS_Release := \ 159 -fstack-protector \ 160 --param=ssp-buffer-size=4 \ 161 -Werror \ 162 -fno-strict-aliasing \ 163 -Wall \ 164 -Wno-unused-parameter \ 165 -Wno-missing-field-initializers \ 166 -fvisibility=hidden \ 167 -pipe \ 168 -fPIC \ 169 -Wno-unused-local-typedefs \ 170 -fno-builtin-cos \ 171 -fno-builtin-sin \ 172 -fno-builtin-cosf \ 173 -fno-builtin-sinf \ 174 -fno-tree-sra \ 175 -fno-caller-saves \ 176 -Wno-psabi \ 177 -fno-partial-inlining \ 178 -fno-early-inlining \ 179 -fno-tree-copy-prop \ 180 -fno-tree-loop-optimize \ 181 -fno-move-loop-invariants \ 182 -ffunction-sections \ 183 -funwind-tables \ 184 -g \ 185 -fstack-protector \ 186 -fno-short-enums \ 187 -finline-limit=64 \ 188 -Wa,--noexecstack \ 189 -U_FORTIFY_SOURCE \ 190 -Wno-extra \ 191 -Wno-ignored-qualifiers \ 192 -Wno-type-limits \ 193 -Wno-unused-but-set-variable \ 194 -Os \ 195 -fno-ident \ 196 -fdata-sections \ 197 -ffunction-sections \ 198 -fomit-frame-pointer \ 199 -funwind-tables 200 201 MY_DEFS_Release := \ 202 '-DV8_DEPRECATION_WARNINGS' \ 203 '-D_FILE_OFFSET_BITS=64' \ 204 '-DNO_TCMALLOC' \ 205 '-DDISABLE_NACL' \ 206 '-DCHROMIUM_BUILD' \ 207 '-DUSE_LIBJPEG_TURBO=1' \ 208 '-DENABLE_WEBRTC=1' \ 209 '-DUSE_PROPRIETARY_CODECS' \ 210 '-DENABLE_BROWSER_CDMS' \ 211 '-DENABLE_CONFIGURATION_POLICY' \ 212 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 213 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 214 '-DENABLE_EGLIMAGE=1' \ 215 '-DCLD_VERSION=1' \ 216 '-DENABLE_PRINTING=1' \ 217 '-DENABLE_MANAGED_USERS=1' \ 218 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 219 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 220 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 221 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 222 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 223 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 224 '-DVIDEO_HOLE=1' \ 225 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 226 '-DWEBRTC_RESTRICT_LOGGING' \ 227 '-DEXPAT_RELATIVE_PATH' \ 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 $(PWD)/frameworks/wilhelm/include \ 260 $(PWD)/bionic \ 261 $(PWD)/external/stlport/stlport 262 263 264 # Flags passed to only C++ (and not C) files. 265 LOCAL_CPPFLAGS_Release := \ 266 -fno-exceptions \ 267 -fno-rtti \ 268 -fno-threadsafe-statics \ 269 -fvisibility-inlines-hidden \ 270 -Wsign-compare \ 271 -Wno-abi \ 272 -std=gnu++11 \ 273 -Wno-narrowing \ 274 -Wno-literal-suffix \ 275 -Wno-non-virtual-dtor \ 276 -Wno-sign-promo 277 278 279 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(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_SHARED_LIBRARIES := \ 286 libstlport \ 287 libdl 288 289 # Add target alias to "gyp_all_modules" target. 290 .PHONY: gyp_all_modules 291 gyp_all_modules: third_party_webrtc_base_rtc_base_approved_gyp 292 293 # Alias gyp target name. 294 .PHONY: rtc_base_approved 295 rtc_base_approved: third_party_webrtc_base_rtc_base_approved_gyp 296 297 include $(BUILD_STATIC_LIBRARY) 298