summaryrefslogtreecommitdiff
path: root/core/src/xmake/makefile
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-29 00:40:23 +0800
committerruki <[email protected]>2021-10-29 00:40:23 +0800
commit557c4c790f5d932052f223127dca14860b03eabc (patch)
treefcfa5468effc2157eaed06ca06a4e50f75b34249 /core/src/xmake/makefile
parent2505c46acf19f66d92765854f0853d251be30506 (diff)
add git branch and commit
Diffstat (limited to 'core/src/xmake/makefile')
-rw-r--r--core/src/xmake/makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/xmake/makefile b/core/src/xmake/makefile
index 48eb51974..88bce5d1f 100644
--- a/core/src/xmake/makefile
+++ b/core/src/xmake/makefile
@@ -166,7 +166,12 @@ ifeq ($(RUNTIME),lua)
xmake_INC_DIRS += ../lua/lua
xmake_CXFLAGS += -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_3
endif
-
+ifneq ($(BRANCH),)
+xmake_CXFLAGS += -DXM_CONFIG_VERSION_BRANCH="\"$(BRANCH)\""
+endif
+ifneq ($(COMMIT),)
+xmake_CXFLAGS += -DXM_CONFIG_VERSION_COMMIT="\"$(COMMIT)\""
+endif
# suffix
include $(PRO_DIR)/suffix.mak