From 008eefdc1e48fe4e5bc3660c16b95743003cd8bb Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 18 Jan 2019 17:05:15 +0100 Subject: [PATCH] gxruntime: Move into runtime --- CMakeLists.txt | 14 ++++- gxruntime/CMakeLists.txt | 113 --------------------------------------- 2 files changed, 13 insertions(+), 114 deletions(-) delete mode 100644 gxruntime/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e6191e..04a13db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,10 +30,22 @@ if(WIN32) ) endif() +# All Warnings, Extra Warnings, Pedantic +If(MSVC) + # Force to always compile with W4 + If(CMAKE_CXX_FLAGS MATCHES "/W[0-4]") + String(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + Else() + Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4") + EndIf() +ElseIf(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) + # Update If necessary + Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic") +EndIf() + # Projects add_subdirectory(config) add_subdirectory(stdutil) -add_subdirectory(gxruntime) add_subdirectory(runtime) add_subdirectory(linker) add_subdirectory(debugger) diff --git a/gxruntime/CMakeLists.txt b/gxruntime/CMakeLists.txt deleted file mode 100644 index 3f27a0c..0000000 --- a/gxruntime/CMakeLists.txt +++ /dev/null @@ -1,113 +0,0 @@ -project(gxruntime) - -add_library(${PROJECT_NAME} STATIC - "asmcoder.hpp" - "asmcoder.cpp" - "ddutil.hpp" - "ddutil.cpp" - "graphicsruntime.hpp" - "gxaudio.hpp" - "gxaudio.cpp" - "gxcanvas.hpp" - "gxcanvas.cpp" - "gxchannel.hpp" - "gxchannel.cpp" - "gxdevice.hpp" - "gxdevice.cpp" - "gxdir.hpp" - "gxdir.cpp" - "gxfilesystem.hpp" - "gxfilesystem.cpp" - "gxfont.hpp" - "gxfont.cpp" - "gxgraphics.hpp" - "gxgraphics.cpp" - "gxinput.hpp" - "gxinput.cpp" - "gxlight.hpp" - "gxlight.cpp" - "gxmesh.hpp" - "gxmesh.cpp" - "gxmovie.hpp" - "gxmovie.cpp" - "gxmusic.hpp" - "gxmusic.cpp" - "gxruntime.hpp" - "gxruntime.cpp" - "gxscene.hpp" - "gxscene.cpp" - "gxsound.hpp" - "gxsound.cpp" - "gxtimer.hpp" - "gxtimer.cpp" - "std.hpp" - "std.cpp" -) - -target_link_libraries(${PROJECT_NAME} - PRIVATE - stdutil - PUBLIC - shell32 - winmm - ${fmod_LIBRARIES} - ${FreeImage_LIBRARIES} -) - -target_include_directories(${PROJECT_NAME} - PRIVATE - "${fmod_INCLUDE_DIRS}" - "${FreeImage_INCLUDE_DIRS}" - PUBLIC - ${PROJECT_SOURCE_DIR} -) - -if (WIN32) - target_compile_definitions(${PROJECT_NAME} - PRIVATE - _CRT_SECURE_NO_WARNINGS - # windows.hpp - WIN32_LEAN_AND_MEAN - NOGPICAPMASKS - #NOVIRTUALKEYCODES - #NOWINMESSAGES - #NOWINSTYLES - #NOSYSMETRICS - NOMENUS - NOICONS - #NOKEYSTATES - NOSYSCOMMANDS - NORASTEROPS - #NOSHOWWINDOW - NOATOM - NOCLIPBOARD - NOCOLOR - NOCTLMGR - NODRAWTEXT - #NOGDI - NOKERNEL - #NOUSER - NONLS - #NOMB - NOMEMMGR - NOMETAFILE - #NOMSG - NOOPENFILE - NOSCROLL - NOSERVICE - NOSOUND - #NOTEXTMETRIC - NOWH - #NOWINOFFSETS - NOCOMM - NOKANJI - NOHELP - NOPROFILER - NODEFERWINDOWPOS - NOMCX - NOIME - NOMDI - NOMINMAX - NOINOUT - ) -endif()