Commit graph

303 commits

Author SHA1 Message Date
Markus Mohrhard
071c09d7d9 add a IDE generator for clang json database format
This can be used for YouCompleteMe a vim plugin that allows
auto-completition based on clang. This is much better than the normal
static analyzer based auto-completition.

Change-Id: I4872d2cb3b3a404af55eacf5c71d6a2715771ab6
Reviewed-on: https://gerrit.libreoffice.org/10820
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-08-11 12:40:22 +00:00
Tor Lillqvist
0acc3300f1 If dev-install is obsolete, why have it at all?
Replace mentions of it in a few (dcumentation) places with test-install.

Change-Id: I6fc8e58fa5813b05de16feec35215c83e0e45834
2014-08-07 09:04:45 +03:00
David Tardon
922b03f081 fdo#82136 fix download of submodule tarballs
Change-Id: I07775391cb905f0563d1d1b3cae6f02b12d10f90
2014-08-04 19:34:25 +02:00
Michael Stahl
2768d78391 configure, gbuild: remove Cygwin paths from make environment
All environment variables contain native Win32 paths.

This allows building with Win32 make and Cygwin sh.exe,
but Cygwin make cannot build any more with the Win32 entries in PATH.

Requires adding "bash" detection to configure since /usr/bin/env
can't be invoked by Win32 make and it's possible to install cygwin
somewhere else than C:/cygwin.

Change-Id: Ia8f4ee3c91222e8f5919cfbfc452f12ffbfadd40
Reviewed-on: https://gerrit.libreoffice.org/9698
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-07-08 10:33:16 +00:00
Noel Grandin
065d6cc3f3 create a new top-level makefile target "clean.internal"
so I can clean just the non-external stuff when re-running my
clang plugins

Change-Id: I251ceba7e57454a91da5b1082192bb2d211e5406
2014-07-08 08:56:18 +02:00
Stephan Bergmann
b304628e4d Make things like "make CppunitTest_FOO" depend on bootstrap and fetch, too
Change-Id: I5a18fb4207b68e8359a7d78fd6352902dce1e051
2014-06-18 13:27:47 +02:00
Tor Lillqvist
7826428cf8 Make test-install work also in the non-release-build case
In the (default) --disable-release-build case the -p option to
make_installer.pl should be "LibreOffice_Dev", not "LibreOffice". See
instsetoo_native/util/openoffice.lst.in.

Also, the pathname passed to solenv/bin/macosx-codesign-app-bundle
needs to adapt to ENABLE_RELEASE_BUILD, either LibreOffice.app or
LibreOfficeDev.app.

Change-Id: If2b8efee096339f9c0cf52e663826d0086b1e35e
2014-06-10 12:54:52 +03:00
Tor Lillqvist
8ff6bfb75d Add --enable-macosx-package-signing
Change-Id: I355158f6cb584d252a21dfbce6e7cea6c70bba99
2014-06-10 11:44:49 +03:00
Michael Stahl
fe8c5f632c Makefile: prevent Win32 make from doing CreateProcess(autogen.sh)
Change-Id: I2ed9c346a8e9cfa26aa2b04f554c56f02c400829
2014-06-09 17:05:49 +02:00
Markus Mohrhard
9f13bb51a8 support sc.slowcheck
Change-Id: I91dcdba455660dee25accdd2185a876bf7012ff8
2014-04-25 20:02:21 +02:00
Michael Stahl
880e7587f7 Makefile: let "make foo.genpatch" work on top-level
Change-Id: Ib0e370472be5da03359bca6f90287083d3465605
2014-04-17 17:57:04 +02:00
Luboš Luňák
35720eac8b fix $(MAKE) usage in a make define
$(FOO) is expanded already during the $call, $$(FOO) will become $(FOO).

