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