From 00ffac88d0afb3cb9eec0ea8a0d0e4fbd9b8cd08 Mon Sep 17 00:00:00 2001 From: aaronorosen2 <134331036+aaronorosen2@users.noreply.github.com> Date: Mon, 22 May 2023 16:08:20 -0400 Subject: [PATCH] Fix compiler flag for linux SDL2 --- premake4.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/premake4.lua b/premake4.lua index 1a2366ed..f1388def 100644 --- a/premake4.lua +++ b/premake4.lua @@ -169,7 +169,7 @@ solution "VDrift" gen_definitions_h() includedirs {"/usr/local/include/bullet/", "/usr/include/bullet"} libdirs {"/usr/X11R6/lib"} - links {"curl", "vorbisfile", "BulletDynamics", "BulletCollision", "LinearMath", "GL", "GLU", "GLEW", "SDL", "intl", "z"} + links {"curl", "vorbisfile", "BulletDynamics", "BulletCollision", "LinearMath", "GL", "GLU", "GLEW", "SDL2", "intl", "z"} configuration {"macosx"} prebuildcommands {'if [ -f "SRCROOT"/src/definitions.h ]; then\n rm "SRCROOT"/src/definitions.h\nfi\nDATE=`date +%Y-%m-%d`\necho "#ifndef _DEFINITIONS_H" > "$SRCROOT"/src/definitions.h\necho "#define _DEFINITIONS_H" >> "$SRCROOT"/src/definitions.h\necho "char* get_mac_data_dir();" >> "$SRCROOT"/src/definitions.h\necho "#define SETTINGS_DIR \"Library/Preferences/VDrift\"" >> "$SRCROOT"/src/definitions.h\necho "#define DATA_DIR get_mac_data_dir()" >> "$SRCROOT"/src/definitions.h\necho "#define PACKAGE \"VDrift\"" >> "$SRCROOT"/src/definitions.h\necho "#define LOCALEDIR \"/usr/share/locale\"" >> "$SRCROOT"/src/definitions.h\necho "#ifndef VERSION" >> "$SRCROOT"/src/definitions.h\necho "#define VERSION \"$DATE\"" >> "$SRCROOT"/src/definitions.h\necho "#endif //VERSION" >> "$SRCROOT"/src/definitions.h\necho "#ifndef REVISION" >> "$SRCROOT"/src/definitions.h\necho "#define REVISION \"$DATE\"" >> "$SRCROOT"/src/definitions.h #No longer have svn revision to fetch, and can\'t get git, so use date at the moment.\necho "#endif //REVISION" >> "$SRCROOT"/src/definitions.h\necho "#endif // _DEFINITIONS_H" >> "$SRCROOT"/src/definitions.h\n'} --Generate definitions.h.