<commit_before>#
# Copyright (C) 2009 SIPfoundry Inc.
# Licensed by SIPfoundry under the LGPL license.
#
# Copyright (C) 2009-2010 SIPez LLC.
# Licensed to SIPfoundry under a Contributor Agreement.
#
#
#//////////////////////////////////////////////////////////////////////////
#
# Author: <NAME> (dpetrie AT SIPez DOT com)
#
#
# This Makefile is for building sipXcallLib as a part of Android NDK.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

# Set up the target identity.
# LOCAL_MODULE/_CLASS are required for local-intermediates-dir to work.
LOCAL_MODULE := libsipXcall
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
#intermediates := $(call local-intermediates-dir)

fail_to_compile := \


LOCAL_SRC_FILES := \
    src/cp/CallManager.cpp \
    src/cp/CSeqManager.cpp \
    src/cp/Connection.cpp \
    src/cp/CpCall.cpp \
    src/cp/CpCallManager.cpp \
    src/cp/CpGatewayManager.cpp \
    src/cp/CpGhostConnection.cpp \
    src/cp/CpIntMessage.cpp \
    src/cp/CpMultiStringMessage.cpp \
    src/cp/CpPeerCall.cpp \
    src/cp/CpStringMessage.cpp \
    src/cp/SipConnection.cpp \
    src/tao/TaoEvent.cpp \
    src/tao/TaoEventListener.cpp \
    src/tao/TaoListenerEventMessage.cpp \
    src/tao/TaoMessage.cpp \
    src/tao/TaoObjectMap.cpp \
    src/tao/TaoReference.cpp \
    src/tao/TaoString.cpp \
    src/tapi/sipXtapi.cpp \
    src/tapi/SipXEventDispatcher.cpp \
    src/tapi/sipXtapiEvents.cpp \
    src/tapi/sipXtapiInternal.cpp \
    src/tapi/SipXHandleMap.cpp \
    src/tapi/SipXMessageObserver.cpp

# Not immediately needed on Android
FOO_DONT_BUILD := \


LOCAL_CXXFLAGS += -D__pingtel_on_posix__ \
                  -DANDROID \
                  -DDEFINE_S_IREAD_IWRITE \
                  -DSIPX_TMPDIR=\"/usr/var/tmp\" \
                  -DSIPX_CONFDIR=\"/etc/sipx\"


LOCAL_C_INCLUDES += \
    $(SIPX_HOME)/libpcre \
    $(SIPX_HOME)/sipXportLib/include \
    $(SIPX_HOME)/sipXsdpLib/include \
    $(SIPX_HOME)/sipXtackLib/include \
    $(SIPX_HOME)/sipXmediaLib/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/sipXmediaMediaProcessing/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/interface \
    $(SIPX_HOME)/sipXcallLib/include

#LOCAL_SHARED_LIBRARIES := libpcre libsipXport libsipXsdp libsipXtack libsipXmedia libsipXmediaAdapter

LOCAL_STATIC_LIBRARIES := libsipXmediaAdapter libsipXmedia libsipXtack libsipXsdp libsipXport libpcre

LOCAL_LDLIBS += -lstdc++ -ldl

# Add sipXmediaLib dependencies
LOCAL_SHARED_LIBRARIES += $(SIPX_MEDIA_SHARED_LIBS)
LOCAL_LDLIBS += $(SIPX_MEDIA_LDLIBS)
LOCAL_CXXFLAGS += $(SIPX_MEDIA_CXXFLAGS)
LOCAL_C_INCLUDES += $(SIPX_MEDIA_C_INCLUDES)

#include $(BUILD_SHARED_LIBRARY)
include $(BUILD_STATIC_LIBRARY)


include $(CLEAR_VARS)

# Set up the target identity.
# LOCAL_MODULE/_CLASS are required for local-intermediates-dir to work.
LOCAL_MODULE := libsipXtapi

LOCAL_SRC_FILES := \
    src/jni/testJni.cpp \

LOCAL_CXXFLAGS += -D__pingtel_on_posix__ \
                  -DANDROID \
                  -DDEFINE_S_IREAD_IWRITE \
                  -DSIPX_TMPDIR=\"/usr/var/tmp\" -DSIPX_CONFDIR=\"/etc/sipxpbx\"

LOCAL_C_INCLUDES += \
    $(SIPX_HOME)/libpcre \
    $(SIPX_HOME)/sipXportLib/include \
    $(SIPX_HOME)/sipXsdpLib/include \
    $(SIPX_HOME)/sipXtackLib/include \
    $(SIPX_HOME)/sipXmediaLib/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/sipXmediaMediaProcessing/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/interface \
    $(SIPX_HOME)/sipXcallLib/include

LOCAL_STATIC_LIBRARIES := libsipXcall libsipXmediaAdapter libsipXmedia libsipXtack libsipXsdp libsipXport libpcre $(SIPX_CODEC_LIBS)

LOCAL_LDLIBS += -lstdc++ -ldl

