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