mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-31 01:30:02 +02:00
* Moved OS X definitions to CMakeLists.txt, so we can easily re-merge upstream of miniupnp.
This commit is contained in:
6
thirdparty/libportfwd/CMakeLists.txt
vendored
6
thirdparty/libportfwd/CMakeLists.txt
vendored
@@ -16,9 +16,11 @@ INCLUDE_DIRECTORIES( ${MINIUPNP_DIR} include ${QT_INCLUDES} )
|
|||||||
SET( CMAKE_C_FLAGS ${CLEAN_C_FLAGS} )
|
SET( CMAKE_C_FLAGS ${CLEAN_C_FLAGS} )
|
||||||
|
|
||||||
ADD_DEFINITIONS( -DPORTFWDDLLEXPORT_PRO )
|
ADD_DEFINITIONS( -DPORTFWDDLLEXPORT_PRO )
|
||||||
|
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
|
ADD_DEFINITIONS( -DMACOSX -D_DARWIN_C_SOURCE )
|
||||||
|
endif ()
|
||||||
|
|
||||||
ADD_LIBRARY(tomahawk_portfwd SHARED
|
ADD_LIBRARY(tomahawk_portfwd SHARED
|
||||||
|
|
||||||
# the needed bits of miniupnpc (no python module, no tests, no cli)
|
# the needed bits of miniupnpc (no python module, no tests, no cli)
|
||||||
${MINIUPNP_DIR}/connecthostport.c
|
${MINIUPNP_DIR}/connecthostport.c
|
||||||
${MINIUPNP_DIR}/igd_desc_parse.c
|
${MINIUPNP_DIR}/igd_desc_parse.c
|
||||||
@@ -57,6 +59,6 @@ INSTALL( TARGETS tomahawk_portfwd
|
|||||||
# )
|
# )
|
||||||
#TARGET_LINK_LIBRARIES(portfwd-demo portfwd)
|
#TARGET_LINK_LIBRARIES(portfwd-demo portfwd)
|
||||||
|
|
||||||
# INSTALL(TARGETS portfwd ARCHIVE DESTINATION lib${LIB_SUFFIX})
|
#INSTALL(TARGETS portfwd ARCHIVE DESTINATION lib${LIB_SUFFIX})
|
||||||
#INSTALL(TARGETS portfwd-demo RUNTIME DESTINATION bin)
|
#INSTALL(TARGETS portfwd-demo RUNTIME DESTINATION bin)
|
||||||
#INSTALL(DIRECTORY include/portfwd DESTINATION include PATTERN "*~" EXCLUDE)
|
#INSTALL(DIRECTORY include/portfwd DESTINATION include PATTERN "*~" EXCLUDE)
|
||||||
|
@@ -16,10 +16,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
#define _DARWIN_C_SOURCE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Reference in New Issue
Block a user