summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorDamjan Jovanovic <damjan@apache.org>2017-01-08 19:24:20 +0000
committerDamjan Jovanovic <damjan@apache.org>2017-01-08 19:24:20 +0000
commitccfeae67446ca436de18623af54c564266026289 (patch)
treee89838fa09f05fb4f8766dcf3cad34a6875bad08 /cui
parentb70d73f84c1a02336b1cdac4bcb7c5f7a66dd712 (diff)
Only set the BUILD_VER_STRING define if it is available
as an environment variable and non-empty. At least the Windows build breaks without this when --with-build-version is not used. Patch by: me
Notes
Notes: ignore: obsolete
Diffstat (limited to 'cui')
-rw-r--r--cui/Library_cui.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk
index a33470866517..8d448ad8c8e9 100644
--- a/cui/Library_cui.mk
+++ b/cui/Library_cui.mk
@@ -33,8 +33,11 @@ $(eval $(call gb_Library_set_include,cui,\
-I$(SRCDIR)/cui/source/inc \
))
+ifneq ($(BUILD_VER_STRING),)
+$(eval $(call gb_Library_add_defs,cui,-DBUILD_VER_STRING="$(BUILD_VER_STRING"))
+endif
+
$(eval $(call gb_Library_add_defs,cui,\
- -DBUILD_VER_STRING="$(BUILD_VER_STRING)" \
-DCOPYRIGHT_YEAR=$(shell perl -e 'use POSIX qw(strftime); print strftime("%Y", gmtime($$ENV{SOURCE_DATE_EPOCH} || time));') \
))