Change-Id: Ia5d6966c16c57e4ec688f2c7623315cc2c74c78d
2014-03-23 21:22:36 +01:00
Luboš Luňák
f8062812ae use $(MAKE) for recursive make invocation
That's apparently the only proper way (to get e.g. -j right), and
even the toplevel Makefile is so full of gmake-ism that it simply
has to be invoked using GNU make already, hence $GNUMAKE is pointless
except for usage in configure (which says to start the build by
invoking it).

Change-Id: I6060da6f1dad2afc5845ac29b8ac02348c057d3d
2014-03-23 17:54:45 +01:00
Luboš Luňák
f605cfc73d make it possible to build without the obnoxious forced -j to make
Rework --with-parallelism to not add any extra -j to make if 0
or --without is used. This requires explicit -j usage, which
- builds even compilerplugins in parallel
- builds 'make -C sw/' in parallel (since you don't forget the -j)
- avoids jobserver disabling if -j is explicitly passed to the toplevel make

IMO this is just a relic of the old build system and the option should
be dumped altogether, but I don't feel like arguing right now.

Change-Id: I71479391bcfc84aa5e9fd9696880702da496d45c
2014-03-23 16:26:56 +01:00
Michael Stahl
e3ba76406b normalize values of DO_FETCH_TARBALLS
This one has additional value "ALL".

Change-Id: Id804172eee899b443a6f8ae6bce8781136096dc7
2014-03-11 11:57:18 +01:00
Michael Stahl
d729d169de normalize values of CROSS_COMPILING
Change-Id: I0cc43cef91e3fcd82a3558a16ab0afbd4d56b141
2014-02-27 18:09:01 +01:00
Stephan Bergmann
a19440bee7 Add toposort feature to module-deps.pl
Change-Id: Id839eae62ad53189c44f7ca5a498bf7113c2536a
2014-02-17 18:03:44 +01:00
Adam Mróz
cc24e7ebd9 Fixes for kdevelop IDE integration
Script bin/gbuild-to-ide is parsing messages basing on regular
expressions.

First problem appears when used language is not English - that's why
setting LC_MESSAGES variable in Makefile.

Second problem appears with quote symbol. For me (Archlinux) script was
not working. After some investigation I found out that reason was that
my output from make included ' symbol when regular expression assumed
that it should be `. That's why using [\'`].

Example:

recipe to execute (from '/home/sadam/libreoffice/core/idlc/Executable_idlc.mk', line 28):

Conflicts:
	bin/gbuild-to-ide

Change-Id: I0083c69820bd58ce2ac296f21985408c69840639
Reviewed-on: https://gerrit.libreoffice.org/7979
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12 13:08:09 +00:00
Norbert Thiebaud
3047ac5c1f Makefile.in make the initial invocation of Makefile.build a bit less ugly
Change-Id: Ic25f0e379142ad8e0581598e314b5d314ee5f9e1
2014-02-10 18:24:32 -06:00
Honza Havlíček
2e2303a3e2 fdo#70414 Added generator of VS2012 project files
Change-Id: Ib087a24ae6de049ffb6d93b5ac66452700edddb3
Reviewed-on: https://gerrit.libreoffice.org/7955
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2014-02-10 19:45:35 +00:00
Michael Stahl
e20439a125 Makefile.in: hardcoded make -> $(GNUMAKE)
Change-Id: I2ec31816562e55f6f95cac38dab4a17a393c0f9a
2014-01-21 22:31:38 +01:00
Stephan Bergmann
16b48021e1 Fix cross-compilation "make distclean" 2013-12-17 14:06:42 +01:00
Bjoern Michaelsen
c6fe5c6f37 initial install-package-foo target for partial installs
Change-Id: I4ee41fdb600cb3a89da387dffe64e6a30192761c
2013-12-08 03:56:41 +01:00
Tor Lillqvist
61e66d762d Add initial hacks for eventual Xcode support
Just some late-night hacking without much thinking whether it makes
any sense and without any clear picture of what I am doing. Probably
useless. No promises I will ever continue on this.

