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