Add HECL_DLPACKAGE macro

This commit is contained in:
Jack Andersen 2018-01-01 14:58:13 -10:00
parent 308af03115
commit ab5d3ac996
2 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,8 @@ target_link_libraries(hecl
logvisor athena-libyaml ${PNG_LIB} squish xxhash zeus boo
${ZLIB_LIBRARIES} ${LZO_LIB} ${PLAT_LIBS} ${BOO_SYS_LIBS})
set_target_properties(hecl PROPERTIES COMPILE_DEFINITIONS HECL_DLPACKAGE="${HECL_DLPACKAGE}")
if(COMMAND cotire)
set_target_properties(hecl PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE)
cotire(hecl)

View File

@ -90,6 +90,12 @@ int wmain(int argc, const wchar_t** argv)
int main(int argc, const char** argv)
#endif
{
if (argc > 1 && !hecl::StrCmp(argv[1], _S("--dlpackage")))
{
printf("%s\n", HECL_DLPACKAGE);
return 100;
}
#if _WIN32
CoInitializeEx(nullptr, COINIT_MULTITHREADED | COINIT_DISABLE_OLE1DDE);
#else