Change-Id: Ie61925129bb678a17b30cb25a7882ccfe3a1de82
2013-11-27 11:21:44 +02:00
Tor Lillqvist
1b90c10dbb I think this is what was meant?
Change-Id: I5ff6e2588361ab58d7cda9ddbd5db61c300c9956
2013-11-26 21:28:07 +02:00
Bjoern Michaelsen
6991dd741e make packageinfo target
Change-Id: Id5f6f5c1f3e46df2d9033ccd5bbf2af6ab38a9e8
Reviewed-on: https://gerrit.libreoffice.org/6754
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-11-21 10:36:51 -06:00
Michael Stahl
deb249e1b3 Makefile.in: "make check" should build "all" too
Change-Id: I6b72c3deb1a056149e965b78d12d3c37c6bfd5b9
2013-11-21 13:12:33 +01:00
Bjoern Michaelsen
a691e0ed1e l10n and non-l10n targets missing dep on build
Change-Id: Ia6d09a1625819593291649369a7533bbd2ee8227
2013-11-21 12:48:47 +01:00
Bjoern Michaelsen
f9041c386c oops, we still need the ?=, of course
Change-Id: Ifa3e6639a5fdbd58e99fe3f1feadc009ddcee880
2013-11-21 03:46:02 +01:00
Bjoern Michaelsen
6788b92e15 lazy eval is lazy. and nasty too
Change-Id: I4191277a2df0ea060d86090ee6e99490840f8f48
2013-11-21 03:37:03 +01:00
Bjoern Michaelsen
a2541298c6 move finunusedcode to a script
Change-Id: Ie4a422a818095313d9765a4c5e9ebba838eed76d
2013-11-21 00:57:38 +01:00
Bjoern Michaelsen
4a016d139e simplify top-level Makefile some more
Change-Id: Ie1d53db34f812a83940196d0bf6e4ad8aaa8eab6
2013-11-21 00:34:20 +01:00
Matúš Kukan
38a22f56ca just use wildcard here
Change-Id: I2c145328b03f66a6a67c0afa0463005112fd77da
2013-11-21 00:05:56 +01:00
Bjoern Michaelsen
1bd21f8016 install-gdb-printer -L fails with 'unknown option' anyway
Change-Id: I5927427264eaed86d2e93bee1cfc8f1ff55690c3
2013-11-20 21:15:34 +01:00
Bjoern Michaelsen
ac32aafc7b clean up echo deserts, consolidate blurbs
Change-Id: If268d37e8e96adcb8902c8b3fc855ecddea69ba5
2013-11-20 21:15:33 +01:00
Bjoern Michaelsen
60c64b437c some namespacing
Change-Id: I7f4fc456d7e9690443d94175e94b69db50c3e2b5
2013-11-20 21:15:33 +01:00
Bjoern Michaelsen
00e9a7a557 toplevel 'make check' should also do subsequentcheck
Change-Id: Ib41660a1fef332573ef1c477c12bc8fdfedfc4db
2013-11-20 21:15:33 +01:00
Bjoern Michaelsen
4eebd65858 fix Makefile.in
- unify ~all gbuild targets to one gbuild call
- kill CHECK_PARALLELISM as we dont respect it consistently anyway
- ${MODULE}.subsequentcheck needs no specialcasing now anymore too
- should fix e.g. "make unitcheck slowcheck subsequentcheck" calls

Change-Id: I4238d7de599cb9fbaf09f60539d6655b85b87c29
Reviewed-on: https://gerrit.libreoffice.org/6722
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-11-19 11:30:24 -06:00
Bjoern Michaelsen
ba99e29607 related fdo#70414 gbuild to ide: kdevelop
This provides kdevelop integration and generates one project file for each
old-style module (top level dir). This project file has:

- has four build configurations:
  - build the module of the project or build all of LibreOffice
  - for each of the above a debug and a nondebug build
- has seven launch targets:
  - running the unitchecks, the slowchecks and subsequentchecks
  - for each of the above once for the module and once for all
  - running LibreOffice interactively
- has custom include paths and thus provides full autocompletion

