1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-03 22:44:32 +00:00

Rework & cleanup CMake project files

- Building with CMake for development is now actually sane
- Split deps into projects and extra files
- Building against external deps should still work but needs testing
- Can now build out of the box without further adjustments as long as SDL(2) is found properly
- Build Lua in C++ mode (so it can use exceptions instead of setjmp/longjmp)
  - Unfortunately we need to enable exceptions for this :(

- Remove these defines:
  * AQUARIA_BUILD_SCENEEDITOR (now always on)
  * AQUARIA_BUILD_CONSOLE (now always on)
  * BBGE_BUILD_ACHIEVEMENTS_INTERNAL (now always on unless BBGE_BUILD_STEAMWORKS is defined)
  * BBGE_BUILD_OPENGL_DYNAMIC (now always on, define BBGE_BUILD_OPENGL_STATIC if needed)
  * BBGE_BUILD_FMOD_OPENAL_BRIDGE (now always on)
- BBGE_BUILD_STEAMWORKS is not actually implemented (any volunteers?)
- Prepare later removal of SDL & the old vc90 project from the repo. See #74 for extra notes.
This commit is contained in:
fgenesis 2022-04-07 02:38:39 +02:00
parent f0f9f1a719
commit 49b9e0f05a
52 changed files with 719 additions and 1053 deletions

View file

@ -1,7 +1,16 @@
#include "GLLoad.h"
#ifdef BBGE_BUILD_OPENGL_STATIC
bool lookup_all_glsyms() { return true; }
bool void unload_all_glsyms() { return false; }
#else
#include "Base.h"
#include "RenderBase.h"
#include "GLLoad.h"
#include <sstream>
#ifdef GLAPIENTRY
@ -16,7 +25,6 @@
#include <GL/glext.h>
#ifdef BBGE_BUILD_OPENGL_DYNAMIC
PFNGLGENERATEMIPMAPEXTPROC glGenerateMipmapEXT = NULL;
@ -89,6 +97,7 @@ static bool lookup_glsym(const char *funcname, void **func)
bool lookup_all_glsyms()
{
bool retval = true;
#define GL_FUNC(ret,fn,params,call,rt) \
if (!lookup_glsym(#fn, (void **) &p##fn)) retval = false;
#include "OpenGLStubs.h"
@ -210,4 +219,4 @@ void unload_all_glsyms()
glUniform4ivARB = NULL;
}
#endif // BBGE_BUILD_OPENGL_DYNAMIC
#endif // BBGE_BUILD_OPENGL_STATIC