# Add sipXmediaLib dependencies
LOCAL_SHARED_LIBRARIES += $(SIPX_MEDIA_SHARED_LIBS)
LOCAL_LDLIBS += $(SIPX_MEDIA_LDLIBS)
LOCAL_CXXFLAGS += $(SIPX_MEDIA_CXXFLAGS)
LOCAL_C_INCLUDES += $(SIPX_MEDIA_C_INCLUDES)

include $(BUILD_SHARED_LIBRARY)

#####################################################

# cp unit tests

include $(CLEAR_VARS)

# Set up the target identity.
# LOCAL_MODULE/_CLASS are required for local-intermediates-dir to work.
LOCAL_MODULE := sipxcallunit


LOCAL_SRC_FILES := \
    src/test/cp/CallManagerTest.cpp \
    src/test/cp/CpTestSupport.cpp \


LOCAL_CXXFLAGS += -D__pingtel_on_posix__ \
                  -DANDROID \
                  -DDEFINE_S_IREAD_IWRITE \
                  -DSIPX_TMPDIR=\"/usr/var/tmp\" \
                  -DSIPX_CONFDIR=\"/etc/sipx\"


LOCAL_C_INCLUDES += \
    $(SIPX_HOME)/libpcre \
    $(SIPX_HOME)/sipXportLib/include \
    $(SIPX_HOME)/sipXportLib/src/test \
    $(SIPX_HOME)/sipXportLib/src/test/sipxportunit \
    $(SIPX_HOME)/sipXsdpLib/include \
    $(SIPX_HOME)/sipXtackLib/include \
    $(SIPX_HOME)/sipXmediaLib/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/sipXmediaMediaProcessing/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/interface \
    $(SIPX_HOME)/sipXcallLib/include \
    $(SIPX_HOME)/sipXcallLib/src/test \

#LOCAL_SHARED_LIBRARIES := libpcre libsipXport libsipXsdp libsipXtack libsipXmedia libsipXmediaAdapter

LOCAL_STATIC_LIBRARIES := libsipxUnit libsipXcall libsipXmediaAdapter libsipXmedia libsipXtack libsipXsdp libsipXport libpcre $(SIPX_CODEC_LIBS)

LOCAL_LDLIBS += -lstdc++ -ldl


include $(BUILD_EXECUTABLE)
<commit_msg>sipXcallLib: Fix link of sipXcallLib unittest.<commit_after>#
# Copyright (C) 2009 SIPfoundry Inc.
# Licensed by SIPfoundry under the LGPL license.
#
# Copyright (C) 2009-2010 SIPez LLC.
# Licensed to SIPfoundry under a Contributor Agreement.
#
#
#//////////////////////////////////////////////////////////////////////////
#
# Author: <NAME> (dpetrie AT SIPez DOT com)
#
#
# This Makefile is for building sipXcallLib as a part of Android NDK.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

# Set up the target identity.
# LOCAL_MODULE/_CLASS are required for local-intermediates-dir to work.
LOCAL_MODULE := libsipXcall
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
#intermediates := $(call local-intermediates-dir)

fail_to_compile := \


LOCAL_SRC_FILES := \
    src/cp/CallManager.cpp \
    src/cp/CSeqManager.cpp \
    src/cp/Connection.cpp \
    src/cp/CpCall.cpp \
    src/cp/CpCallManager.cpp \
    src/cp/CpGatewayManager.cpp \
    src/cp/CpGhostConnection.cpp \
    src/cp/CpIntMessage.cpp \
    src/cp/CpMultiStringMessage.cpp \
    src/cp/CpPeerCall.cpp \
    src/cp/CpStringMessage.cpp \
    src/cp/SipConnection.cpp \
    src/tao/TaoEvent.cpp \
    src/tao/TaoEventListener.cpp \
    src/tao/TaoListenerEventMessage.cpp \
    src/tao/TaoMessage.cpp \
    src/tao/TaoObjectMap.cpp \
    src/tao/TaoReference.cpp \
    src/tao/TaoString.cpp \
    src/tapi/sipXtapi.cpp \
    src/tapi/SipXEventDispatcher.cpp \
    src/tapi/sipXtapiEvents.cpp \
    src/tapi/sipXtapiInternal.cpp \
    src/tapi/SipXHandleMap.cpp \
    src/tapi/SipXMessageObserver.cpp

# Not immediately needed on Android
FOO_DONT_BUILD := \


LOCAL_CXXFLAGS += -D__pingtel_on_posix__ \
                  -DANDROID \
                  -DDEFINE_S_IREAD_IWRITE \
                  -DSIPX_TMPDIR=\"/usr/var/tmp\" \
                  -DSIPX_CONFDIR=\"/etc/sipx\"


LOCAL_C_INCLUDES += \
    $(SIPX_HOME)/libpcre \
    $(SIPX_HOME)/sipXportLib/include \
    $(SIPX_HOME)/sipXsdpLib/include \
    $(SIPX_HOME)/sipXtackLib/include \
    $(SIPX_HOME)/sipXmediaLib/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/sipXmediaMediaProcessing/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/interface \
    $(SIPX_HOME)/sipXcallLib/include

#LOCAL_SHARED_LIBRARIES := libpcre libsipXport libsipXsdp libsipXtack libsipXmedia libsipXmediaAdapter

