summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-02-11 23:49:09 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-02-12 03:28:08 +0100
commit9e1c048e206d4e91d03ef8978bf61a6af654fc3b (patch)
tree1dac0da5ad8bddee9197139937b8f284c8cfac05 /premake5.lua
parentbetter controller menu txds (diff)
downloadre3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar
re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.gz
re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.bz2
re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.lz
re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.xz
re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.tar.zst
re3-9e1c048e206d4e91d03ef8978bf61a6af654fc3b.zip
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua
index a0d54ea7..64dc8767 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -313,7 +313,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 +327,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"