diff --git a/Runtime/CMakeLists.txt b/Runtime/CMakeLists.txt index 1bdd4fa..a73246d 100644 --- a/Runtime/CMakeLists.txt +++ b/Runtime/CMakeLists.txt @@ -4,7 +4,7 @@ add_subdirectory(lib) add_subdirectory(gfx) add_subdirectory(blitz3d) -add_library(${PROJECT_NAME} MODULE +add_library(${PROJECT_NAME} SHARED "bbruntime_dll.hpp" "bbruntime_dll.cpp" "resource.hpp" @@ -12,14 +12,27 @@ add_library(${PROJECT_NAME} MODULE ) target_link_libraries(${PROJECT_NAME} - PRIVATE - runtime_lib - runtime_gfx - stdutil - ${fmod_LIBRARIES} - ${FreeImage_LIBRARIES} + config + runtime_lib + runtime_gfx + runtime_blitz3d + stdutil + ${fmod_LIBRARIES} + ${FreeImage_LIBRARIES} + ddraw + dsound + dxguid + mswsock + shell32 + winmm ) +if(MSVC) + target_compile_options(${PROJECT_NAME} + PRIVATE /EHa + ) +endif() + #target_include_directories(${PROJECT_NAME} # #) diff --git a/Runtime/bbruntime_dll.hpp b/Runtime/bbruntime_dll.hpp index 4493b44..9bc6022 100644 --- a/Runtime/bbruntime_dll.hpp +++ b/Runtime/bbruntime_dll.hpp @@ -1,12 +1,12 @@ - /* Win32 runtime dynamic link lib */ -#ifndef BBRUNTIME_DLL_H -#define BBRUNTIME_DLL_H +#pragma once +#include + +#include #include -#include "stdutil.hpp" class Debugger; @@ -26,5 +26,3 @@ class Runtime { }; extern "C" _declspec(dllexport) Runtime* _cdecl runtimeGetRuntime(); - -#endif \ No newline at end of file