LOCAL_STATIC_LIBRARIES := libsipXmediaAdapter libsipXmedia libsipXtack libsipXsdp libsipXport libpcre

LOCAL_LDLIBS += -lstdc++ -ldl

# Add sipXmediaLib dependencies
LOCAL_SHARED_LIBRARIES += $(SIPX_MEDIA_SHARED_LIBS)
LOCAL_LDLIBS += $(SIPX_MEDIA_LDLIBS)
LOCAL_CXXFLAGS += $(SIPX_MEDIA_CXXFLAGS)
LOCAL_C_INCLUDES += $(SIPX_MEDIA_C_INCLUDES)

#include $(BUILD_SHARED_LIBRARY)
include $(BUILD_STATIC_LIBRARY)


include $(CLEAR_VARS)

# Set up the target identity.
# LOCAL_MODULE/_CLASS are required for local-intermediates-dir to work.
LOCAL_MODULE := libsipXtapi

LOCAL_SRC_FILES := \
    src/jni/testJni.cpp \

LOCAL_CXXFLAGS += -D__pingtel_on_posix__ \
                  -DANDROID \
                  -DDEFINE_S_IREAD_IWRITE \
                  -DSIPX_TMPDIR=\"/usr/var/tmp\" -DSIPX_CONFDIR=\"/etc/sipxpbx\"

LOCAL_C_INCLUDES += \
    $(SIPX_HOME)/libpcre \
    $(SIPX_HOME)/sipXportLib/include \
    $(SIPX_HOME)/sipXsdpLib/include \
    $(SIPX_HOME)/sipXtackLib/include \
    $(SIPX_HOME)/sipXmediaLib/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/sipXmediaMediaProcessing/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/interface \
    $(SIPX_HOME)/sipXcallLib/include

LOCAL_STATIC_LIBRARIES := libsipXcall libsipXmediaAdapter libsipXmedia libsipXtack libsipXsdp libsipXport libpcre $(SIPX_CODEC_LIBS)

LOCAL_LDLIBS += -lstdc++ -ldl

# Add sipXmediaLib dependencies
LOCAL_SHARED_LIBRARIES += $(SIPX_MEDIA_SHARED_LIBS)
LOCAL_LDLIBS += $(SIPX_MEDIA_LDLIBS)
LOCAL_CXXFLAGS += $(SIPX_MEDIA_CXXFLAGS)
LOCAL_C_INCLUDES += $(SIPX_MEDIA_C_INCLUDES)

include $(BUILD_SHARED_LIBRARY)

#####################################################

# cp unit tests

include $(CLEAR_VARS)

# Set up the target identity.
# LOCAL_MODULE/_CLASS are required for local-intermediates-dir to work.
LOCAL_MODULE := sipxcallunit


LOCAL_SRC_FILES := \
    src/test/cp/CallManagerTest.cpp \
    src/test/cp/CpTestSupport.cpp \


LOCAL_CXXFLAGS += -D__pingtel_on_posix__ \
                  -DANDROID \
                  -DDEFINE_S_IREAD_IWRITE \
                  -DSIPX_TMPDIR=\"/usr/var/tmp\" \
                  -DSIPX_CONFDIR=\"/etc/sipx\"


LOCAL_C_INCLUDES += \
    $(SIPX_HOME)/libpcre \
    $(SIPX_HOME)/sipXportLib/include \
    $(SIPX_HOME)/sipXportLib/src/test \
    $(SIPX_HOME)/sipXportLib/src/test/sipxportunit \
    $(SIPX_HOME)/sipXsdpLib/include \
    $(SIPX_HOME)/sipXtackLib/include \
    $(SIPX_HOME)/sipXmediaLib/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/sipXmediaMediaProcessing/include \
    $(SIPX_HOME)/sipXmediaAdapterLib/interface \
    $(SIPX_HOME)/sipXcallLib/include \
    $(SIPX_HOME)/sipXcallLib/src/test \

#LOCAL_SHARED_LIBRARIES := libpcre libsipXport libsipXsdp libsipXtack libsipXmedia libsipXmediaAdapter

LOCAL_STATIC_LIBRARIES := libsipxUnit libsipXcall libsipXmediaAdapter libsipXmedia libsipXtack libsipXsdp libsipXport libpcre $(SIPX_CODEC_LIBS)

LOCAL_LDLIBS += -lstdc++ -ldl

# Add sipXmediaLib dependencies
LOCAL_SHARED_LIBRARIES += $(SIPX_MEDIA_SHARED_LIBS)
LOCAL_LDLIBS += $(SIPX_MEDIA_LDLIBS)
LOCAL_CXXFLAGS += $(SIPX_MEDIA_CXXFLAGS)
LOCAL_C_INCLUDES += $(SIPX_MEDIA_C_INCLUDES)

include $(BUILD_EXECUTABLE)

{'fraction_non_alphanumeric': 0.13028367461957543, 'fraction_numerical': 0.0022543678376855157, 'mean_word_length': 3.3368635437881875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1321410', 'n_tokens_mistral': 4325, 'n_tokens_neox': 4188, 'n_words': 552}