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