diff options
author | erorcun <erayorcunus@gmail.com> | 2021-02-12 16:15:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 16:15:51 +0100 |
commit | a44d7d86cb66ff584eb497ec1efb70d11d58288d (patch) | |
tree | c4e99fefd4af077dfe7a7479978d013cf14f6ff6 /premake5.lua | |
parent | Update TXDs (diff) | |
parent | Fix sha1 on premake linux (diff) | |
download | re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.gz re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.bz2 re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.lz re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.xz re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.zst re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.zip |
Diffstat (limited to 'premake5.lua')
-rw-r--r-- | premake5.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua index a0d54ea7..d4459f94 100644 --- a/premake5.lua +++ b/premake5.lua @@ -263,6 +263,7 @@ project "re3" files { addSrcFiles("src/vehicles") }
files { addSrcFiles("src/weapons") }
files { addSrcFiles("src/extras") }
+ files { "src/extras/GitSHA1.cpp" } -- this won't be in repo in first build
includedirs { "src" }
includedirs { "src/animation" }
@@ -313,7 +314,7 @@ project "re3" filter {}
if(os.getenv("GTA_III_RE_DIR")) then
- setpaths("$(GTA_III_RE_DIR)/", "%(cfg.buildtarget.name)")
+ setpaths(os.getenv("GTA_III_RE_DIR") .. "/", "%(cfg.buildtarget.name)")
end
filter "platforms:win*"
@@ -327,6 +328,10 @@ project "re3" -- external librw is dynamic
staticruntime "on"
end
+ prebuildcommands { '"%{prj.location}..\\printHash.bat" "%{prj.location}..\\src\\extras\\GitSHA1.cpp"' }
+
+ filter "platforms:not win*"
+ prebuildcommands { '"%{prj.location}/../printHash.sh" "%{prj.location}/../src/extras/GitSHA1.cpp"' }
filter "platforms:win*glfw*"
staticruntime "off"
|