1 2function(add_host_tool _tool) 3 add_executable(${_tool} ${ARGN}) 4 set_target_properties(${_tool} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${TOOLS_FOLDER}) 5endfunction() 6 7if(MSVC) 8 add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DHAVE_IO_H=1) 9 add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/EHsc>") 10 11 # Disable warning "conversion from 'size_t' to 'int', possible loss of data" 12 add_compile_options("/wd4267") 13endif() 14 15add_host_tool(bin2c bin2c.c) 16add_host_tool(gendib gendib/gendib.c) 17add_host_tool(geninc geninc/geninc.c) 18add_host_tool(mkshelllink mkshelllink/mkshelllink.c) 19add_host_tool(obj2bin obj2bin/obj2bin.c) 20target_link_libraries(obj2bin PRIVATE host_includes) 21 22add_host_tool(spec2def spec2def/spec2def.c) 23add_host_tool(utf16le utf16le/utf16le.cpp) 24 25add_subdirectory(cabman) 26add_subdirectory(fatten) 27add_subdirectory(hhpcomp) 28add_subdirectory(hpp) 29add_subdirectory(isohybrid) 30add_subdirectory(kbdtool) 31add_subdirectory(mkhive) 32add_subdirectory(mkisofs) 33add_subdirectory(unicode) 34add_subdirectory(widl) 35add_subdirectory(wpp) 36add_subdirectory(xml2sdb) 37 38if(NOT MSVC) 39 add_subdirectory(log2lines) 40 add_subdirectory(rsym) 41 42 add_host_tool(pefixup pefixup.c) 43 target_link_libraries(pefixup PRIVATE host_includes) 44endif() 45