mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
add git commit hash to mingw build as well
This commit is contained in:
parent
67e4c664f6
commit
f3ba703444
2
Makefile
2
Makefile
@ -1,6 +1,8 @@
|
|||||||
-include config.mk
|
-include config.mk
|
||||||
|
|
||||||
TARGET = ddraw.dll
|
TARGET = ddraw.dll
|
||||||
|
GIT_REV := $(shell git rev-parse --short @{0} || echo "UNKNOWN")
|
||||||
|
GIT_FILE := $(shell echo "#define GIT_COMMIT" $(GIT_REV) > inc/version_tmp.h)
|
||||||
LDFLAGS = -Wl,--enable-stdcall-fixup -s -static -shared
|
LDFLAGS = -Wl,--enable-stdcall-fixup -s -static -shared
|
||||||
CFLAGS = -Iinc -O2 -march=i486 -Wall
|
CFLAGS = -Iinc -O2 -march=i486 -Wall
|
||||||
LIBS = -lgdi32 -lwinmm -ldbghelp -lole32
|
LIBS = -lgdi32 -lwinmm -ldbghelp -lole32
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
REM
|
REM
|
||||||
REM patch environment config
|
REM patch environment config
|
||||||
REM
|
REM
|
||||||
set PATH=C:\w64devkit\bin
|
set PATH=C:\w64devkit\bin;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin\
|
||||||
make clean
|
make clean
|
||||||
make
|
make
|
||||||
REM make DEBUG=1
|
REM make DEBUG=1
|
||||||
|
6
res.rc
6
res.rc
@ -1,12 +1,6 @@
|
|||||||
#include "inc/version.h"
|
#include "inc/version.h"
|
||||||
|
|
||||||
#ifndef __GNUC__
|
|
||||||
#include "inc/version_tmp.h"
|
#include "inc/version_tmp.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef GIT_COMMIT
|
|
||||||
#define GIT_COMMIT UNKNOWN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
1 VERSIONINFO
|
1 VERSIONINFO
|
||||||
FILEVERSION VERSION
|
FILEVERSION VERSION
|
||||||
|
@ -8,15 +8,8 @@
|
|||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "hook.h"
|
#include "hook.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "versionhelpers.h"
|
|
||||||
|
|
||||||
#ifndef __GNUC__
|
|
||||||
#include "version_tmp.h"
|
#include "version_tmp.h"
|
||||||
#endif
|
#include "versionhelpers.h"
|
||||||
|
|
||||||
#ifndef GIT_COMMIT
|
|
||||||
#define GIT_COMMIT UNKNOWN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
double g_dbg_frame_time = 0;
|
double g_dbg_frame_time = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user