2011-05-16 13:12:07 +00:00
|
|
|
|
2012-08-01 23:25:06 +00:00
|
|
|
if(MSVC)
|
2015-04-30 21:48:26 +00:00
|
|
|
if(MSVC_VERSION LESS 1900)
|
|
|
|
add_definitions(-Dsnprintf=_snprintf)
|
2012-09-17 22:43:37 +00:00
|
|
|
|
2015-04-30 21:48:26 +00:00
|
|
|
# Add this definition for WDK only, VS 9 doesn't like that
|
|
|
|
if(DEFINED ENV{DDKBUILDENV})
|
|
|
|
add_definitions(-Dvsnprintf=_vsnprintf)
|
|
|
|
endif()
|
2012-09-17 22:43:37 +00:00
|
|
|
endif()
|
|
|
|
|
2012-08-01 23:25:06 +00:00
|
|
|
list(APPEND SOURCE getopt.c)
|
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
client.c
|
|
|
|
expr.c
|
|
|
|
hash.c
|
|
|
|
header.c
|
|
|
|
proxy.c
|
|
|
|
register.c
|
|
|
|
server.c
|
|
|
|
typegen.c
|
|
|
|
typelib.c
|
|
|
|
typetree.c
|
|
|
|
utils.c
|
|
|
|
widl.c
|
|
|
|
write_msft.c
|
2016-07-03 11:16:23 +00:00
|
|
|
write_sltg.c
|
2011-05-16 13:12:07 +00:00
|
|
|
parser.yy.c
|
|
|
|
parser.tab.c
|
|
|
|
port/mkstemps.c)
|
|
|
|
|
|
|
|
# Taken from widl.rbuild
|
|
|
|
add_definitions(-DINT16=SHORT)
|
2015-09-06 16:44:30 +00:00
|
|
|
add_host_tool(widl ${SOURCE})
|
2013-09-14 10:30:44 +00:00
|
|
|
target_link_libraries(widl wpphost)
|