diff options
Diffstat (limited to 'instsetoo_native/CustomTarget_setup.mk')
-rw-r--r-- | instsetoo_native/CustomTarget_setup.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/instsetoo_native/CustomTarget_setup.mk b/instsetoo_native/CustomTarget_setup.mk index 2374fb1fc4a0..366f1a91691a 100644 --- a/instsetoo_native/CustomTarget_setup.mk +++ b/instsetoo_native/CustomTarget_setup.mk @@ -12,6 +12,7 @@ $(eval $(call gb_CustomTarget_CustomTarget,instsetoo_native/setup)) $(eval $(call gb_CustomTarget_register_targets,instsetoo_native/setup,\ ooenv \ ure-link \ + versionrc \ )) $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/ooenv : @@ -37,4 +38,14 @@ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/ure-link : cd $(dir $@) && \ ln -s ure ure-link +$(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/versionrc : + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1) + ( \ + echo '[Version]' && \ + echo 'AllLanguages=en-US' && \ + echo 'buildid=$(shell git log -1 --format=%H)' && \ + echo 'ProductMajor=$(LIBO_VERSION_MAJOR)$(LIBO_VERSION_MINOR)$(LIBO_VERSION_MICRO)' && \ + echo 'ProductMinor=$(LIBO_VERSION_PATCH)' \ + ) > $@ + # vim: set noet sw=4 ts=4: |