Change-Id: I6dd51133147d019fc403e3bd814bc6103df94cac
Reviewed-on: https://gerrit.libreoffice.org/6694
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-11-19 05:32:30 -06:00
Bjoern Michaelsen
04dead1c6b make l10n buildable separately
- this renames the 'almost' module target to non-l10n
- and adds a l10n target which is intended to only build l10n parts of
  the product
- packagers should then be able to build l10n and non-l10n parts of the
  product independently, thus:
   - enable quicker rebuilds
   - distribution of load
   - updates to l10n without a full rebuild
   - security fixes to binaries without rebuilding all l10n
- the new targets are called build-l10n-only and build-non-l10n-only
- note this is not intended to move a concept of split packages
  upstream -- while this exsists in distros, the number of test
  scenarios for this would explode upstream

Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863

Conflicts:
	filter/Module_filter.mk
2013-11-14 16:45:02 +01:00
Michael Stahl
bd5a6c285c a little instdir sub-dir cleanup
Change-Id: I97df3f949da7403e46951cf159a9fc1fca4cc23f
2013-11-07 22:53:46 +01:00
Michael Stahl
b800216933 remove INPATH and PROEXT
- WORKDIR path is just workdir
- INSTDIR path is just instdir
- WORKDIR_FOR_BUILD is workdir_for_build
- INSTDIR_FOR_BUILD is instdir_for_build
- replace other usage of INPATH by combination of OS and CPUNAME

Change-Id: Ie398387ebd82a968ec2605f2103c55b43a231482
Reviewed-on: https://gerrit.libreoffice.org/6601
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-11-07 14:27:50 -06:00
Michael Stahl
bc5069ac40 remove SOLARENV variable
It is constant and can just be replaced by $(SRCDIR)/solenv.

Use BUILD_TYPE where it was used to check if config_*.mk is sourced.

Change-Id: Ib9d480c57194b6340093aa47776f8768df69b7d1
2013-11-02 22:07:53 +01:00
Michael Stahl
5d8f48c81e solver doesn't solve anything...
... it is an abbreviation of "Solar Version".

Since nobody can remember that:

remove OUTDIR OUTDIR_FOR_BUILD SOLARVER SOLARVERSION solarpath
and any mention thereof.

Change-Id: Idb3031c4f25a76ac05b22ec67e3ca3e1e8e512ad
Reviewed-on: https://gerrit.libreoffice.org/6515
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-10-31 15:42:24 +00:00
Michael Stahl
60211134bc gbuild: add ExtensionPackageSet class
Change-Id: I947207c78e28b416aebe2e33172043fd8cfa4f17
2013-10-31 10:42:25 +01:00
Michael Stahl
704451d95d gbuild: add ExtensionPackage class
Change-Id: I65ca50ccc512e35a5b95c2482f3a8833d1a7294b
2013-10-31 10:42:24 +01:00
Michael Stahl
2cb380bad6 solenv: remove gdb Package and CustomTarget
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-10-30 00:01:33 +01:00
Michael Stahl
6bd0f9ba9d gbuild: refactor CliUnoApi
- stop copying the DLL to OUTDIR
- since that was the main reason for the separation between
  CliUnoApi and CliUnoApiTarget, merge the targets;
  the newly inherited variables are not expected to cause problems
- hardcode target to URE bin dir for now, no immediate need for
  multiple layers

Change-Id: I428d801ec7058e1c6374d8162a4118a3fe581978
2013-10-28 14:01:08 +01:00
Michael Stahl
dddff6e51d Makefile: make convenience targets like "make icu" work for external/
Change-Id: I6cf2e6bd1c52412339ec6bab98b3f1b28cef1032
2013-10-23 19:21:13 +02:00
Michael Stahl
0f96de25ee Makefile: remove broken "usedcxxfiles" target
Was (accidentally?) added in 99f8cf1221.

Change-Id: I099be6c3e480a8365f2ffea371be435194973c5b
2013-10-22 14:42:17 +02:00