28 changed files with 198 additions and 1425 deletions
@ -1,178 +0,0 @@
|
||||
cmake_minimum_required (VERSION 2.6) |
||||
|
||||
project (miniupnpc C) |
||||
set (MINIUPNPC_VERSION 1.9) |
||||
set (MINIUPNPC_API_VERSION 15) |
||||
|
||||
if (NOT CMAKE_BUILD_TYPE) |
||||
if (WIN32) |
||||
set (DEFAULT_BUILD_TYPE MinSizeRel) |
||||
else (WIN32) |
||||
set (DEFAULT_BUILD_TYPE RelWithDebInfo) |
||||
endif(WIN32) |
||||
set (CMAKE_BUILD_TYPE ${DEFAULT_BUILD_TYPE} CACHE STRING |
||||
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." |
||||
FORCE) |
||||
endif() |
||||
|
||||
option (UPNPC_BUILD_STATIC "Build static library" TRUE) |
||||
option (UPNPC_BUILD_SHARED "Build shared library" TRUE) |
||||
if (NOT WIN32) |
||||
option (UPNPC_BUILD_TESTS "Build test executables" TRUE) |
||||
endif (NOT WIN32) |
||||
option (NO_GETADDRINFO "Define NO_GETADDRINFO" FALSE) |
||||
|
||||
mark_as_advanced (NO_GETADDRINFO) |
||||
|
||||
if (NO_GETADDRINFO) |
||||
add_definitions (-DNO_GETADDRINFO) |
||||
endif (NO_GETADDRINFO) |
||||
|
||||
if (NOT WIN32) |
||||
add_definitions (-DMINIUPNPC_SET_SOCKET_TIMEOUT) |
||||
add_definitions (-D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112L) |
||||
else (NOT WIN32) |
||||
add_definitions (-D_WIN32_WINNT=0x0501) # XP or higher for getnameinfo and friends |
||||
endif (NOT WIN32) |
||||
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") |
||||
add_definitions (-D_DARWIN_C_SOURCE) |
||||
endif () |
||||
|
||||
# Set compiler specific build flags |
||||
if (CMAKE_COMPILER_IS_GNUC) |
||||
# Set our own default flags at first run. |
||||
if (NOT CONFIGURED) |
||||
|
||||
if (NOT CMAKE_SYSTEM_NAME STREQUAL "AmigaOS") |
||||
set (_PIC -fPIC) |
||||
endif (CMAKE_SYSTEM_NAME STREQUAL "AmigaOS") |
||||
|
||||
set (CMAKE_C_FLAGS "${_PIC} -Wall $ENV{CFLAGS}" # CMAKE_C_FLAGS gets appended to the other C flags |
||||
CACHE STRING "Flags used by the C compiler during normal builds." FORCE) |
||||
set (CMAKE_C_FLAGS_DEBUG "-g -DDDEBUG" |
||||
CACHE STRING "Flags used by the C compiler during debug builds." FORCE) |
||||
set (CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG" |
||||
CACHE STRING "Flags used by the C compiler during release builds." FORCE) |
||||
set (CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG" |
||||
CACHE STRING "Flags used by the C compiler during release builds." FORCE) |
||||
set (CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG" |
||||
CACHE STRING "Flags used by the C compiler during release builds." FORCE) |
||||
|
||||
endif (NOT CONFIGURED) |
||||
endif () |
||||
|
||||
configure_file (${CMAKE_SOURCE_DIR}/miniupnpcstrings.h.cmake ${CMAKE_BINARY_DIR}/miniupnpcstrings.h) |
||||
include_directories (${CMAKE_BINARY_DIR}) |
||||
|
||||
set (MINIUPNPC_SOURCES |
||||
igd_desc_parse.c |
||||
miniupnpc.c |
||||
minixml.c |
||||
minisoap.c |
||||
minissdpc.c |
||||
miniwget.c |
||||
upnpc.c |
||||
upnpcommands.c |
||||
upnpdev.c |
||||
upnpreplyparse.c |
||||
upnperrors.c |
||||
connecthostport.c |
||||
portlistingparse.c |
||||
receivedata.c |
||||
) |
||||
|
||||
if (NOT WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "AmigaOS") |
||||
set (MINIUPNPC_SOURCES ${MINIUPNPC_SOURCES} minissdpc.c) |
||||
endif (NOT WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "AmigaOS") |
||||
|
||||
if (WIN32) |
||||
set_source_files_properties (${MINIUPNPC_SOURCES} PROPERTIES |
||||
COMPILE_DEFINITIONS "MINIUPNP_STATICLIB;MINIUPNP_EXPORTS" |
||||
) |
||||
endif (WIN32) |
||||
|
||||
if (WIN32) |
||||
find_library (WINSOCK2_LIBRARY NAMES ws2_32 WS2_32 Ws2_32) |
||||
find_library (IPHLPAPI_LIBRARY NAMES iphlpapi) |
||||
set (LDLIBS ${WINSOCK2_LIBRARY} ${IPHLPAPI_LIBRARY} ${LDLIBS}) |
||||
#elseif (CMAKE_SYSTEM_NAME STREQUAL "Solaris") |
||||
# find_library (SOCKET_LIBRARY NAMES socket) |
||||
# find_library (NSL_LIBRARY NAMES nsl) |
||||
# find_library (RESOLV_LIBRARY NAMES resolv) |
||||
# set (LDLIBS ${SOCKET_LIBRARY} ${NSL_LIBRARY} ${RESOLV_LIBRARY} ${LDLIBS}) |
||||
endif (WIN32) |
||||
|
||||
if (NOT UPNPC_BUILD_STATIC AND NOT UPNPC_BUILD_SHARED) |
||||
message (FATAL "Both shared and static libraries are disabled!") |
||||
endif (NOT UPNPC_BUILD_STATIC AND NOT UPNPC_BUILD_SHARED) |
||||
|
||||
if (UPNPC_BUILD_STATIC) |
||||
add_library (upnpc-static STATIC ${MINIUPNPC_SOURCES}) |
||||
set_target_properties (upnpc-static PROPERTIES OUTPUT_NAME "miniupnpc") |
||||
target_link_libraries (upnpc-static ${LDLIBS}) |
||||
set (UPNPC_INSTALL_TARGETS ${UPNPC_INSTALL_TARGETS} upnpc-static) |
||||
set (UPNPC_LIBRARY_TARGET upnpc-static) |
||||
endif (UPNPC_BUILD_STATIC) |
||||
|
||||
if (UPNPC_BUILD_SHARED) |
||||
add_library (upnpc-shared SHARED ${MINIUPNPC_SOURCES}) |
||||
set_target_properties (upnpc-shared PROPERTIES OUTPUT_NAME "miniupnpc") |
||||
set_target_properties (upnpc-shared PROPERTIES VERSION ${MINIUPNPC_VERSION}) |
||||
set_target_properties (upnpc-shared PROPERTIES SOVERSION ${MINIUPNPC_API_VERSION}) |
||||
target_link_libraries (upnpc-shared ${LDLIBS}) |
||||
set (UPNPC_INSTALL_TARGETS ${UPNPC_INSTALL_TARGETS} upnpc-shared) |
||||
set (UPNPC_LIBRARY_TARGET upnpc-shared) |
||||
endif (UPNPC_BUILD_SHARED) |
||||
|
||||
if (UPNPC_BUILD_TESTS) |
||||
add_executable (testminixml testminixml.c minixml.c igd_desc_parse.c) |
||||
target_link_libraries (testminixml ${LDLIBS}) |
||||
|
||||
add_executable (minixmlvalid minixmlvalid.c minixml.c) |
||||
target_link_libraries (minixmlvalid ${LDLIBS}) |
||||
|
||||
add_executable (testupnpreplyparse testupnpreplyparse.c |
||||
minixml.c upnpreplyparse.c) |
||||
target_link_libraries (testupnpreplyparse ${LDLIBS}) |
||||
|
||||
add_executable (testigddescparse testigddescparse.c |
||||
igd_desc_parse.c minixml.c miniupnpc.c miniwget.c minissdpc.c |
||||
upnpcommands.c upnpreplyparse.c minisoap.c connecthostport.c |
||||
portlistingparse.c receivedata.c |
||||
) |
||||
target_link_libraries (testigddescparse ${LDLIBS}) |
||||
|
||||
add_executable (testminiwget testminiwget.c |
||||
miniwget.c miniupnpc.c minisoap.c upnpcommands.c minissdpc.c |
||||
upnpreplyparse.c minixml.c igd_desc_parse.c connecthostport.c |
||||
portlistingparse.c receivedata.c |
||||
) |
||||
target_link_libraries (testminiwget ${LDLIBS}) |
||||
|
||||
# set (UPNPC_INSTALL_TARGETS ${UPNPC_INSTALL_TARGETS} testminixml minixmlvalid testupnpreplyparse testigddescparse testminiwget) |
||||
endif (UPNPC_BUILD_TESTS) |
||||
|
||||
|
||||
install (TARGETS ${UPNPC_INSTALL_TARGETS} |
||||
RUNTIME DESTINATION bin |
||||
LIBRARY DESTINATION lib${LIB_SUFFIX} |
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX} |
||||
) |
||||
install (FILES |
||||
miniupnpc.h |
||||
miniwget.h |
||||
upnpcommands.h |
||||
igd_desc_parse.h |
||||
upnpreplyparse.h |
||||
upnperrors.h |
||||
upnpdev.h |
||||
miniupnpctypes.h |
||||
portlistingparse.h |
||||
miniupnpc_declspec.h |
||||
DESTINATION include/miniupnpc |
||||
) |
||||
|
||||
set (CONFIGURED YES CACHE INTERNAL "") |
||||
|
||||
# vim: ts=2:sw=2 |
||||
@ -1,379 +0,0 @@
|
||||
# $Id: Makefile,v 1.132 2015/10/26 16:59:54 nanard Exp $
|
||||
# MiniUPnP Project
|
||||
# http://miniupnp.free.fr/
|
||||
# http://miniupnp.tuxfamily.org/
|
||||
# https://github.com/miniupnp/miniupnp
|
||||
# (c) 2005-2015 Thomas Bernard
|
||||
# to install use :
|
||||
# $ make DESTDIR=/tmp/dummylocation install
|
||||
# or
|
||||
# $ INSTALLPREFIX=/usr/local make install
|
||||
# or
|
||||
# $ make install (default INSTALLPREFIX is /usr)
|
||||
OS = $(shell uname -s)
|
||||
VERSION = $(shell cat VERSION)
|
||||
|
||||
ifeq ($(OS), Darwin) |
||||
JARSUFFIX=mac
|
||||
LIBTOOL ?= $(shell which libtool)
|
||||
endif |
||||
ifeq ($(OS), Linux) |
||||
JARSUFFIX=linux
|
||||
endif |
||||
ifneq (,$(findstring NT-5.1,$(OS))) |
||||
JARSUFFIX=win32
|
||||
endif |
||||
|
||||
HAVE_IPV6 ?= yes
|
||||
export HAVE_IPV6 |
||||
|
||||
CC ?= gcc
|
||||
#AR = gar
|
||||
#CFLAGS = -O -g -DDEBUG
|
||||
CFLAGS ?= -O
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -W -Wstrict-prototypes
|
||||
CFLAGS += -fno-common
|
||||
CFLAGS += -DMINIUPNPC_SET_SOCKET_TIMEOUT
|
||||
CFLAGS += -DMINIUPNPC_GET_SRC_ADDR
|
||||
CFLAGS += -D_BSD_SOURCE
|
||||
CFLAGS += -D_DEFAULT_SOURCE
|
||||
ifneq ($(OS), FreeBSD) |
||||
ifneq ($(OS), Darwin) |
||||
#CFLAGS += -D_POSIX_C_SOURCE=200112L
|
||||
CFLAGS += -D_XOPEN_SOURCE=600
|
||||
endif |
||||
endif |
||||
#CFLAGS += -ansi
|
||||
# -DNO_GETADDRINFO
|
||||
INSTALL = install
|
||||
SH = /bin/sh
|
||||
JAVA = java
|
||||
# see http://code.google.com/p/jnaerator/
|
||||
#JNAERATOR = jnaerator-0.9.7.jar
|
||||
#JNAERATOR = jnaerator-0.9.8-shaded.jar
|
||||
#JNAERATORARGS = -library miniupnpc
|
||||
#JNAERATOR = jnaerator-0.10-shaded.jar
|
||||
#JNAERATOR = jnaerator-0.11-shaded.jar
|
||||
# https://repo1.maven.org/maven2/com/nativelibs4java/jnaerator/0.12/jnaerator-0.12-shaded.jar
|
||||
JNAERATOR = jnaerator-0.12-shaded.jar
|
||||
JNAERATORARGS = -mode StandaloneJar -runtime JNAerator -library miniupnpc
|
||||
#JNAERATORBASEURL = http://jnaerator.googlecode.com/files/
|
||||
JNAERATORBASEURL = https://repo1.maven.org/maven2/com/nativelibs4java/jnaerator/0.12
|
||||
|
||||
ifeq (SunOS, $(OS)) |
||||
LDFLAGS=-lsocket -lnsl -lresolv
|
||||
endif |
||||
|
||||
# APIVERSION is used to build SONAME
|
||||
APIVERSION = 15
|
||||
|
||||
SRCS = igd_desc_parse.c miniupnpc.c minixml.c minisoap.c miniwget.c \
|
||||
upnpc.c upnpcommands.c upnpreplyparse.c testminixml.c \
|
||||
minixmlvalid.c testupnpreplyparse.c minissdpc.c \
|
||||
upnperrors.c testigddescparse.c testminiwget.c \
|
||||
connecthostport.c portlistingparse.c receivedata.c \
|
||||
upnpdev.c testportlistingparse.c miniupnpcmodule.c \
|
||||
minihttptestserver.c \
|
||||
listdevices.c
|
||||
|
||||
LIBOBJS = miniwget.o minixml.o igd_desc_parse.o minisoap.o \
|
||||
miniupnpc.o upnpreplyparse.o upnpcommands.o upnperrors.o \
|
||||
connecthostport.o portlistingparse.o receivedata.o upnpdev.o
|
||||
|
||||
ifneq ($(OS), AmigaOS) |
||||
CFLAGS := -fPIC $(CFLAGS)
|
||||
LIBOBJS := $(LIBOBJS) minissdpc.o
|
||||
endif |
||||
|
||||
OBJS = $(patsubst %.c,%.o,$(SRCS))
|
||||
|
||||
# HEADERS to install
|
||||
HEADERS = miniupnpc.h miniwget.h upnpcommands.h igd_desc_parse.h \
|
||||
upnpreplyparse.h upnperrors.h miniupnpctypes.h \
|
||||
portlistingparse.h \
|
||||
upnpdev.h \
|
||||
miniupnpc_declspec.h
|
||||
|
||||
# library names
|
||||
LIBRARY = libminiupnpc.a
|
||||
ifeq ($(OS), Darwin) |
||||
SHAREDLIBRARY = libminiupnpc.dylib
|
||||
SONAME = $(basename $(SHAREDLIBRARY)).$(APIVERSION).dylib
|
||||
CFLAGS := -D_DARWIN_C_SOURCE $(CFLAGS)
|
||||
else |
||||
ifeq ($(JARSUFFIX), win32) |
||||
SHAREDLIBRARY = miniupnpc.dll
|
||||
else |
||||
# Linux/BSD/etc.
|
||||
SHAREDLIBRARY = libminiupnpc.so
|
||||
SONAME = $(SHAREDLIBRARY).$(APIVERSION)
|
||||
endif |
||||
endif |
||||
|
||||
EXECUTABLES = upnpc-static listdevices
|
||||
EXECUTABLES_ADDTESTS = testminixml minixmlvalid testupnpreplyparse \
|
||||
testigddescparse testminiwget testportlistingparse
|
||||
|
||||
TESTMINIXMLOBJS = minixml.o igd_desc_parse.o testminixml.o
|
||||
|
||||
TESTMINIWGETOBJS = miniwget.o testminiwget.o connecthostport.o receivedata.o
|
||||
|
||||
TESTUPNPREPLYPARSE = testupnpreplyparse.o minixml.o upnpreplyparse.o
|
||||
|
||||
TESTPORTLISTINGPARSE = testportlistingparse.o minixml.o portlistingparse.o
|
||||
|
||||
TESTIGDDESCPARSE = testigddescparse.o igd_desc_parse.o minixml.o \
|
||||
miniupnpc.o miniwget.o upnpcommands.o upnpreplyparse.o \
|
||||
minisoap.o connecthostport.o receivedata.o \
|
||||
portlistingparse.o
|
||||
|
||||
ifneq ($(OS), AmigaOS) |
||||
EXECUTABLES := $(EXECUTABLES) upnpc-shared
|
||||
TESTMINIWGETOBJS := $(TESTMINIWGETOBJS) minissdpc.o
|
||||
TESTIGDDESCPARSE := $(TESTIGDDESCPARSE) minissdpc.o
|
||||
endif |
||||
|
||||
LIBDIR ?= lib
|
||||
# install directories
|
||||
INSTALLPREFIX ?= $(PREFIX)/usr
|
||||
INSTALLDIRINC = $(INSTALLPREFIX)/include/miniupnpc
|
||||
INSTALLDIRLIB = $(INSTALLPREFIX)/$(LIBDIR)
|
||||
INSTALLDIRBIN = $(INSTALLPREFIX)/bin
|
||||
INSTALLDIRMAN = $(INSTALLPREFIX)/share/man
|
||||
|
||||
FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES)
|
||||
ifneq ($(OS), AmigaOS) |
||||
FILESTOINSTALL := $(FILESTOINSTALL) $(SHAREDLIBRARY)
|
||||
endif |
||||
|
||||
|
||||
.PHONY: install clean depend all check test everything \
|
||||
installpythonmodule updateversion
|
||||
# validateminixml validateminiwget
|
||||
|
||||
all: $(LIBRARY) $(EXECUTABLES) |
||||
|
||||
test: check |
||||
|
||||
check: validateminixml validateminiwget validateupnpreplyparse \
|
||||
validateportlistingparse validateigddescparse
|
||||
|
||||
everything: all $(EXECUTABLES_ADDTESTS) |
||||
|
||||
pythonmodule: $(LIBRARY) miniupnpcmodule.c setup.py |
||||
python setup.py build
|
||||
touch $@
|
||||
|
||||
installpythonmodule: pythonmodule |
||||
python setup.py install
|
||||
|
||||
pythonmodule3: $(LIBRARY) miniupnpcmodule.c setup.py |
||||
python3 setup.py build
|
||||
touch $@
|
||||
|
||||
installpythonmodule3: pythonmodule3 |
||||
python3 setup.py install
|
||||
|
||||
validateminixml: minixmlvalid |
||||
@echo "minixml validation test"
|
||||
./minixmlvalid
|
||||
touch $@
|
||||
|
||||
validateminiwget: testminiwget minihttptestserver testminiwget.sh |
||||
@echo "miniwget validation test"
|
||||
./testminiwget.sh
|
||||
touch $@
|
||||
|
||||
validateupnpreplyparse: testupnpreplyparse testupnpreplyparse.sh |
||||
@echo "upnpreplyparse validation test"
|
||||
./testupnpreplyparse.sh
|
||||
touch $@
|
||||
|
||||
validateportlistingparse: testportlistingparse |
||||
@echo "portlistingparse validation test"
|
||||
./testportlistingparse
|
||||
touch $@
|
||||
|
||||
validateigddescparse: testigddescparse |
||||
@echo "igd desc parse validation test"
|
||||
./testigddescparse testdesc/new_LiveBox_desc.xml testdesc/new_LiveBox_desc.values
|
||||
./testigddescparse testdesc/linksys_WAG200G_desc.xml testdesc/linksys_WAG200G_desc.values
|
||||
touch $@
|
||||
|
||||
clean: |
||||
$(RM) $(LIBRARY) $(SHAREDLIBRARY) $(EXECUTABLES) $(OBJS) miniupnpcstrings.h
|
||||
$(RM) $(EXECUTABLES_ADDTESTS)
|
||||
# clean python stuff
|
||||
$(RM) pythonmodule pythonmodule3
|
||||
$(RM) validateminixml validateminiwget validateupnpreplyparse
|
||||
$(RM) validateigddescparse
|
||||
$(RM) minihttptestserver
|
||||
$(RM) -r build/ dist/
|
||||
#python setup.py clean
|
||||
# clean jnaerator stuff
|
||||
$(RM) _jnaerator.* java/miniupnpc_$(OS).jar
|
||||
|
||||
distclean: clean |
||||
$(RM) $(JNAERATOR) java/*.jar java/*.class out.errors.txt
|
||||
|
||||
updateversion: miniupnpc.h |
||||
cp miniupnpc.h miniupnpc.h.bak
|
||||
sed 's/\(.*MINIUPNPC_API_VERSION\s\+\)[0-9]\+/\1$(APIVERSION)/' < miniupnpc.h.bak > miniupnpc.h
|
||||
|
||||
install: updateversion $(FILESTOINSTALL) |
||||
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRINC)
|
||||
$(INSTALL) -m 644 $(HEADERS) $(DESTDIR)$(INSTALLDIRINC)
|
||||
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRLIB)
|
||||
$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)
|
||||
ifneq ($(OS), AmigaOS) |
||||
$(INSTALL) -m 644 $(SHAREDLIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/$(SONAME)
|
||||
ln -fs $(SONAME) $(DESTDIR)$(INSTALLDIRLIB)/$(SHAREDLIBRARY)
|
||||
endif |
||||
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRBIN)
|
||||
ifeq ($(OS), AmigaOS) |
||||
$(INSTALL) -m 755 upnpc-static $(DESTDIR)$(INSTALLDIRBIN)/upnpc
|
||||
else |
||||
$(INSTALL) -m 755 upnpc-shared $(DESTDIR)$(INSTALLDIRBIN)/upnpc
|
||||
endif |
||||
$(INSTALL) -m 755 external-ip.sh $(DESTDIR)$(INSTALLDIRBIN)/external-ip
|
||||
ifneq ($(OS), AmigaOS) |
||||
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRMAN)/man3
|
||||
$(INSTALL) -m 644 man3/miniupnpc.3 $(DESTDIR)$(INSTALLDIRMAN)/man3/miniupnpc.3
|
||||
ifeq ($(OS), Linux) |
||||
gzip -f $(DESTDIR)$(INSTALLDIRMAN)/man3/miniupnpc.3
|
||||
endif |
||||
endif |
||||
|
||||
install-static: updateversion $(FILESTOINSTALL) |
||||
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRINC)
|
||||
$(INSTALL) -m 644 $(HEADERS) $(DESTDIR)$(INSTALLDIRINC)
|
||||
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRLIB)
|
||||
$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)
|
||||
$(INSTALL) -d $(DESTDIR)$(INSTALLDIRBIN)
|
||||
$(INSTALL) -m 755 external-ip.sh $(DESTDIR)$(INSTALLDIRBIN)/external-ip
|
||||
|
||||
cleaninstall: |
||||
$(RM) -r $(DESTDIR)$(INSTALLDIRINC)
|
||||
$(RM) $(DESTDIR)$(INSTALLDIRLIB)/$(LIBRARY)
|
||||
$(RM) $(DESTDIR)$(INSTALLDIRLIB)/$(SHAREDLIBRARY)
|
||||
|
||||
depend: |
||||
makedepend -Y -- $(CFLAGS) -- $(SRCS) 2>/dev/null
|
||||
|
||||
$(LIBRARY): $(LIBOBJS) |
||||
ifeq ($(OS), Darwin) |
||||
$(LIBTOOL) -static -o $@ $?
|
||||
else |
||||
$(AR) crs $@ $?
|
||||
endif |
||||
|
||||
$(SHAREDLIBRARY): $(LIBOBJS) |
||||
ifeq ($(OS), Darwin) |
||||
# $(CC) -dynamiclib $(LDFLAGS) -Wl,-install_name,$(SONAME) -o $@ $^
|
||||
$(CC) -dynamiclib $(LDFLAGS) -Wl,-install_name,$(INSTALLDIRLIB)/$(SONAME) -o $@ $^
|
||||
else |
||||
$(CC) -shared $(LDFLAGS) -Wl,-soname,$(SONAME) -o $@ $^
|
||||
endif |
||||
|
||||
upnpc-static: upnpc.o $(LIBRARY) |
||||
$(CC) $(LDFLAGS) -o $@ $^ $(LOADLIBES) $(LDLIBS)
|
||||
|
||||
upnpc-shared: upnpc.o $(SHAREDLIBRARY) |
||||
$(CC) $(LDFLAGS) -o $@ $^ $(LOADLIBES) $(LDLIBS)
|
||||
|
||||
listdevices: listdevices.o $(LIBRARY) |
||||
|
||||
testminixml: $(TESTMINIXMLOBJS) |
||||
|
||||
testminiwget: $(TESTMINIWGETOBJS) |
||||
|
||||
minixmlvalid: minixml.o minixmlvalid.o |
||||
|
||||
testupnpreplyparse: $(TESTUPNPREPLYPARSE) |
||||
|
||||
testigddescparse: $(TESTIGDDESCPARSE) |
||||
|
||||
testportlistingparse: $(TESTPORTLISTINGPARSE) |
||||
|
||||
miniupnpcstrings.h: miniupnpcstrings.h.in updateminiupnpcstrings.sh VERSION |
||||
$(SH) updateminiupnpcstrings.sh
|
||||
|
||||
# ftp tool supplied with OpenBSD can download files from http.
|
||||
jnaerator-%.jar: |
||||
wget $(JNAERATORBASEURL)/$@ || \
|
||||
curl -o $@ $(JNAERATORBASEURL)/$@ || \
|
||||
ftp $(JNAERATORBASEURL)/$@
|
||||
|
||||
jar: $(SHAREDLIBRARY) $(JNAERATOR) |
||||
$(JAVA) -jar $(JNAERATOR) $(JNAERATORARGS) \
|
||||
miniupnpc.h miniupnpc_declspec.h upnpcommands.h upnpreplyparse.h \
|
||||
igd_desc_parse.h miniwget.h upnperrors.h $(SHAREDLIBRARY) \
|
||||
-package fr.free.miniupnp -o . -jar java/miniupnpc_$(JARSUFFIX).jar -v
|
||||
|
||||
mvn_install: |
||||
mvn install:install-file -Dfile=java/miniupnpc_$(JARSUFFIX).jar \
|
||||
-DgroupId=com.github \
|
||||
-DartifactId=miniupnp \
|
||||
-Dversion=$(VERSION) \
|
||||
-Dpackaging=jar \
|
||||
-Dclassifier=$(JARSUFFIX) \
|
||||
-DgeneratePom=true \
|
||||
-DcreateChecksum=true
|
||||
|
||||
# make .deb packages
|
||||
deb: /usr/share/pyshared/stdeb all |
||||
(python setup.py --command-packages=stdeb.command bdist_deb)
|
||||
|
||||
# install .deb packages
|
||||
ideb: |
||||
(sudo dpkg -i deb_dist/*.deb)
|
||||
|
||||
/usr/share/pyshared/stdeb: /usr/share/doc/python-all-dev |
||||
(sudo apt-get install python-stdeb)
|
||||
|
||||
/usr/share/doc/python-all-dev: |
||||
(sudo apt-get install python-all-dev)
|
||||
|
||||
minihttptestserver: minihttptestserver.o |
||||
|
||||
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||||
|
||||
igd_desc_parse.o: igd_desc_parse.h |
||||
miniupnpc.o: miniupnpc.h miniupnpc_declspec.h igd_desc_parse.h upnpdev.h |
||||
miniupnpc.o: minissdpc.h miniwget.h minisoap.h minixml.h upnpcommands.h |
||||
miniupnpc.o: upnpreplyparse.h portlistingparse.h miniupnpctypes.h |
||||
miniupnpc.o: connecthostport.h |
||||
minixml.o: minixml.h |
||||
minisoap.o: minisoap.h miniupnpcstrings.h |
||||
miniwget.o: miniupnpcstrings.h miniwget.h miniupnpc_declspec.h |
||||
miniwget.o: connecthostport.h receivedata.h |
||||
upnpc.o: miniwget.h miniupnpc_declspec.h miniupnpc.h igd_desc_parse.h |
||||
upnpc.o: upnpdev.h upnpcommands.h upnpreplyparse.h portlistingparse.h |
||||
upnpc.o: miniupnpctypes.h upnperrors.h miniupnpcstrings.h |
||||
upnpcommands.o: upnpcommands.h upnpreplyparse.h portlistingparse.h |
||||
upnpcommands.o: miniupnpc_declspec.h miniupnpctypes.h miniupnpc.h |
||||
upnpcommands.o: igd_desc_parse.h upnpdev.h |
||||
upnpreplyparse.o: upnpreplyparse.h minixml.h |
||||
testminixml.o: minixml.h igd_desc_parse.h |
||||
minixmlvalid.o: minixml.h |
||||
testupnpreplyparse.o: upnpreplyparse.h |
||||
minissdpc.o: minissdpc.h miniupnpc_declspec.h upnpdev.h miniupnpc.h |
||||
minissdpc.o: igd_desc_parse.h receivedata.h codelength.h |
||||
upnperrors.o: upnperrors.h miniupnpc_declspec.h upnpcommands.h |
||||
upnperrors.o: upnpreplyparse.h portlistingparse.h miniupnpctypes.h |
||||
upnperrors.o: miniupnpc.h igd_desc_parse.h upnpdev.h |
||||
testigddescparse.o: igd_desc_parse.h minixml.h miniupnpc.h |
||||
testigddescparse.o: miniupnpc_declspec.h upnpdev.h |
||||
testminiwget.o: miniwget.h miniupnpc_declspec.h |
||||
connecthostport.o: connecthostport.h |
||||
portlistingparse.o: portlistingparse.h miniupnpc_declspec.h miniupnpctypes.h |
||||
portlistingparse.o: minixml.h |
||||
receivedata.o: receivedata.h |
||||
upnpdev.o: upnpdev.h miniupnpc_declspec.h |
||||
testportlistingparse.o: portlistingparse.h miniupnpc_declspec.h |
||||
testportlistingparse.o: miniupnpctypes.h |
||||
miniupnpcmodule.o: miniupnpc.h miniupnpc_declspec.h igd_desc_parse.h |
||||
miniupnpcmodule.o: upnpdev.h upnpcommands.h upnpreplyparse.h |
||||
miniupnpcmodule.o: portlistingparse.h miniupnpctypes.h upnperrors.h |
||||
listdevices.o: miniupnpc.h miniupnpc_declspec.h igd_desc_parse.h upnpdev.h |
||||
@ -1,98 +0,0 @@
|
||||
# $Id: Makefile.mingw,v 1.22 2015/10/26 16:59:54 nanard Exp $
|
||||
# Miniupnp project.
|
||||
# http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||
# (c) 2005-2015 Thomas Bernard
|
||||
# This Makefile is made for MinGW
|
||||
#
|
||||
CC ?= gcc
|
||||
#CFLAGS = -Wall -g -DDEBUG -D_WIN32_WINNT=0X501
|
||||
CFLAGS = -Wall -Os -DNDEBUG -D_WIN32_WINNT=0X501
|
||||
LDLIBS = -lws2_32 -liphlpapi
|
||||
# -lwsock32
|
||||
# -liphlpapi is needed for GetBestRoute() and GetIpAddrTable()
|
||||
PYTHON=\utils\python25\python
|
||||
OBJS=miniwget.o minixml.o igd_desc_parse.o minisoap.o \
|
||||
minissdpc.o \
|
||||
miniupnpc.o upnpreplyparse.o upnpcommands.o upnperrors.o \
|
||||
connecthostport.o portlistingparse.o receivedata.o \
|
||||
upnpdev.o
|
||||
OBJSDLL=$(addprefix dll/, $(OBJS))
|
||||
|
||||
all: init upnpc-static upnpc-shared testminixml libminiupnpc.a miniupnpc.dll |
||||
|
||||
init: |
||||
mkdir dll
|
||||
echo init > init
|
||||
|
||||
clean: |
||||
del upnpc testminixml *.o
|
||||
del dll\*.o
|
||||
del *.exe
|
||||
del miniupnpc.dll
|
||||
del libminiupnpc.a
|
||||
|
||||
libminiupnpc.a: $(OBJS) |
||||
$(AR) cr $@ $?
|
||||
|
||||
pythonmodule: libminiupnpc.a |
||||
$(PYTHON) setupmingw32.py build --compiler=mingw32
|
||||
$(PYTHON) setupmingw32.py install --skip-build
|
||||
|
||||
miniupnpc.dll: libminiupnpc.a $(OBJSDLL) |
||||
dllwrap -k --driver-name gcc \
|
||||
--def miniupnpc.def \
|
||||
--output-def miniupnpc.dll.def \
|
||||
--implib miniupnpc.lib -o $@ \
|
||||
$(OBJSDLL) $(LDLIBS)
|
||||
|
||||
miniupnpc.lib: miniupnpc.dll |
||||
# echo $@ generated with $<
|
||||
|
||||
dll/upnpc.o: upnpc.o |
||||
# echo $@ generated with $<
|
||||
|
||||
.c.o: |
||||
$(CC) $(CFLAGS) -DMINIUPNP_STATICLIB -c -o $@ $<
|
||||
$(CC) $(CFLAGS) -DMINIUPNP_EXPORTS -c -o dll/$@ $<
|
||||
|
||||
upnpc.o: upnpc.c |
||||
$(CC) $(CFLAGS) -DMINIUPNP_STATICLIB -c -o $@ $<
|
||||
$(CC) $(CFLAGS) -c -o dll/$@ $<
|
||||
|
||||
# --enable-stdcall-fixup
|
||||
upnpc-static: upnpc.o libminiupnpc.a |
||||
$(CC) -o $@ $^ $(LDLIBS)
|
||||
|
||||
upnpc-shared: dll/upnpc.o miniupnpc.lib |
||||
$(CC) -o $@ $^ $(LDLIBS)
|
||||
|
||||
wingenminiupnpcstrings: wingenminiupnpcstrings.o |
||||
|
||||
wingenminiupnpcstrings.o: wingenminiupnpcstrings.c |
||||
|
||||
miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings |
||||
wingenminiupnpcstrings $< $@
|
||||
|
||||
minixml.o: minixml.c minixml.h |
||||
|
||||
upnpc.o: miniwget.h minisoap.h miniupnpc.h igd_desc_parse.h |
||||
upnpc.o: upnpreplyparse.h upnpcommands.h upnperrors.h miniupnpcstrings.h |
||||
|
||||
miniwget.o: miniwget.c miniwget.h miniupnpcstrings.h connecthostport.h |
||||
|
||||
minisoap.o: minisoap.c minisoap.h miniupnpcstrings.h |
||||
|
||||
miniupnpc.o: miniupnpc.c miniupnpc.h minisoap.h miniwget.h minixml.h |
||||
|
||||
igd_desc_parse.o: igd_desc_parse.c igd_desc_parse.h |
||||
|
||||
testminixml: minixml.o igd_desc_parse.o testminixml.c |
||||
|
||||
upnpreplyparse.o: upnpreplyparse.c upnpreplyparse.h minixml.h |
||||
|
||||
upnpcommands.o: upnpcommands.c upnpcommands.h upnpreplyparse.h miniupnpc.h portlistingparse.h |
||||
|
||||
minissdpc.o: minissdpc.c minissdpc.h receivedata.h |
||||
|
||||
upnpdev.o: upnpdev.c upnpdev.h |
||||
|
||||
@ -1,97 +0,0 @@
|
||||
import java.nio.ByteBuffer; |
||||
import java.nio.IntBuffer; |
||||
|
||||
import fr.free.miniupnp.*; |
||||
|
||||
/** |
||||
* |
||||
* @author syuu |
||||
*/ |
||||
public class JavaBridgeTest { |
||||
public static void main(String[] args) { |
||||
int UPNP_DELAY = 2000; |
||||
MiniupnpcLibrary miniupnpc = MiniupnpcLibrary.INSTANCE; |
||||
UPNPDev devlist = null; |
||||
UPNPUrls urls = new UPNPUrls(); |
||||
IGDdatas data = new IGDdatas(); |
||||
ByteBuffer lanaddr = ByteBuffer.allocate(16); |
||||
ByteBuffer intClient = ByteBuffer.allocate(16); |
||||
ByteBuffer intPort = ByteBuffer.allocate(6); |
||||
ByteBuffer desc = ByteBuffer.allocate(80); |
||||
ByteBuffer enabled = ByteBuffer.allocate(4); |
||||
ByteBuffer leaseDuration = ByteBuffer.allocate(16); |
||||
int ret; |
||||
int i; |
||||
|
||||
if(args.length < 2) { |
||||
System.err.println("Usage : java [...] JavaBridgeTest port protocol"); |
||||
System.out.println(" port is numeric, protocol is TCP or UDP"); |
||||
return; |
||||
} |
||||
|
||||
devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, 0, (byte)2, IntBuffer.allocate(1)); |
||||
if (devlist != null) { |
||||
System.out.println("List of UPNP devices found on the network :"); |
||||
for (UPNPDev device = devlist; device != null; device = device.pNext) { |
||||
System.out.println("desc: " + device.descURL.getString(0) + " st: " + device.st.getString(0)); |
||||
} |
||||
if ((i = miniupnpc.UPNP_GetValidIGD(devlist, urls, data, lanaddr, 16)) != 0) { |
||||
switch (i) { |
||||
case 1: |
||||
System.out.println("Found valid IGD : " + urls.controlURL.getString(0)); |
||||
break; |
||||
case 2: |
||||
System.out.println("Found a (not connected?) IGD : " + urls.controlURL.getString(0)); |
||||
System.out.println("Trying to continue anyway"); |
||||
break; |
||||
case 3: |
||||
System.out.println("UPnP device found. Is it an IGD ? : " + urls.controlURL.getString(0)); |
||||
System.out.println("Trying to continue anyway"); |
||||
break; |
||||
default: |
||||
System.out.println("Found device (igd ?) : " + urls.controlURL.getString(0)); |
||||
System.out.println("Trying to continue anyway"); |
||||
|
||||
} |
||||
System.out.println("Local LAN ip address : " + new String(lanaddr.array())); |
||||
ByteBuffer externalAddress = ByteBuffer.allocate(16); |
||||
miniupnpc.UPNP_GetExternalIPAddress(urls.controlURL.getString(0), |
||||
new String(data.first.servicetype), externalAddress); |
||||
System.out.println("ExternalIPAddress = " + new String(externalAddress.array())); |
||||
ret = miniupnpc.UPNP_AddPortMapping( |
||||
urls.controlURL.getString(0), // controlURL
|
||||
new String(data.first.servicetype), // servicetype
|
||||
args[0], // external Port
|
||||
args[0], // internal Port
|
||||
new String(lanaddr.array()), // internal client
|
||||
"added via miniupnpc/JAVA !", // description
|
||||
args[1], // protocol UDP or TCP
|
||||
null, // remote host (useless)
|
||||
"0"); // leaseDuration
|
||||
if (ret != MiniupnpcLibrary.UPNPCOMMAND_SUCCESS) |
||||
System.out.println("AddPortMapping() failed with code " + ret); |
||||
ret = miniupnpc.UPNP_GetSpecificPortMappingEntry( |
||||
urls.controlURL.getString(0), new String(data.first.servicetype), |
||||
args[0], args[1], null, intClient, intPort, |
||||
desc, enabled, leaseDuration); |
||||
if (ret != MiniupnpcLibrary.UPNPCOMMAND_SUCCESS) |
||||
System.out.println("GetSpecificPortMappingEntry() failed with code " + ret); |
||||
System.out.println("InternalIP:Port = " + |
||||
new String(intClient.array()) + ":" + new String(intPort.array()) + |
||||
" (" + new String(desc.array()) + ")"); |
||||
ret = miniupnpc.UPNP_DeletePortMapping( |
||||
urls.controlURL.getString(0), |
||||
new String(data.first.servicetype), |
||||
args[0], args[1], null); |
||||
if (ret != MiniupnpcLibrary.UPNPCOMMAND_SUCCESS) |
||||
System.out.println("DelPortMapping() failed with code " + ret); |
||||
miniupnpc.FreeUPNPUrls(urls); |
||||
} else { |
||||
System.out.println("No valid UPNP Internet Gateway Device found."); |
||||
} |
||||
miniupnpc.freeUPNPDevlist(devlist); |
||||
} else { |
||||
System.out.println("No IGD UPnP Device found on the network !\n"); |
||||
} |
||||
} |
||||
} |
||||
@ -1,8 +0,0 @@
|
||||
@echo off |
||||
set JAVA=java |
||||
set JAVAC=javac |
||||
REM notice the semicolon for Windows. Write once, run ... oh nevermind |
||||
set CP=miniupnpc_win32.jar;. |
||||
|
||||
%JAVAC% -cp "%CP%" JavaBridgeTest.java || exit 1 |
||||
%JAVA% -cp "%CP%" JavaBridgeTest 12345 UDP || exit 1 |
||||
@ -1,8 +0,0 @@
|
||||
#!/bin/bash |
||||
|
||||
JAVA=java |
||||
JAVAC=javac |
||||
CP=$(for i in *.jar; do echo -n $i:; done). |
||||
|
||||
$JAVAC -cp $CP JavaBridgeTest.java || exit 1 |
||||
$JAVA -cp $CP JavaBridgeTest 12345 UDP || exit 1 |
||||
@ -1,55 +0,0 @@
|
||||
.TH MINIUPNPC 3 |
||||
.SH NAME |
||||
miniupnpc \- UPnP client library |
||||
.SH SYNOPSIS |
||||
.SH DESCRIPTION |
||||
The miniupnpc library implement the UPnP protocol defined |
||||
to dialog with Internet Gateway Devices. It also has |
||||
the ability to use data gathered by minissdpd(1) about |
||||
UPnP devices up on the network in order to skip the |
||||
long UPnP device discovery process. |
||||
.PP |
||||
At first, upnpDiscover(3) has to be used to discover UPnP IGD present |
||||
on the network. Then UPNP_GetValidIGD(3) to select the right one. |
||||
Alternatively, UPNP_GetIGDFromUrl(3) could be used to bypass discovery |
||||
process if the root description url of the device to use is known. |
||||
Then all the UPNP_* functions can be used, such as |
||||
UPNP_GetConnectionTypeInfo(3), UPNP_AddPortMapping(3), etc... |
||||
.SH "HEADER FILES" |
||||
.IP miniupnpc.h |
||||
That's the main header file for the miniupnpc library API. |
||||
It contains all the functions and structures related to device discovery. |
||||
.IP upnpcommands.h |
||||
This header file contain the UPnP IGD methods that are accessible |
||||
through the miniupnpc API. The name of the C functions are matching |
||||
the UPnP methods names. ie: GetGenericPortMappingEntry is |
||||
UPNP_GetGenericPortMappingEntry. |
||||
.SH "API FUNCTIONS" |
||||
.IP "struct UPNPDev * upnpDiscover(int delay, const char * multicastif, const char * minissdpdsock, int localport, int ipv6, int * error);" |
||||
execute the discovery process. |
||||
delay (in millisecond) is the maximum time for waiting any device response. |
||||
If available, device list will be obtained from MiniSSDPd. |
||||
Default path for minissdpd socket will be used if minissdpdsock argument is NULL. |
||||
If multicastif is not NULL, it will be used instead of the default multicast interface for sending SSDP discover packets. |
||||
If localport is set to UPNP_LOCAL_PORT_SAME(1) SSDP packets will be sent |
||||
from the source port 1900 (same as destination port), if set to |
||||
UPNP_LOCAL_PORT_ANY(0) system assign a source port, any other value will |
||||
be attempted as the source port. |
||||
If ipv6 is not 0, IPv6 is used instead of IPv4 for the discovery process. |
||||
.IP "void freeUPNPDevlist(struct UPNPDev * devlist);" |
||||
free the list returned by upnpDiscover(). |
||||
.IP "int UPNP_GetValidIGD(struct UPNPDev * devlist, struct UPNPUrls * urls, struct IGDdatas * data, char * lanaddr, int lanaddrlen);" |
||||
browse the list of device returned by upnpDiscover(), find |
||||
a live UPnP internet gateway device and fill structures passed as arguments |
||||
with data used for UPNP methods invokation. |
||||
.IP "int UPNP_GetIGDFromUrl(const char * rootdescurl, struct UPNPUrls * urls, struct IGDdatas * data, char * lanaddr, int lanaddrlen);" |
||||
permit to bypass the upnpDiscover() call if the xml root description |
||||
URL of the UPnP IGD is known. |
||||
Fill structures passed as arguments |
||||
with data used for UPNP methods invokation. |
||||
.IP "void GetUPNPUrls(struct UPNPUrls *, struct IGDdatas *, const char *);" |
||||
.IP "void FreeUPNPUrls(struct UPNPUrls *);" |
||||
|
||||
.SH "SEE ALSO" |
||||
minissdpd(1) |
||||
.SH BUGS |
||||
@ -1,15 +0,0 @@
|
||||
#ifndef MINIUPNPCSTRINGS_H_INCLUDED |
||||
#define MINIUPNPCSTRINGS_H_INCLUDED |
||||
|
||||
#define OS_STRING "${CMAKE_SYSTEM_NAME}" |
||||
#define MINIUPNPC_VERSION_STRING "${MINIUPNPC_VERSION}" |
||||
|
||||
#if 0 |
||||
/* according to "UPnP Device Architecture 1.0" */ |
||||
#define UPNP_VERSION_STRING "UPnP/1.0" |
||||
#else |
||||
/* according to "UPnP Device Architecture 1.1" */ |
||||
#define UPNP_VERSION_STRING "UPnP/1.1" |
||||
#endif |
||||
|
||||
#endif |
||||
@ -1,29 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00 |
||||
# Visual C++ Express 2008 |
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "miniupnpc", "miniupnpc.vcproj", "{D28CE435-CB33-4BAE-8A52-C6EF915956F5}" |
||||
EndProject |
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "upnpc-static", "upnpc-static.vcproj", "{469E1CF6-08A2-4B7B-A2AA-5BDB089857C1}" |
||||
ProjectSection(ProjectDependencies) = postProject |
||||
{D28CE435-CB33-4BAE-8A52-C6EF915956F5} = {D28CE435-CB33-4BAE-8A52-C6EF915956F5} |
||||
EndProjectSection |
||||
EndProject |
||||
Global |
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
Debug|Win32 = Debug|Win32 |
||||
Release|Win32 = Release|Win32 |
||||
EndGlobalSection |
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||
{D28CE435-CB33-4BAE-8A52-C6EF915956F5}.Debug|Win32.ActiveCfg = Debug|Win32 |
||||
{D28CE435-CB33-4BAE-8A52-C6EF915956F5}.Debug|Win32.Build.0 = Debug|Win32 |
||||
{D28CE435-CB33-4BAE-8A52-C6EF915956F5}.Release|Win32.ActiveCfg = Release|Win32 |
||||
{D28CE435-CB33-4BAE-8A52-C6EF915956F5}.Release|Win32.Build.0 = Release|Win32 |
||||
{469E1CF6-08A2-4B7B-A2AA-5BDB089857C1}.Debug|Win32.ActiveCfg = Debug|Win32 |
||||
{469E1CF6-08A2-4B7B-A2AA-5BDB089857C1}.Debug|Win32.Build.0 = Debug|Win32 |
||||
{469E1CF6-08A2-4B7B-A2AA-5BDB089857C1}.Release|Win32.ActiveCfg = Release|Win32 |
||||
{469E1CF6-08A2-4B7B-A2AA-5BDB089857C1}.Release|Win32.Build.0 = Release|Win32 |
||||
EndGlobalSection |
||||
GlobalSection(SolutionProperties) = preSolution |
||||
HideSolutionNode = FALSE |
||||
EndGlobalSection |
||||
EndGlobal |
||||
@ -1,283 +0,0 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?> |
||||
<VisualStudioProject |
||||
ProjectType="Visual C++" |
||||
Version="9,00" |
||||
Name="miniupnpc" |
||||
ProjectGUID="{D28CE435-CB33-4BAE-8A52-C6EF915956F5}" |
||||
RootNamespace="miniupnpc" |
||||
Keyword="Win32Proj" |
||||
TargetFrameworkVersion="196613" |
||||
> |
||||
<Platforms> |
||||
<Platform |
||||
Name="Win32" |
||||
/> |
||||
</Platforms> |
||||
<ToolFiles> |
||||
</ToolFiles> |
||||
<Configurations> |
||||
<Configuration |
||||
Name="Debug|Win32" |
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
||||
IntermediateDirectory="$(ConfigurationName)" |
||||
ConfigurationType="4" |
||||
CharacterSet="1" |
||||
> |
||||
<Tool |
||||
Name="VCPreBuildEventTool" |
||||
/> |
||||
<Tool |
||||
Name="VCCustomBuildTool" |
||||
/> |
||||
<Tool |
||||
Name="VCXMLDataGeneratorTool" |
||||
/> |
||||
<Tool |
||||
Name="VCWebServiceProxyGeneratorTool" |
||||
/> |
||||
<Tool |
||||
Name="VCMIDLTool" |
||||
/> |
||||
<Tool |
||||
Name="VCCLCompilerTool" |
||||
Optimization="0" |
||||
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;MINIUPNP_STATICLIB;DEBUG" |
||||
MinimalRebuild="true" |
||||
BasicRuntimeChecks="3" |
||||
RuntimeLibrary="3" |
||||
UsePrecompiledHeader="0" |
||||
WarningLevel="3" |
||||
DebugInformationFormat="4" |
||||
/> |
||||
<Tool |
||||
Name="VCManagedResourceCompilerTool" |
||||
/> |
||||
<Tool |
||||
Name="VCResourceCompilerTool" |
||||
/> |
||||
<Tool |
||||
Name="VCPreLinkEventTool" |
||||
/> |
||||
<Tool |
||||
Name="VCLibrarianTool" |
||||
/> |
||||
<Tool |
||||
Name="VCALinkTool" |
||||
/> |
||||
<Tool |
||||
Name="VCXDCMakeTool" |
||||
/> |
||||
<Tool |
||||
Name="VCBscMakeTool" |
||||
/> |
||||
<Tool |
||||
Name="VCFxCopTool" |
||||
/> |
||||
<Tool |
||||
Name="VCPostBuildEventTool" |
||||
/> |
||||
</Configuration> |
||||
<Configuration |
||||
Name="Release|Win32" |
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
||||
IntermediateDirectory="$(ConfigurationName)" |
||||
ConfigurationType="4" |
||||
CharacterSet="1" |
||||
WholeProgramOptimization="1" |
||||
> |
||||
<Tool |
||||
Name="VCPreBuildEventTool" |
||||
/> |
||||
<Tool |
||||
Name="VCCustomBuildTool" |
||||
/> |
||||
<Tool |
||||
Name="VCXMLDataGeneratorTool" |
||||
/> |
||||
<Tool |
||||
Name="VCWebServiceProxyGeneratorTool" |
||||
/> |
||||
<Tool |
||||
Name="VCMIDLTool" |
||||
/> |
||||
<Tool |
||||
Name="VCCLCompilerTool" |
||||
Optimization="2" |
||||
EnableIntrinsicFunctions="true" |
||||
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;MINIUPNP_STATICLIB" |
||||
RuntimeLibrary="2" |
||||
EnableFunctionLevelLinking="true" |
||||
UsePrecompiledHeader="0" |
||||
WarningLevel="3" |
||||
DebugInformationFormat="3" |
||||
/> |
||||
<Tool |
||||
Name="VCManagedResourceCompilerTool" |
||||
/> |
||||
<Tool |
||||
Name="VCResourceCompilerTool" |
||||
/> |
||||
<Tool |
||||
Name="VCPreLinkEventTool" |
||||
/> |
||||
<Tool |
||||
Name="VCLibrarianTool" |
||||
/> |
||||
<Tool |
||||
Name="VCALinkTool" |
||||
/> |
||||
<Tool |
||||
Name="VCXDCMakeTool" |
||||
/> |
||||
<Tool |
||||
Name="VCBscMakeTool" |
||||
/> |
||||
<Tool |
||||
Name="VCFxCopTool" |
||||
/> |
||||
<Tool |
||||
Name="VCPostBuildEventTool" |
||||
/> |
||||
</Configuration> |
||||
</Configurations> |
||||
<References> |
||||
</References> |
||||
<Files> |
||||
<Filter |
||||
Name="Fichiers sources" |
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" |
||||
> |
||||
<File |
||||
RelativePath="..\connecthostport.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\igd_desc_parse.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\minisoap.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\minissdpc.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\miniupnpc.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\miniwget.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\minixml.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\portlistingparse.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\receivedata.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\upnpcommands.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\upnpdev.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\upnperrors.c" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\upnpreplyparse.c" |
||||
> |
||||
</File> |
||||
</Filter> |
||||
<Filter |
||||
Name="Fichiers d'en-tête" |
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd" |
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" |
||||
> |
||||
<File |
||||
RelativePath="..\connecthostport.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\declspec.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\igd_desc_parse.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\minisoap.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\minissdpc.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\miniupnpc.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\miniupnpcstrings.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\miniupnpctypes.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\miniwget.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\minixml.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\portlistingparse.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\receivedata.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\upnpcommands.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\upnpdev.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\upnperrors.h" |
||||
> |
||||
</File> |
||||
<File |
||||
RelativePath="..\upnpreplyparse.h" |
||||
> |
||||
</File> |
||||
</Filter> |
||||
<Filter |
||||
Name="Fichiers de ressources" |
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" |
||||
> |
||||
</Filter> |
||||
</Files> |
||||
<Globals> |
||||
</Globals> |
||||
</VisualStudioProject> |
||||
@ -1,195 +0,0 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?> |
||||
<VisualStudioProject |
||||
ProjectType="Visual C++" |
||||
Version="9,00" |
||||
Name="upnpc-static" |
||||
ProjectGUID="{469E1CF6-08A2-4B7B-A2AA-5BDB089857C1}" |
||||
RootNamespace="upnpcstatic" |
||||
Keyword="Win32Proj" |
||||
TargetFrameworkVersion="196613" |
||||
> |
||||
<Platforms> |
||||
<Platform |
||||
Name="Win32" |
||||
/> |
||||
</Platforms> |
||||
<ToolFiles> |
||||
</ToolFiles> |
||||
<Configurations> |
||||
<Configuration |
||||
Name="Debug|Win32" |
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
||||
IntermediateDirectory="$(ConfigurationName)" |
||||
ConfigurationType="1" |
||||
CharacterSet="1" |
||||
> |
||||
<Tool |
||||
Name="VCPreBuildEventTool" |
||||
/> |
||||
<Tool |
||||
Name="VCCustomBuildTool" |
||||
/> |
||||
<Tool |
||||
Name="VCXMLDataGeneratorTool" |
||||
/> |
||||
<Tool |
||||
Name="VCWebServiceProxyGeneratorTool" |
||||
/> |
||||
<Tool |
||||
Name="VCMIDLTool" |
||||
/> |
||||
<Tool |
||||
Name="VCCLCompilerTool" |
||||
Optimization="0" |
||||
PreprocessorDefinitions="_DEBUG;_CONSOLE;MINIUPNP_STATICLIB;DEBUG;_CRT_SECURE_NO_WARNINGS" |
||||
MinimalRebuild="true" |
||||
BasicRuntimeChecks="3" |
||||
RuntimeLibrary="3" |
||||
UsePrecompiledHeader="0" |
||||
WarningLevel="3" |
||||
DebugInformationFormat="4" |
||||
/> |
||||
<Tool |
||||
Name="VCManagedResourceCompilerTool" |
||||
/> |
||||
<Tool |
||||
Name="VCResourceCompilerTool" |
||||
/> |
||||
<Tool |
||||
Name="VCPreLinkEventTool" |
||||
/> |
||||
<Tool |
||||
Name="VCLinkerTool" |
||||
AdditionalDependencies="ws2_32.lib IPHlpApi.Lib Debug\miniupnpc.lib" |
||||
LinkIncremental="2" |
||||
GenerateDebugInformation="true" |
||||
SubSystem="1" |
||||
TargetMachine="1" |
||||
/> |
||||
<Tool |
||||
Name="VCALinkTool" |
||||
/> |
||||
<Tool |
||||
Name="VCManifestTool" |
||||
/> |
||||
<Tool |
||||
Name="VCXDCMakeTool" |
||||
/> |
||||
<Tool |
||||
Name="VCBscMakeTool" |
||||
/> |
||||
<Tool |
||||
Name="VCFxCopTool" |
||||
/> |
||||
<Tool |
||||
Name="VCAppVerifierTool" |
||||
/> |
||||
<Tool |
||||
Name="VCPostBuildEventTool" |
||||
/> |
||||
</Configuration> |
||||
<Configuration |
||||
Name="Release|Win32" |
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)" |
||||
IntermediateDirectory="$(ConfigurationName)" |
||||
ConfigurationType="1" |
||||
CharacterSet="1" |
||||
WholeProgramOptimization="1" |
||||
> |
||||
<Tool |
||||
Name="VCPreBuildEventTool" |
||||
/> |
||||
<Tool |
||||
Name="VCCustomBuildTool" |
||||
/> |
||||
<Tool |
||||
Name="VCXMLDataGeneratorTool" |
||||
/> |
||||
<Tool |
||||
Name="VCWebServiceProxyGeneratorTool" |
||||
/> |
||||
<Tool |
||||
Name="VCMIDLTool" |
||||
/> |
||||
<Tool |
||||
Name="VCCLCompilerTool" |
||||
Optimization="2" |
||||
EnableIntrinsicFunctions="true" |
||||
PreprocessorDefinitions="NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;MINIUPNP_STATICLIB" |
||||
RuntimeLibrary="2" |
||||
EnableFunctionLevelLinking="true" |
||||
UsePrecompiledHeader="0" |
||||
WarningLevel="3" |
||||
DebugInformationFormat="3" |
||||
/> |
||||
<Tool |
||||
Name="VCManagedResourceCompilerTool" |
||||
/> |
||||
<Tool |
||||
Name="VCResourceCompilerTool" |
||||
/> |
||||
<Tool |
||||
Name="VCPreLinkEventTool" |
||||
/> |
||||
<Tool |
||||
Name="VCLinkerTool" |
||||
AdditionalDependencies="ws2_32.lib IPHlpApi.Lib Release\miniupnpc.lib" |
||||
LinkIncremental="1" |
||||
GenerateDebugInformation="true" |
||||
SubSystem="1" |
||||
OptimizeReferences="2" |
||||
EnableCOMDATFolding="2" |
||||
TargetMachine="1" |
||||
/> |
||||
<Tool |
||||
Name="VCALinkTool" |
||||
/> |
||||
<Tool |
||||
Name="VCManifestTool" |
||||
/> |
||||
<Tool |
||||
Name="VCXDCMakeTool" |
||||
/> |
||||
<Tool |
||||
Name="VCBscMakeTool" |
||||
/> |
||||
<Tool |
||||
Name="VCFxCopTool" |
||||
/> |
||||
<Tool |
||||
Name="VCAppVerifierTool" |
||||
/> |
||||
<Tool |
||||
Name="VCPostBuildEventTool" |
||||
/> |
||||
</Configuration> |
||||
</Configurations> |
||||
<References> |
||||
</References> |
||||
<Files> |
||||
<Filter |
||||
Name="Fichiers sources" |
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" |
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" |
||||
> |
||||
<File |
||||
RelativePath="..\upnpc.c" |
||||
> |
||||
</File> |
||||
</Filter> |
||||
<Filter |
||||
Name="Fichiers d'en-tête" |
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd" |
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" |
||||
> |
||||
</Filter> |
||||
<Filter |
||||
Name="Fichiers de ressources" |
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" |
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" |
||||
> |
||||
</Filter> |
||||
</Files> |
||||
<Globals> |
||||
</Globals> |
||||
</VisualStudioProject> |
||||
Loading…
Reference in new issue