Home | History | Annotate | Download | only in libjingle
      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_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 	$(call intermediates-dir-for,GYP,third_party_webrtc_base_webrtc_base_gyp,,,$(GYP_VAR_PREFIX))/webrtc_base.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/asyncstuntcpsocket.cc \
     28 	third_party/libjingle/source/talk/p2p/base/basicpacketsocketfactory.cc \
     29 	third_party/libjingle/source/talk/p2p/base/dtlstransportchannel.cc \
     30 	third_party/libjingle/source/talk/p2p/base/p2ptransport.cc \
     31 	third_party/libjingle/source/talk/p2p/base/p2ptransportchannel.cc \
     32 	third_party/libjingle/source/talk/p2p/base/parsing.cc \
     33 	third_party/libjingle/source/talk/p2p/base/port.cc \
     34 	third_party/libjingle/source/talk/p2p/base/portallocator.cc \
     35 	third_party/libjingle/source/talk/p2p/base/portallocatorsessionproxy.cc \
     36 	third_party/libjingle/source/talk/p2p/base/portproxy.cc \
     37 	third_party/libjingle/source/talk/p2p/base/pseudotcp.cc \
     38 	third_party/libjingle/source/talk/p2p/base/rawtransport.cc \
     39 	third_party/libjingle/source/talk/p2p/base/rawtransportchannel.cc \
     40 	third_party/libjingle/source/talk/p2p/base/relayport.cc \
     41 	third_party/libjingle/source/talk/p2p/base/session.cc \
     42 	third_party/libjingle/source/talk/p2p/base/sessiondescription.cc \
     43 	third_party/libjingle/source/talk/p2p/base/sessionmanager.cc \
     44 	third_party/libjingle/source/talk/p2p/base/sessionmessages.cc \
     45 	third_party/libjingle/source/talk/p2p/base/stun.cc \
     46 	third_party/libjingle/source/talk/p2p/base/stunport.cc \
     47 	third_party/libjingle/source/talk/p2p/base/stunrequest.cc \
     48 	third_party/libjingle/source/talk/p2p/base/tcpport.cc \
     49 	third_party/libjingle/source/talk/p2p/base/transport.cc \
     50 	third_party/libjingle/source/talk/p2p/base/transportchannel.cc \
     51 	third_party/libjingle/source/talk/p2p/base/transportchannelproxy.cc \
     52 	third_party/libjingle/source/talk/p2p/base/transportdescription.cc \
     53 	third_party/libjingle/source/talk/p2p/base/transportdescriptionfactory.cc \
     54 	third_party/libjingle/source/talk/p2p/base/turnport.cc \
     55 	third_party/libjingle/source/talk/p2p/client/basicportallocator.cc \
     56 	third_party/libjingle/source/talk/p2p/client/httpportallocator.cc \
     57 	third_party/libjingle/source/talk/p2p/client/socketmonitor.cc \
     58 	third_party/libjingle/source/talk/xmpp/constants.cc \
     59 	third_party/libjingle/source/talk/xmpp/jid.cc \
     60 	third_party/libjingle/source/talk/xmpp/saslmechanism.cc \
     61 	third_party/libjingle/source/talk/xmpp/xmppclient.cc \
     62 	third_party/libjingle/source/talk/xmpp/xmppengineimpl.cc \
     63 	third_party/libjingle/source/talk/xmpp/xmppengineimpl_iq.cc \
     64 	third_party/libjingle/source/talk/xmpp/xmpplogintask.cc \
     65 	third_party/libjingle/source/talk/xmpp/xmppstanzaparser.cc \
     66 	third_party/libjingle/source/talk/xmpp/xmpptask.cc
     67 
     68 
     69 # Flags passed to both C and C++ files.
     70 MY_CFLAGS_Debug := \
     71 	--param=ssp-buffer-size=4 \
     72 	-fno-strict-aliasing \
     73 	-Wno-unused-parameter \
     74 	-Wno-missing-field-initializers \
     75 	-fvisibility=hidden \
     76 	-pipe \
     77 	-fPIC \
     78 	-Wno-unused-local-typedefs \
     79 	-Wno-format \
     80 	-ffunction-sections \
     81 	-funwind-tables \
     82 	-g \
     83 	-fno-short-enums \
     84 	-finline-limit=64 \
     85 	-Wa,--noexecstack \
     86 	-U_FORTIFY_SOURCE \
     87 	-Wno-extra \
     88 	-Wno-ignored-qualifiers \
     89 	-Wno-type-limits \
     90 	-Wno-unused-but-set-variable \
     91 	-Wno-address \
     92 	-Wno-format-security \
     93 	-Wno-return-type \
     94 	-Wno-sequence-point \
     95 	-Os \
     96 	-g \
     97 	-gdwarf-4 \
     98 	-fdata-sections \
     99 	-ffunction-sections \
    100 	-funwind-tables
    101 
    102 MY_DEFS_Debug := \
    103 	'-DEXPAT_RELATIVE_PATH' \
    104 	'-DFEATURE_ENABLE_SSL' \
    105 	'-DGTEST_RELATIVE_PATH' \
    106 	'-DHAVE_SRTP' \
    107 	'-DHAVE_WEBRTC_VIDEO' \
    108 	'-DHAVE_WEBRTC_VOICE' \
    109 	'-DLOGGING_INSIDE_WEBRTC' \
    110 	'-DNO_MAIN_THREAD_WRAPPING' \
    111 	'-DNO_SOUND_SYSTEM' \
    112 	'-DSRTP_RELATIVE_PATH' \
    113 	'-DUSE_WEBRTC_DEV_BRANCH' \
    114 	'-DENABLE_EXTERNAL_AUTH' \
    115 	'-DWEBRTC_CHROMIUM_BUILD' \
    116 	'-DV8_DEPRECATION_WARNINGS' \
    117 	'-D_FILE_OFFSET_BITS=64' \
    118 	'-DNO_TCMALLOC' \
    119 	'-DDISABLE_NACL' \
    120 	'-DLIBPEERCONNECTION_LIB=1' \
    121 	'-DSSL_USE_OPENSSL' \
    122 	'-DHAVE_OPENSSL_SSL_H' \
    123 	'-DPOSIX' \
    124 	'-DWEBRTC_POSIX' \
    125 	'-DCHROMIUM_BUILD' \
    126 	'-DUSE_LIBJPEG_TURBO=1' \
    127 	'-DENABLE_WEBRTC=1' \
    128 	'-DUSE_PROPRIETARY_CODECS' \
    129 	'-DENABLE_BROWSER_CDMS' \
    130 	'-DENABLE_CONFIGURATION_POLICY' \
    131 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    132 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    133 	'-DENABLE_EGLIMAGE=1' \
    134 	'-DCLD_VERSION=1' \
    135 	'-DENABLE_PRINTING=1' \
    136 	'-DENABLE_MANAGED_USERS=1' \
    137 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    138 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    139 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    140 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    141 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    142 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    143 	'-DVIDEO_HOLE=1' \
    144 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    145 	'-DPOSIX_AVOID_MMAP' \
    146 	'-DXML_STATIC' \
    147 	'-DWEBRTC_LINUX' \
    148 	'-DWEBRTC_ANDROID' \
    149 	'-DWEBRTC_ANDROID_OPENSLES' \
    150 	'-DFEATURE_ENABLE_VOICEMAIL' \
    151 	'-DANDROID' \
    152 	'-DUSE_OPENSSL=1' \
    153 	'-DUSE_OPENSSL_CERTS=1' \
    154 	'-D__GNU_SOURCE=1' \
    155 	'-DUSE_STLPORT=1' \
    156 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    157 	'-DCHROME_BUILD_ID=""' \
    158 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    159 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    160 	'-D_DEBUG'
    161 
    162 
    163 # Include paths placed before CFLAGS/CPPFLAGS
    164 LOCAL_C_INCLUDES_Debug := \
    165 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    166 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    167 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    168 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    169 	$(LOCAL_PATH)/third_party/libjingle/source \
    170 	$(LOCAL_PATH) \
    171 	$(LOCAL_PATH)/testing/gtest/include \
    172 	$(LOCAL_PATH)/third_party \
    173 	$(LOCAL_PATH)/third_party/libyuv/include \
    174 	$(LOCAL_PATH)/third_party/usrsctp \
    175 	$(gyp_shared_intermediate_dir) \
    176 	$(LOCAL_PATH)/third_party/expat/files/lib \
    177 	$(LOCAL_PATH)/third_party/boringssl/src/include \
    178 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    179 	$(LOCAL_PATH)/third_party \
    180 	$(PWD)/frameworks/wilhelm/include \
    181 	$(PWD)/bionic \
    182 	$(PWD)/external/stlport/stlport
    183 
    184 
    185 # Flags passed to only C++ (and not C) files.
    186 LOCAL_CPPFLAGS_Debug := \
    187 	-fno-exceptions \
    188 	-fno-rtti \
    189 	-fno-threadsafe-statics \
    190 	-fvisibility-inlines-hidden \
    191 	-Wno-deprecated \
    192 	-std=gnu++11 \
    193 	-Wno-narrowing \
    194 	-Wno-literal-suffix \
    195 	-Wno-non-virtual-dtor \
    196 	-Wno-sign-promo \
    197 	-Wno-non-virtual-dtor
    198 
    199 
    200 # Flags passed to both C and C++ files.
    201 MY_CFLAGS_Release := \
    202 	--param=ssp-buffer-size=4 \
    203 	-fno-strict-aliasing \
    204 	-Wno-unused-parameter \
    205 	-Wno-missing-field-initializers \
    206 	-fvisibility=hidden \
    207 	-pipe \
    208 	-fPIC \
    209 	-Wno-unused-local-typedefs \
    210 	-Wno-format \
    211 	-ffunction-sections \
    212 	-funwind-tables \
    213 	-g \
    214 	-fno-short-enums \
    215 	-finline-limit=64 \
    216 	-Wa,--noexecstack \
    217 	-U_FORTIFY_SOURCE \
    218 	-Wno-extra \
    219 	-Wno-ignored-qualifiers \
    220 	-Wno-type-limits \
    221 	-Wno-unused-but-set-variable \
    222 	-Wno-address \
    223 	-Wno-format-security \
    224 	-Wno-return-type \
    225 	-Wno-sequence-point \
    226 	-Os \
    227 	-fno-ident \
    228 	-fdata-sections \
    229 	-ffunction-sections \
    230 	-funwind-tables
    231 
    232 MY_DEFS_Release := \
    233 	'-DEXPAT_RELATIVE_PATH' \
    234 	'-DFEATURE_ENABLE_SSL' \
    235 	'-DGTEST_RELATIVE_PATH' \
    236 	'-DHAVE_SRTP' \
    237 	'-DHAVE_WEBRTC_VIDEO' \
    238 	'-DHAVE_WEBRTC_VOICE' \
    239 	'-DLOGGING_INSIDE_WEBRTC' \
    240 	'-DNO_MAIN_THREAD_WRAPPING' \
    241 	'-DNO_SOUND_SYSTEM' \
    242 	'-DSRTP_RELATIVE_PATH' \
    243 	'-DUSE_WEBRTC_DEV_BRANCH' \
    244 	'-DENABLE_EXTERNAL_AUTH' \
    245 	'-DWEBRTC_CHROMIUM_BUILD' \
    246 	'-DV8_DEPRECATION_WARNINGS' \
    247 	'-D_FILE_OFFSET_BITS=64' \
    248 	'-DNO_TCMALLOC' \
    249 	'-DDISABLE_NACL' \
    250 	'-DLIBPEERCONNECTION_LIB=1' \
    251 	'-DSSL_USE_OPENSSL' \
    252 	'-DHAVE_OPENSSL_SSL_H' \
    253 	'-DPOSIX' \
    254 	'-DWEBRTC_POSIX' \
    255 	'-DCHROMIUM_BUILD' \
    256 	'-DUSE_LIBJPEG_TURBO=1' \
    257 	'-DENABLE_WEBRTC=1' \
    258 	'-DUSE_PROPRIETARY_CODECS' \
    259 	'-DENABLE_BROWSER_CDMS' \
    260 	'-DENABLE_CONFIGURATION_POLICY' \
    261 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    262 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    263 	'-DENABLE_EGLIMAGE=1' \
    264 	'-DCLD_VERSION=1' \
    265 	'-DENABLE_PRINTING=1' \
    266 	'-DENABLE_MANAGED_USERS=1' \
    267 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    268 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    269 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    270 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    271 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    272 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    273 	'-DVIDEO_HOLE=1' \
    274 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    275 	'-DPOSIX_AVOID_MMAP' \
    276 	'-DXML_STATIC' \
    277 	'-DWEBRTC_LINUX' \
    278 	'-DWEBRTC_ANDROID' \
    279 	'-DWEBRTC_ANDROID_OPENSLES' \
    280 	'-DFEATURE_ENABLE_VOICEMAIL' \
    281 	'-DANDROID' \
    282 	'-DUSE_OPENSSL=1' \
    283 	'-DUSE_OPENSSL_CERTS=1' \
    284 	'-D__GNU_SOURCE=1' \
    285 	'-DUSE_STLPORT=1' \
    286 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    287 	'-DCHROME_BUILD_ID=""' \
    288 	'-DNDEBUG' \
    289 	'-DNVALGRIND' \
    290 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    291 
    292 
    293 # Include paths placed before CFLAGS/CPPFLAGS
    294 LOCAL_C_INCLUDES_Release := \
    295 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    296 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    297 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    298 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    299 	$(LOCAL_PATH)/third_party/libjingle/source \
    300 	$(LOCAL_PATH) \
    301 	$(LOCAL_PATH)/testing/gtest/include \
    302 	$(LOCAL_PATH)/third_party \
    303 	$(LOCAL_PATH)/third_party/libyuv/include \
    304 	$(LOCAL_PATH)/third_party/usrsctp \
    305 	$(gyp_shared_intermediate_dir) \
    306 	$(LOCAL_PATH)/third_party/expat/files/lib \
    307 	$(LOCAL_PATH)/third_party/boringssl/src/include \
    308 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    309 	$(LOCAL_PATH)/third_party \
    310 	$(PWD)/frameworks/wilhelm/include \
    311 	$(PWD)/bionic \
    312 	$(PWD)/external/stlport/stlport
    313 
    314 
    315 # Flags passed to only C++ (and not C) files.
    316 LOCAL_CPPFLAGS_Release := \
    317 	-fno-exceptions \
    318 	-fno-rtti \
    319 	-fno-threadsafe-statics \
    320 	-fvisibility-inlines-hidden \
    321 	-Wno-deprecated \
    322 	-std=gnu++11 \
    323 	-Wno-narrowing \
    324 	-Wno-literal-suffix \
    325 	-Wno-non-virtual-dtor \
    326 	-Wno-sign-promo \
    327 	-Wno-non-virtual-dtor
    328 
    329 
    330 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    331 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    332 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    333 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    334 ### Rules for final target.
    335 
    336 LOCAL_SHARED_LIBRARIES := \
    337 	libstlport \
    338 	libdl
    339 
    340 # Add target alias to "gyp_all_modules" target.
    341 .PHONY: gyp_all_modules
    342 gyp_all_modules: third_party_libjingle_libjingle_gyp
    343 
    344 # Alias gyp target name.
    345 .PHONY: libjingle
    346 libjingle: third_party_libjingle_libjingle_gyp
    347 
    348 include $(BUILD_STATIC_LIBRARY)
    349