Skip to content

Commit

Permalink
Merge pull request #193 from aaronorosen2/patch-1
Browse files Browse the repository at this point in the history
Fix compiler flag for linux SDL2
  • Loading branch information
logzero authored May 24, 2023
2 parents ba82254 + 00ffac8 commit 8fc6bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion premake4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8fc6bdc

Please sign in to comment.