Move log implementation for Windows in dedicated directory

This commit is contained in:
Romuald Conty 2013-03-18 23:53:01 +01:00
parent cb3452db7b
commit 2be00e7615
4 changed files with 5 additions and 8 deletions

View file

@ -48,15 +48,15 @@ IF(LIBUSB_FOUND)
ENDIF(LIBUSB_FOUND) ENDIF(LIBUSB_FOUND)
# Library # Library
SET(LIBRARY_SOURCES nfc nfc-device nfc-emulation nfc-internal conf iso14443-subr mirror-subr target-subr log ${DRIVERS_SOURCES} ${BUSES_SOURCES} ${CHIPS_SOURCES} ${WINDOWS_SOURCES}) SET(LIBRARY_SOURCES nfc nfc-device nfc-emulation nfc-internal conf iso14443-subr mirror-subr target-subr ${DRIVERS_SOURCES} ${BUSES_SOURCES} ${CHIPS_SOURCES} ${WINDOWS_SOURCES})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
IF(LIBNFC_LOG) IF(LIBNFC_LOG)
IF(WIN32) IF(WIN32)
SET(CMAKE_C_FLAGS "-fgnu89-inline ${CMAKE_C_FLAGS}") SET(CMAKE_C_FLAGS "-fgnu89-inline ${CMAKE_C_FLAGS}")
LIST(APPEND LIBRARY_SOURCES log_win32) LIST(APPEND LIBRARY_SOURCES log ../contrib/win32/libnfc/log-internal)
ELSE(WIN32) ELSE(WIN32)
LIST(APPEND LIBRARY_SOURCES log_posix) LIST(APPEND LIBRARY_SOURCES log log-internal)
ENDIF(WIN32) ENDIF(WIN32)
ENDIF(LIBNFC_LOG) ENDIF(LIBNFC_LOG)
ADD_LIBRARY(nfc SHARED ${LIBRARY_SOURCES}) ADD_LIBRARY(nfc SHARED ${LIBRARY_SOURCES})

View file

@ -7,7 +7,6 @@ lib_LTLIBRARIES = libnfc.la
libnfc_la_SOURCES = \ libnfc_la_SOURCES = \
conf.c \ conf.c \
iso14443-subr.c \ iso14443-subr.c \
log.c \
mirror-subr.c \ mirror-subr.c \
nfc.c \ nfc.c \
nfc-device.c \ nfc-device.c \
@ -41,10 +40,8 @@ if LIBUSB_ENABLED
endif endif
if WITH_LOG if WITH_LOG
libnfc_la_SOURCES += log_posix.c libnfc_la_SOURCES += log.c log-internal.c
endif endif
EXTRA_DIST = \ EXTRA_DIST = \
CMakeLists.txt \ CMakeLists.txt
log_posix.c \
log_win32.c