diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2016-10-26 12:45:26 +0200 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2016-10-26 22:41:32 +0000 |
commit | dd8c8d81de4f361d8f4d259d8a27ac15ab871031 (patch) | |
tree | f5f58699b8bac68785b539b1b78940c8be7ccf06 /solenv/CustomTarget_gbuildtesttools.mk | |
parent | trust the size ... tdf#79442 follow-up (diff) | |
download | core-dd8c8d81de4f361d8f4d259d8a27ac15ab871031.tar.gz core-dd8c8d81de4f361d8f4d259d8a27ac15ab871031.zip |
add test for running gbuildtoide on non-build modules
- do concat for json in C++, everything else seems fragile on Windows
- have APPEND vars separately
- check that gbuildtoide work on modules without a full build (modulo
some blacklisted "creative" ones)
Change-Id: I6fe267fee7d1b77d758072303729387dfeb8e6c8
Reviewed-on: https://gerrit.libreoffice.org/30293
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'solenv/CustomTarget_gbuildtesttools.mk')
-rwxr-xr-x | solenv/CustomTarget_gbuildtesttools.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/solenv/CustomTarget_gbuildtesttools.mk b/solenv/CustomTarget_gbuildtesttools.mk new file mode 100755 index 000000000000..1b3df0702230 --- /dev/null +++ b/solenv/CustomTarget_gbuildtesttools.mk @@ -0,0 +1,17 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_CustomTarget_CustomTarget,solenv/gbuildtesttools)) + +$(call gb_CustomTarget_get_target,solenv/gbuildtesttools) : + echo -n "{ \"MAKE\": \"$(if $(filter WNT,$(OS)),$(shell cygpath -u $(MAKE)),$(MAKE))\"" > $@ + echo -n ", \"BASH\": \"$(if $(filter WNT,$(OS)),$(shell cygpath -m `which bash`),bash)\"" >> $@ + echo -n ", \"GBUILDTOJSON\": \"$(call gb_Executable_get_target,gbuildtojson)\" }" >> $@ + +# vim: set noet sw=4 ts=4: |