summaryrefslogtreecommitdiff
path: root/solenv/Module_solenv.mk
AgeCommit message (Collapse)Author
2017-05-18Don't run CompilerTest_compilerplugins_clang with COMPILER_PLUGIN_TOOL=...Stephan Bergmann
When COMPILER_PLUGIN_TOOL is set, solenv/gbuild/LinkTarget.mk uses the (plaform- generic) gb_*__tool_command which don't know about the COMPILER_TEST flag (as gb_CObject__command_pattern in solenv/gbuild/platform/com_GCC_class.mk does), so a top-level Clang make COMPILER_PLUGIN_TOOL=... will generate spurious warnings from CompilerTest_compilerplugins_clang's compilations done without the -Xclang -verify switch. This solution is a bit hacky (e.g., it would be better to handle this more centrally in solenv/gbuild/CompilerTest.mk), but effective. Change-Id: I58e9a76207065d9f6050a1ace6fc85c5a26882f8
2017-01-13solenv: don't run solenv_python test with make 3.81Michael Stahl
see 7a75b39273de47190b7a1fa20e0bcaca6d089033 Change-Id: I575e5d5dc757cc054a49ae6596183f46373072f2
2016-11-15New compilerplugins/clang unit testsStephan Bergmann
...to check that loplugin produces warnings/errors as expected: * Clang has a -verify switch that makes it easy to write test input .cxx files that list in comments all the warnings/errors that are expected, and let Clang check those expectations instead of generating object code. See include/clang/Frontend/VerifyDiagnosticConsumer.h in the Clang source tree for documentation. * Introduce a CompilerTest gbuild class that uses the existing LinkTarget class as much as possible. Checking the input files is implicitly phony, as the compilation step doesn't generate any object files, and the link step does nothing because there is no gb_LinkTarget_set_targettype for CompilerTest. The setup at least works for Clang on Linux (will need adaptions for Clang on Windows; compilers other than Clang are not relevant for now given this is used to check compilerplugins). * Definition of gb_CFLAGS_WERROR in solenv/gbuild/platform/com_GCC_defs.mk needs to be lazy ('=' vs. ':=') so that CompilerTest can override it: The Clang -verify mode wants the input files to specify whether the loplugin diagnostics are warnings or errros, so they consistently need to be errors independent of --enable-werror configuration. * A first (example) test is in compilerplugins/clang/test/salbool.cxx. The corresponding gbuild CompilerTest instance is in solenv/CompilerTest_compilerplugins_clang.mk for now. The reason for that odd split across compilerplugins/ and solenv/ is that there is no compilerplugins/Modules_compilerplugins.mk file, so this setup is the easiest hack for now (to be cleaned up). (Another area that could be improved is that all test files need to be listed explicitly in the CompilerTest_*.mk file, instead of, say, using all .c/.cxx/.m/.mm files in a specified directory.) * The test is run somewhat late during a top-level 'make', after loplugin has already been used in compilation. But it can be run manually (e.g., 'make solenv') when making changes to loplugin during development. Change-Id: I01e12fb84887d264ac03ef2484807458c2075af4
2016-11-03Disable gbuildtoide test on macOS, tooTor Lillqvist
Change-Id: I630fd447992ada459190acd1ee310bd2d38820b9
2016-11-02disable gbuildtoide test on Windows as CI builders are unstableBjoern Michaelsen
Change-Id: Ib5eb4fece2bae3e04089f2389198df800620e6f8 Reviewed-on: https://gerrit.libreoffice.org/30483 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-10-26add test for running gbuildtoide on non-build modulesBjoern Michaelsen
- 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>
2016-10-24solenv: force gbuildtoide test to use the same "make" as the callerMichael Stahl
Possibly mis-matching make binaries could be the reason behind failures that have been observed on Jenkins: make[3]: Entering directory '/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/windows_msc_dbgutil_32/solenv/qa/python/selftest' make[3]: *** internal error: invalid --jobserver-fds string 'gmake_semaphore_5488'. Stop. Also, to enable this: Revert "Revert "prep WinResTarget for WNT in testdir"" This reverts commit 6e261cb19e5751eb0553ad0c5b357b1a5747518c. Change-Id: Idb858b5eeced91f19c9dd5600c4fdc5370b73cc5 Reviewed-on: https://gerrit.libreoffice.org/30226 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-10-20Revert "prep WinResTarget for WNT in testdir"Giuseppe Castagno
Still random failures in Gerrit Windows builds. This reverts commit f5c54089b50718abf7c35aa81b150c509809d5c4. Change-Id: Iec48d2388691577ccd675b9a73941cedceebd527 Reviewed-on: https://gerrit.libreoffice.org/30103 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> Tested-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
2016-10-18prep WinResTarget for WNT in testdirBjoern Michaelsen
Change-Id: I04c050dca1212d247c9b11a996ba8f37c0a6492f Reviewed-on: https://gerrit.libreoffice.org/29825 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-10-14Disable PythonTest_solenv_python on Windows for nowStephan Bergmann
...causes all gerrit/jenkins Windows builds to fail in test_gbuildtoide; Björn to investigate... Change-Id: I90f95e4a91f40835d2b2d9c67a6473b95fb81597
2016-10-13add initial json export for gbuild dataBjoern Michaelsen
- also add gbuild selftest to test this (and possibly more later) Change-Id: Ia4ef41095613e596f39d107df700e929579ba45f Reviewed-on: https://gerrit.libreoffice.org/29744 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-10-30solenv: remove gdb Package and CustomTargetMichael Stahl
Since it's necessary to call install-gdb-printers anyway (which is what the CustomTarget_gdb does), just do it first thing in "build" target so that unit tests running during a from-scratch build get the pretty printers too. Change-Id: I357dfb828a2e0eed675aa552d3256f96a312a890
2013-09-10fix gdb pretty printers for --enable-mergelibsMatúš Kukan
And install them into $(INSTDIR) at the end of build, as it is done in dev-install case. Change-Id: I1a9852684361a12333046fa58f83720aa2c835da
2013-09-09start to use instdir for subsequentcheck tests; avoid make dev-installMatúš Kukan
This commit breaks linkoo. make dev-install continues to work as before but it's not necessary to use it anymore. make check now uses files copied into instdir by gbuild. TODO: fix remaining issues so that instdir is the same as install/. Change-Id: I66836170f0922ee9ba204a61ffacc30d9e9a5d98
2013-04-28copy gdb pretty printers into instdirDavid Tardon
Change-Id: I2e4805b89d519fd5586d5a1edf5dad7662c022de
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-03-14add gcc-wrapperPeter Foley
Change-Id: I961bd23d1ec382d247a489cda42194ce9f4fe1da Reviewed-on: https://gerrit.libreoffice.org/2715 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-13more subtle dependencies for cross-compilationMatúš Kukan
Now we build only what we really need for 'build' platform - there is new build-tools make target. The list of tools is in solenv/gbuild/extensions/pre_BuildTools.mk. Also similar is done to some extent for 'host' platform using gb_Module_add_targets_for_build which is ignored for 'host'. Change-Id: I6acd1762b16aca366aac1a0688500f27869cfca2
2013-03-12solenv: remove versionlist.hrcMatúš Kukan
Change-Id: Iddbfcacd17c1022293357ff5240ab7a52b1a390e Reviewed-on: https://gerrit.libreoffice.org/2677 Reviewed-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2013-03-11build concat-deps as ordinary executableMatúš Kukan
Change-Id: I6404472040f38c14ec7ca4a2c51be0d2f7f8199a Reviewed-on: https://gerrit.libreoffice.org/2659 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-02remove minor.mkMatúš Kukan
Hopefully all stays the same except for vcl/unx/gtk/a11y/atkutil.cxx. Change-Id: I49108007ee6d045f045de86c8654efc7ca5fd3d0 Reviewed-on: https://gerrit.libreoffice.org/2491 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2012-12-25Get rid of (most uses of) GUITor Lillqvist
GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: https://gerrit.libreoffice.org/1304 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
2012-11-03compile concat-deps in solenv; also put them into $(OUTDIR)Matúš Kukan
Change-Id: I4ef21f14a77442b60059c649b83435c775670060
2012-05-29$(OUTDIR)/inc/*minor.mk is created my gbuild nowDavid Tardon
Actually I think it should be removed entirely, because dmake already includes minor.mk directly from solenv, but I do not want to pry into it right now... Change-Id: I51520642f4796d722cb2131e91e9e92a82920531
2012-05-28The gdb stuff probably doesn't make sense for Android eitherTor Lillqvist
Change-Id: I6e9a9bc1f35be02af40530b29044e1f4b33e91ab
2012-05-28No point in the gdb stuff for iOS, and it breaks the build evenTor Lillqvist
Change-Id: Iebb6fede055f274d66aa09344b911913d5cb9882
2012-05-20gbuildize solenvDavid Tardon
Change-Id: I6e0758e543a89f593a1b0432b28b4c9768993af7