You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
5.2 KiB

LOCAL_PATH:= $(call my-dir)
############################## libixml.so begin ##############################
include $(CLEAR_VARS)
LOCAL_MODULE := libixml
LOCAL_MULTILIB := both
LOCAL_MODULE_TAGS := optional
LOCAL_PRELINK_MODULE := false
LOCAL_STRIP_MODULE :=true
OPTFLAGS := -I.. -W -Wall -D_REENTRANT -D_LARGEFILE_SOURCE -O3 -DDEBUG
LOCAL_CFLAGS := $(OPTFLAGS)
LOCAL_CFLAGS += -O2
LOCAL_CFLAGS += -D_FORTIFY_SOURCE=2
LOCAL_CFLAGS += -fstack-protector-all
LOCAL_LDFLAGS += -s -Wl,-z,now -fpic -Wl,-z,relro
LOCAL_SRC_FILES := ixml/src/attr.c
LOCAL_SRC_FILES += ixml/src/document.c
LOCAL_SRC_FILES += ixml/src/element.c
LOCAL_SRC_FILES += ixml/src/ixml.c
LOCAL_SRC_FILES += ixml/src/ixmldebug.c
LOCAL_SRC_FILES += ixml/src/ixmlmembuf.c
LOCAL_SRC_FILES += ixml/src/ixmlparser.c
LOCAL_SRC_FILES += ixml/src/namedNodeMap.c
LOCAL_SRC_FILES += ixml/src/node.c
LOCAL_SRC_FILES += ixml/src/nodeList.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ixml/inc
LOCAL_C_INCLUDES += $(LOCAL_PATH)/ixml/src/inc
LOCAL_C_INCLUDES += $(LOCAL_PATH)/upnp/inc
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/build/inc
LOCAL_SHARED_LIBRARIES := liblog
LOCAL_EXPORT_C_INCLUDES := ixml/inc
include $(BUILD_SHARED_LIBRARY)
############################### libixml.so end ###############################
############################## libupnp.so begin ##############################
include $(CLEAR_VARS)
LOCAL_MODULE := libupnp
LOCAL_MULTILIB := both
LOCAL_MODULE_TAGS := optional
LOCAL_PRELINK_MODULE := false
LOCAL_STRIP_MODULE :=true
OPTFLAGS := -I.. -W -Wall -D_REENTRANT -D_LARGEFILE_SOURCE -O3 -DDEBUG
LOCAL_CFLAGS := $(OPTFLAGS)
LOCAL_CFLAGS += -Wno-tautological-pointer-compare
LOCAL_CFLAGS += -O2
LOCAL_CFLAGS += -D_FORTIFY_SOURCE=2
LOCAL_CFLAGS += -fstack-protector-all
LOCAL_CFLAGS += -Wno-shadow -Wno-format-nonliteral
LOCAL_LDFLAGS += -s -Wl,-z,now -fpic -Wl,-z,relro
# api
libupnp_la_SOURCES := upnp/src/api/UpnpActionComplete.c
libupnp_la_SOURCES += upnp/src/api/UpnpActionRequest.c
libupnp_la_SOURCES += upnp/src/api/upnpapi.c
libupnp_la_SOURCES += upnp/src/api/upnpdebug.c
libupnp_la_SOURCES += upnp/src/api/UpnpDiscovery.c
libupnp_la_SOURCES += upnp/src/api/UpnpEvent.c
libupnp_la_SOURCES += upnp/src/api/UpnpEventSubscribe.c
libupnp_la_SOURCES += upnp/src/api/UpnpExtraHeaders.c
libupnp_la_SOURCES += upnp/src/api/UpnpFileInfo.c
libupnp_la_SOURCES += upnp/src/api/UpnpStateVarComplete.c
libupnp_la_SOURCES += upnp/src/api/UpnpStateVarRequest.c
libupnp_la_SOURCES += upnp/src/api/UpnpString.c
libupnp_la_SOURCES += upnp/src/api/UpnpSubscriptionRequest.c
libupnp_la_SOURCES += upnp/src/api/upnptools.c
# gena
libupnp_la_SOURCES += upnp/src/gena/gena_callback2.c
libupnp_la_SOURCES += upnp/src/gena/gena_ctrlpt.c
libupnp_la_SOURCES += upnp/src/gena/gena_device.c
# genlib
libupnp_la_SOURCES += upnp/src/genlib/client_table/client_table.c
libupnp_la_SOURCES += upnp/src/genlib/client_table/GenlibClientSubscription.c
libupnp_la_SOURCES += upnp/src/genlib/miniserver/miniserver.c
libupnp_la_SOURCES += upnp/src/genlib/net/http/httpparser.c
libupnp_la_SOURCES += upnp/src/genlib/net/http/httpreadwrite.c
libupnp_la_SOURCES += upnp/src/genlib/net/http/parsetools.c
libupnp_la_SOURCES += upnp/src/genlib/net/http/statcodes.c
libupnp_la_SOURCES += upnp/src/genlib/net/http/webserver.c
libupnp_la_SOURCES += upnp/src/genlib/net/uri/uri.c
libupnp_la_SOURCES += upnp/src/genlib/net/sock.c
libupnp_la_SOURCES += upnp/src/genlib/service_table/service_table.c
libupnp_la_SOURCES += upnp/src/genlib/util/list.c
libupnp_la_SOURCES += upnp/src/genlib/util/membuffer.c
libupnp_la_SOURCES += upnp/src/genlib/util/strintmap.c
libupnp_la_SOURCES += upnp/src/genlib/util/upnp_timeout.c
libupnp_la_SOURCES += upnp/src/genlib/util/util.c
# soap
libupnp_la_SOURCES += upnp/src/soap/soap_common.c
libupnp_la_SOURCES += upnp/src/soap/soap_ctrlpt.c
libupnp_la_SOURCES += upnp/src/soap/soap_device.c
# ssdp
libupnp_la_SOURCES += upnp/src/ssdp/ssdp_ctrlpt.c
libupnp_la_SOURCES += upnp/src/ssdp/ssdp_device.c
libupnp_la_SOURCES += upnp/src/ssdp/ssdp_server.c
libupnp_la_SOURCES += upnp/src/ssdp/SSDPResultData.c
libupnp_la_SOURCES += upnp/src/ssdp/SSDPResultDataCallback.c
# threadutil
libupnp_la_SOURCES += upnp/src/threadutil/FreeList.c
libupnp_la_SOURCES += upnp/src/threadutil/LinkedList.c
libupnp_la_SOURCES += upnp/src/threadutil/ThreadPool.c
libupnp_la_SOURCES += upnp/src/threadutil/TimerThread.c
# urlconfig
libupnp_la_SOURCES += upnp/src/urlconfig/urlconfig.c
# uuid
libupnp_la_SOURCES += upnp/src/uuid/md5.c
libupnp_la_SOURCES += upnp/src/uuid/sysdep.c
libupnp_la_SOURCES += upnp/src/uuid/uuid.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/build/inc
LOCAL_C_INCLUDES += $(LOCAL_PATH)/ixml/inc
LOCAL_C_INCLUDES += $(LOCAL_PATH)/ixml/src/inc
LOCAL_C_INCLUDES += $(LOCAL_PATH)/upnp/inc
LOCAL_C_INCLUDES += $(LOCAL_PATH)/upnp/src/inc
LOCAL_C_INCLUDES += $(LOCAL_PATH)/upnp/src/threadutil/
LOCAL_C_INCLUDES += $(LOCAL_PATH)/upnp/src/threadutil/inc
LOCAL_C_INCLUDES += vendor/platform/secure_c/include
LOCAL_SRC_FILES := $(libupnp_la_SOURCES)
LOCAL_SHARED_LIBRARIES := libixml libuapi_securec liblog
LOCAL_LDLIBS += -llog
LOCAL_EXPORT_C_INCLUDES := upnp/inc
include $(BUILD_SHARED_LIBRARY)
############################### libupnp.so end ###############################