mirror of https://github.com/AxioDL/metaforce.git
Add HECL_DLPACKAGE macro
This commit is contained in:
parent
308af03115
commit
ab5d3ac996
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue