summaryrefslogtreecommitdiff
path: root/solenv/bin/concat-deps.c
AgeCommit message (Collapse)Author
2017-01-09loplugin:externvarStephan Bergmann
Change-Id: I63571c0003e6e0d7bd7a0c71a7dd47955a8871e0
2016-10-15clang-cl loplugin: solenvStephan Bergmann
Change-Id: I0a1075b92e787fc8bab7cfab5c3f24ad918a9181 Reviewed-on: https://gerrit.libreoffice.org/29850 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-02cppcheck invalidPrintfArgTypeJochen Nitschke
signedness and long vs int corrections Change-Id: I67c6b9e05b16f5d8d4693879f1656db50dc7ec48 Reviewed-on: https://gerrit.libreoffice.org/29355 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-03-16coverity#1356338 inline markup didn't workCaolán McNamara
Change-Id: I8b1bb924afe13a034125c892205aae8167a10bd1
2016-03-10Avoid reserved identifiersStephan Bergmann
Change-Id: I6275327a1b079f8cc0939e608dbbaff544ab05b0
2016-02-08Fix typosAndrea Gelmini
Change-Id: I4586168d3af81f047a4ded59fc6d257f17554885 Reviewed-on: https://gerrit.libreoffice.org/22194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-14Fix build on BSDsBaptiste Daroussin
Change-Id: I88fbad89a78262f4c3275aa3a01fbebaacece245 Reviewed-on: https://gerrit.libreoffice.org/20660 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I5dfb8238b1365502544f6a383313311a9afd0e80
2015-09-30Fix typosAndrea Gelmini
Change-Id: I89ff6d31662824d83961d6457b82db8d8031168c Reviewed-on: https://gerrit.libreoffice.org/18977 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-08-26-Werror,-Wnonconst-parameterStephan Bergmann
Change-Id: I14c7e2245e1333a7cc3c372b29f4a3b679169209
2015-07-31concat-deps: fix build with gcc -fsanitize=... -std=gnu89Michael Stahl
Apparently Clang C89 mode is sloppily implemented and allows this. Change-Id: I78ef943bc4c5f8590dae8879dad65ad9fbe9a9bb
2015-06-08some spelling fixes, mostly in Java codeNoel Grandin
Change-Id: Ib9d0522a1f371404ee990348712e2d196049f69f
2014-11-24coverity#736477 document deliberate Resource leak at detection pointCaolán McNamara
Change-Id: Id9ad1df799c67110a426ee7ce41287703e8bdbfb
2014-06-09concat-deps: Win32 make $(file) will end lines with CRLFMichael Stahl
Change-Id: I3677de94e064c2f737cc7882b3cc4f42a6bf626a
2014-05-26Fragile concat-deps _process misinterprets ENOMEM from file_loadStephan Bergmann
Change-Id: I0df494b74f23b0a30fe26e25f58b4827bd28ed47
2014-05-22concat-deps: Clean up memory at exit when run with lsanStephan Bergmann
Change-Id: I66ccb5332e6c5eceb2f199911ebd4296c93cac4b
2014-04-02Internal linkageStephan Bergmann
Change-Id: Id329745fa1988003b4771c6b7d75f2db0930184c
2014-02-06coverity#736094 Argument cannot be negativeCaolán McNamara
Change-Id: I8368217e7fb40322de1f03ef68c1ddbe2fc5652a
2013-09-30-Werror,-Wunused-functionStephan Bergmann
Change-Id: I55e586fe1d145be139bf1c5b00f434ea31ba50d7
2013-09-23Print a helpful error message if we are going to failTor Lillqvist
Change-Id: I0685c9d2d857a9e994c616acb6d7ce106c7a7dad
2013-09-19Directly build UNOIDL .rdb files from .idl filesStephan Bergmann
...via unoidl-write and the new source-format registry provicers, instead of using idlc to produce .urd files, regmerge to merge them into legacy .rdb files, and unoidl-write to translate those to new UNOIDL .rdb files. gb_UnoApi and gb_InternalUnoApi ctors take an additional argument now that is the path (below $(SRCDIR)) of the source-format registry from which to obtain UNOIDL entity definitions. It can either be an .idl file (in which case no *_add_idlfiles calls should be used and the resulting .rdb will contain all the entities from that one .idl file; used in some tests to conveniently define all test-specific entities in a single file) or a directory denoting the root of an .idl file tree (in which case *_add_idlfiles calls specify the entites to include in the resulting .idl file). (In the first case, the generated .rdb file needs to depend on that single .idl file, so the gb_UnoApiTarget ctor contains a dependency on that additional argument, which happens, as a side effect, to trigger rebuilds in the second, tree-based case when addition/removal of .idl files in the tree causes updates of directory time-stamps.) UnoApiPartTarget and all the dependency-tracking logic based on .urd files in solenv/gbuild/UnoApiTarget.mk is gone. Generation of an .rdb file now depends on its source registry (see previous paragraph) and all the .idl files specified with *_add_idlfiles (in the second, tree-based case above). A consequence of that is that gb_UnoApi_add_idlfile, -_nohdl, and -_noheader all do the same now. I left them in for now anyway, maybe they become relevant again when the use of cppumaker is changed to read directly from a source-format registry instead of going via a .rdb registry. The legacy tools idlc, regcompare, regmerge, and regview are still contained in the URE or SDK for now. cb344cd59e1ddb7c6db66dbd9263b4755969d4ba "Revert 'Looks like idlc resolved typedefs inside sequence<...>'" is re-reverted as now "the current offapi.rdb is generated via unoidl-write instead of idlc." Change-Id: I3d9d92f17326bc9f49dd934c85aab6a17951d06d
2013-08-30WaE: size_t to int conversion: possible loss of dataTor Lillqvist
Change-Id: Ica626a5ebe8e3c022e5398b50253904d269ba0ce
2013-08-22Misaligned access is always undefined behaviorStephan Bergmann
...as flagged by Clang -fsanitize=undefined Change-Id: I924439b1546832ebc37b87d88279822b9b7b6c0d
2013-06-18WaE: variable may be used uninitializedTor Lillqvist
Change-Id: Icfdf8dddc4da20785e0881a95f50ee498e8405cd
2013-06-18handle missing dep files in concat-depsBjoern Michaelsen
* this and Ib4762f5a260035f00b5e68cf45b687fdf02e9c02 reduces a default build on my machine from 2min25sec to 2min12sec * without unitchecks, its down to 1min50sec now * it reduces the build time on a i7-4770 Windows tinderbox from 99min to 89min * by now it also takes care of avoiding most string copying, although this can certainly be considered overeager given that the file creation on Windows took ~250ms per file before and still will take a lot longer than any string operation with this change Change-Id: I515432bdefe2b055c78b6ba97868adbde65d9165
2013-04-15fdo#60724 correct spellingThomas Arnhold
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-03-27-Werror,-Wunused-macrosStephan Bergmann
Change-Id: I3c43fcfe7216a833f1dbe298098b72de52f0f155
2013-03-27-Wunused-macrosStephan Bergmann
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-14__BYTE_ORDER was used without the relevant #includeLuboš Luňák
Change-Id: I4e4d10c1c82834608b14aae62f02e5859d10114d
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-05replace snprintf with fwrite in concat-depsPeter Foley
As suggested by Norbert Change-Id: I1b23f2e0de8524db9e1c903863163a82a3965e41
2013-03-04do not require cygwin gccPeter Foley
Change-Id: I29de91f2eeb5c9317271aecf861f64a3c8eff73f Reviewed-on: https://gerrit.libreoffice.org/2521 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-03-03cverity#736478: leaked file descriptorsMarkus Mohrhard
Change-Id: I0e79f3e330fe1535c473d49010da34b04b9c5875
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl
- do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2012-11-23Ignoring dependencies on .hdl files is unsound when cppumaker changesStephan Bergmann
...as it will do in one of the following commits. Change-Id: Ic13c0d398943d34dffbc1a87efcac213d6699ca9
2012-11-07concat-deps: tweak boost handling to depend on unpacked targetMichael Stahl
Change-Id: Iae93f7a81959a5d9c23e9bddb65e6154655374e6
2012-11-07concat-deps: on Windows, compare paths case-insensitivelyMichael Stahl
Change-Id: I5e5d9b39cb0440644bf3ffb8dca4913dc123f672
2012-11-07concat-deps: bin pointless duplicationMichael Stahl
Change-Id: I8aedf930bc007bf83f8111db9a5565668142321e
2012-11-07concat-deps: properly recognize colon that follows targetMichael Stahl
Should fix cases where for weirdly formatted input files the target was mangled erroneously. Change-Id: I28d94a6c714b5f893ac873f84fe2022e96cf1327
2012-11-07Eat unneeded spaces at the beginning of .d files, they confuse concat-deps.Jan Holesovsky
Change-Id: I541fb875d4d0bc46eb1bbb21793343c0283fd412
2012-10-29gbuild: solve the UnpackedTarball header problem in concat-deps:Michael Stahl
Mangle all included files in the UnpackedTarball directory in the generated dependency files to point to the target of the UnpackedTarball instead. This will cause all files that include them to be rebuilt on every unpack, which is sound and much easier to maintain than manually enumerating all internal header files somewhere. Change-Id: Iaaa9b27450549d26b40d32ae0f740c2d5ef0edc5
2012-10-26fix incorrect assert() usageLuboš Luňák
In final (NDEBUG) builds assert expands to (more or less) nothing. Change-Id: Ie6d43cac381975880c9db2b4a01bd9ed30e2714b
2012-10-26warn free build of dmake, concat-deps and lpsolveRené Kjellerup
add error handling for fread, fwrite, and fscanf calls use "fputs" instead of "fprintf" to avoid warning that it couldn't varify the format string because it wasn't a string literal. Change-Id: I1137160d28461fbac69c8e05d32ba010da491c57 Reviewed-on: https://gerrit.libreoffice.org/903 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2012-10-24concat-deps: fix breakage introduced by eliding:Michael Stahl
The call to elide_dependency in _process was broken because it checked the full line, which ends with " : " usually, breaking the build with LO customised GNU make on cygwin. (regression from 140281898f21f707582f395918e5234bdb67e435) Also handle empty lines following '\' better while at it. Change-Id: Iadc6349e5b6930945e46e244bcbee37a632e0d71
2012-10-22Remove spurious find_substrStephan Bergmann
Change-Id: I4b001e6fd963df2fad97aaf5885b0b38189e59d6
2012-10-12detect and collapse internal boost dependencies to a single headerMichael Meeks
Change-Id: I18281f9cdf4c20ab4f939b2f7d3b0a6c3bf5387b
2012-10-12elide all dependencies on .hdl files, they're ~all duplicated by .hppMichael Meeks
Also - verified that codemaker touches both .hdl and .hpp regardless of whether the contents changed in anyway under gbuild. Change-Id: I391e9cf952c61a6c59087cd7cd0ddc8c54a14df3
2012-08-24Remove debugging outputTor Lillqvist
Change-Id: Ibd80b49eba4b259027d57845b8ebba3e35908e82
2012-08-20concat-deps.c: add || defined (__FreeBSD_kernel__) for arch-specificsRene Engelhard
Change-Id: Ie321ada6d2c078881fdedc61d72c94034297fea3