diff --git a/hecl/driver/CMakeLists.txt b/hecl/driver/CMakeLists.txt index d69e7fa53..d0890eab7 100644 --- a/hecl/driver/CMakeLists.txt +++ b/hecl/driver/CMakeLists.txt @@ -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) diff --git a/hecl/driver/main.cpp b/hecl/driver/main.cpp index 2d1873ad1..2159aef9e 100644 --- a/hecl/driver/main.cpp +++ b/hecl/driver/main.cpp @@ -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