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_libjingle_libjingle_p2p_constants_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_expat_expat_gyp)/expat.stamp 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/libjingle/source/talk/p2p/base/constants.cc 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 --param=ssp-buffer-size=4 \ 33 -fno-exceptions \ 34 -fno-strict-aliasing \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-format \ 41 -m32 \ 42 -mmmx \ 43 -march=pentium4 \ 44 -msse2 \ 45 -mfpmath=sse \ 46 -fuse-ld=gold \ 47 -ffunction-sections \ 48 -funwind-tables \ 49 -g \ 50 -fno-short-enums \ 51 -finline-limit=64 \ 52 -Wa,--noexecstack \ 53 -U_FORTIFY_SOURCE \ 54 -Wno-extra \ 55 -Wno-ignored-qualifiers \ 56 -Wno-type-limits \ 57 -fno-stack-protector \ 58 -Wno-address \ 59 -Wno-format-security \ 60 -Wno-return-type \ 61 -Wno-sequence-point \ 62 -Os \ 63 -g \ 64 -fomit-frame-pointer \ 65 -fdata-sections \ 66 -ffunction-sections 67 68 MY_DEFS_Debug := \ 69 '-DEXPAT_RELATIVE_PATH' \ 70 '-DFEATURE_ENABLE_SSL' \ 71 '-DGTEST_RELATIVE_PATH' \ 72 '-DHAVE_SRTP' \ 73 '-DHAVE_WEBRTC_VIDEO' \ 74 '-DHAVE_WEBRTC_VOICE' \ 75 '-DJSONCPP_RELATIVE_PATH' \ 76 '-DLOGGING_INSIDE_LIBJINGLE' \ 77 '-DNO_MAIN_THREAD_WRAPPING' \ 78 '-DNO_SOUND_SYSTEM' \ 79 '-DSRTP_RELATIVE_PATH' \ 80 '-DUSE_WEBRTC_DEV_BRANCH' \ 81 '-DV8_DEPRECATION_WARNINGS' \ 82 '-D_FILE_OFFSET_BITS=64' \ 83 '-DNO_TCMALLOC' \ 84 '-DDISABLE_NACL' \ 85 '-DLIBPEERCONNECTION_LIB=1' \ 86 '-DSSL_USE_OPENSSL' \ 87 '-DHAVE_OPENSSL_SSL_H' \ 88 '-DPOSIX' \ 89 '-DCHROMIUM_BUILD' \ 90 '-DUSE_LIBJPEG_TURBO=1' \ 91 '-DUSE_PROPRIETARY_CODECS' \ 92 '-DENABLE_CONFIGURATION_POLICY' \ 93 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 94 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 95 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 96 '-DUSE_OPENSSL=1' \ 97 '-DENABLE_EGLIMAGE=1' \ 98 '-DCLD_VERSION=1' \ 99 '-DENABLE_PRINTING=1' \ 100 '-DENABLE_MANAGED_USERS=1' \ 101 '-DANDROID' \ 102 '-D__GNU_SOURCE=1' \ 103 '-DUSE_STLPORT=1' \ 104 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 105 '-DCHROME_BUILD_ID=""' \ 106 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 107 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 108 '-D_DEBUG' 109 110 111 # Include paths placed before CFLAGS/CPPFLAGS 112 LOCAL_C_INCLUDES_Debug := \ 113 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 114 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 115 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 116 $(LOCAL_PATH)/third_party/libjingle/overrides \ 117 $(LOCAL_PATH)/third_party/libjingle/source \ 118 $(LOCAL_PATH)/testing/gtest/include \ 119 $(LOCAL_PATH)/third_party \ 120 $(LOCAL_PATH)/third_party/libyuv/include \ 121 $(LOCAL_PATH)/third_party/usrsctp \ 122 $(LOCAL_PATH)/third_party/webrtc \ 123 $(LOCAL_PATH) \ 124 $(PWD)/external/expat/lib \ 125 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 126 $(PWD)/frameworks/wilhelm/include \ 127 $(PWD)/bionic \ 128 $(PWD)/external/stlport/stlport 129 130 131 # Flags passed to only C++ (and not C) files. 132 LOCAL_CPPFLAGS_Debug := \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wno-deprecated \ 137 -Wno-error=c++0x-compat \ 138 -Wno-non-virtual-dtor \ 139 -Wno-sign-promo \ 140 -Wno-non-virtual-dtor 141 142 143 # Flags passed to both C and C++ files. 144 MY_CFLAGS_Release := \ 145 --param=ssp-buffer-size=4 \ 146 -fno-exceptions \ 147 -fno-strict-aliasing \ 148 -Wno-unused-parameter \ 149 -Wno-missing-field-initializers \ 150 -fvisibility=hidden \ 151 -pipe \ 152 -fPIC \ 153 -Wno-format \ 154 -m32 \ 155 -mmmx \ 156 -march=pentium4 \ 157 -msse2 \ 158 -mfpmath=sse \ 159 -fuse-ld=gold \ 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 -fno-stack-protector \ 171 -Wno-address \ 172 -Wno-format-security \ 173 -Wno-return-type \ 174 -Wno-sequence-point \ 175 -Os \ 176 -fno-ident \ 177 -fdata-sections \ 178 -ffunction-sections \ 179 -fomit-frame-pointer \ 180 -fno-unwind-tables \ 181 -fno-asynchronous-unwind-tables 182 183 MY_DEFS_Release := \ 184 '-DEXPAT_RELATIVE_PATH' \ 185 '-DFEATURE_ENABLE_SSL' \ 186 '-DGTEST_RELATIVE_PATH' \ 187 '-DHAVE_SRTP' \ 188 '-DHAVE_WEBRTC_VIDEO' \ 189 '-DHAVE_WEBRTC_VOICE' \ 190 '-DJSONCPP_RELATIVE_PATH' \ 191 '-DLOGGING_INSIDE_LIBJINGLE' \ 192 '-DNO_MAIN_THREAD_WRAPPING' \ 193 '-DNO_SOUND_SYSTEM' \ 194 '-DSRTP_RELATIVE_PATH' \ 195 '-DUSE_WEBRTC_DEV_BRANCH' \ 196 '-DV8_DEPRECATION_WARNINGS' \ 197 '-D_FILE_OFFSET_BITS=64' \ 198 '-DNO_TCMALLOC' \ 199 '-DDISABLE_NACL' \ 200 '-DLIBPEERCONNECTION_LIB=1' \ 201 '-DSSL_USE_OPENSSL' \ 202 '-DHAVE_OPENSSL_SSL_H' \ 203 '-DPOSIX' \ 204 '-DCHROMIUM_BUILD' \ 205 '-DUSE_LIBJPEG_TURBO=1' \ 206 '-DUSE_PROPRIETARY_CODECS' \ 207 '-DENABLE_CONFIGURATION_POLICY' \ 208 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 209 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 210 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 211 '-DUSE_OPENSSL=1' \ 212 '-DENABLE_EGLIMAGE=1' \ 213 '-DCLD_VERSION=1' \ 214 '-DENABLE_PRINTING=1' \ 215 '-DENABLE_MANAGED_USERS=1' \ 216 '-DANDROID' \ 217 '-D__GNU_SOURCE=1' \ 218 '-DUSE_STLPORT=1' \ 219 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 220 '-DCHROME_BUILD_ID=""' \ 221 '-DNDEBUG' \ 222 '-DNVALGRIND' \ 223 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 224 225 226 # Include paths placed before CFLAGS/CPPFLAGS 227 LOCAL_C_INCLUDES_Release := \ 228 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 229 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 230 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 231 $(LOCAL_PATH)/third_party/libjingle/overrides \ 232 $(LOCAL_PATH)/third_party/libjingle/source \ 233 $(LOCAL_PATH)/testing/gtest/include \ 234 $(LOCAL_PATH)/third_party \ 235 $(LOCAL_PATH)/third_party/libyuv/include \ 236 $(LOCAL_PATH)/third_party/usrsctp \ 237 $(LOCAL_PATH)/third_party/webrtc \ 238 $(LOCAL_PATH) \ 239 $(PWD)/external/expat/lib \ 240 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 241 $(PWD)/frameworks/wilhelm/include \ 242 $(PWD)/bionic \ 243 $(PWD)/external/stlport/stlport 244 245 246 # Flags passed to only C++ (and not C) files. 247 LOCAL_CPPFLAGS_Release := \ 248 -fno-rtti \ 249 -fno-threadsafe-statics \ 250 -fvisibility-inlines-hidden \ 251 -Wno-deprecated \ 252 -Wno-error=c++0x-compat \ 253 -Wno-non-virtual-dtor \ 254 -Wno-sign-promo \ 255 -Wno-non-virtual-dtor 256 257 258 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 259 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 260 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 261 ### Rules for final target. 262 263 LOCAL_LDFLAGS_Debug := \ 264 -Wl,-z,now \ 265 -Wl,-z,relro \ 266 -Wl,-z,noexecstack \ 267 -fPIC \ 268 -m32 \ 269 -fuse-ld=gold \ 270 -nostdlib \ 271 -Wl,--no-undefined \ 272 -Wl,--exclude-libs=ALL \ 273 -Wl,--fatal-warnings \ 274 -Wl,--gc-sections \ 275 -Wl,--warn-shared-textrel \ 276 -Wl,-O1 \ 277 -Wl,--as-needed 278 279 280 LOCAL_LDFLAGS_Release := \ 281 -Wl,-z,now \ 282 -Wl,-z,relro \ 283 -Wl,-z,noexecstack \ 284 -fPIC \ 285 -m32 \ 286 -fuse-ld=gold \ 287 -nostdlib \ 288 -Wl,--no-undefined \ 289 -Wl,--exclude-libs=ALL \ 290 -Wl,-O1 \ 291 -Wl,--as-needed \ 292 -Wl,--gc-sections \ 293 -Wl,--fatal-warnings \ 294 -Wl,--warn-shared-textrel 295 296 297 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 298 299 LOCAL_STATIC_LIBRARIES := 300 301 # Enable grouping to fix circular references 302 LOCAL_GROUP_STATIC_LIBRARIES := true 303 304 LOCAL_SHARED_LIBRARIES := \ 305 libstlport \ 306 libdl 307 308 # Add target alias to "gyp_all_modules" target. 309 .PHONY: gyp_all_modules 310 gyp_all_modules: third_party_libjingle_libjingle_p2p_constants_gyp 311 312 # Alias gyp target name. 313 .PHONY: libjingle_p2p_constants 314 libjingle_p2p_constants: third_party_libjingle_libjingle_p2p_constants_gyp 315 316 include $(BUILD_STATIC_LIBRARY) 317