2010-07-25 23:54:32 +00:00
|
|
|
|
2011-04-15 22:49:50 +00:00
|
|
|
list(APPEND GLOBAL_FILES
|
|
|
|
infcore.c
|
|
|
|
infget.c
|
|
|
|
infput.c)
|
2010-07-25 23:54:32 +00:00
|
|
|
|
|
|
|
if(CMAKE_CROSSCOMPILING)
|
2011-04-15 22:49:50 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
infrosgen.c
|
|
|
|
infrosget.c
|
|
|
|
infrosput.c)
|
|
|
|
|
|
|
|
add_library(inflib ${GLOBAL_FILES} ${SOURCE})
|
|
|
|
add_dependencies(inflib psdk)
|
2010-07-25 23:54:32 +00:00
|
|
|
else()
|
2011-04-15 22:49:50 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
infhostgen.c
|
|
|
|
infhostget.c
|
|
|
|
infhostput.c
|
|
|
|
infhostrtl.c)
|
|
|
|
|
2011-01-07 12:11:46 +00:00
|
|
|
add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DINFLIB_HOST -DUSE_HOST_WCSFUNCS)
|
|
|
|
if(NOT MSVC)
|
|
|
|
add_definitions(-Wpointer-arith -Wwrite-strings)
|
|
|
|
endif()
|
2011-04-15 22:49:50 +00:00
|
|
|
add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
|
|
|
|
target_link_libraries(inflibhost unicode)
|
2010-09-19 17:39:09 +00:00
|
|
|
endif()
|