Commit Graph
726 Commits
Author SHA1 Message Date
Mike Kaganski d297fad623 setup_native: MSVC: pragma warning: make more specific, remove obsolete
Change-Id: Ie9f63d982acf368d27bb5b97728b060a80e8bd67
Reviewed-on: https://gerrit.libreoffice.org/49047
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-02-02 05:59:46 +01:00
Stephan Bergmann 9af8f190ed More loplugin:cstylecast on Windows
Automatic rewrite (of loplugin:cstylecast and loplugin:unnecessaryparen) after
cab0427cad "Enable loplugin:cstylecast for some
more cases" and a409d32e7f "More
loplugin:cstylecast"

Change-Id: Ib3355159dd08333e1b7a8d091caf2069cdcc7862
Reviewed-on: https://gerrit.libreoffice.org/48317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-01-23 07:54:51 +01:00
Stephan Bergmann 33f67eee3e loplugin:includeform: setup_native (Windows)
Change-Id: I58cae555a303a8657955ceec08065e8b440bdad4
2017-10-27 19:28:51 +02:00
Mike Kaganski 0dd2e602e5 Drop check for Windows versions we don't support
Since we dropped support of Vista and below in master toward 6.0,
those checks are needless. Removing the code that only worked in
older versions, and streamlining the resulting code.

Also, use kernel32.dll version for Windows version, instead of
deprecated GetVersionEx, and inconvenient VersionHelpers. Since both
GetVersion(Ex) and VersionHelpers (based on VerifyVersionInfo) are
subject to manifest-based behavior since Windows 8.1, this move will
hopefully result in more reliable OS version detection.

Change-Id: I3edd8fc1843e64b6a65bd3a126be6a085511f13c
Reviewed-on: https://gerrit.libreoffice.org/42905
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-29 14:55:11 +02:00
Stephan Bergmann 830db20afb Fix syntax errors
...that are apparently accepted by MSVC, but not by clang-cl

Change-Id: I2a11bdc709b9711d9d93d24dcb5957121fcf9efb
2017-09-29 13:25:56 +02:00
Mike Kaganski 0fa2133642 setup_native: use more Unicode in MSI custom actions
Change-Id: Id47ea566c9cf508116216625fe00013e8326b165
Reviewed-on: https://gerrit.libreoffice.org/42839
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-28 05:32:50 +02:00
Mike Kaganski eef4c133e9 Windows: avoid dependence on UNICODE define; prefer W functions
Change-Id: I95b90128e93f0d88ed73601bcc5a7ca9279d4cf1
Reviewed-on: https://gerrit.libreoffice.org/42560
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-22 20:53:30 +02:00
Mike Kaganski afeff9102c Use even more WIN32_LEAN_AND_MEAN
Change-Id: I538fe5b41156366e0e87b3a93e58a3947afd18f5
Reviewed-on: https://gerrit.libreoffice.org/42398
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-18 01:13:30 +02:00
Mike Kaganski 3128668599 Use more WIN32_LEAN_AND_MEAN
https://msdn.microsoft.com/en-us/aa383745

Change-Id: I83528dc8e6a5e119e7aa816219d35f1ea3723b96
Reviewed-on: https://gerrit.libreoffice.org/42338
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-16 20:16:15 +02:00
Stephan Bergmann 3c665f5dab loplugin:constparams: setup_native (clang-cl)
Change-Id: I36331a6caf560c7622f72c2fafa968522f44f5e9
2017-08-31 12:14:40 +02:00
Mike Kaganski 0c54777634 tdf#106359: register .iqy in MSI and treat them as templates
Change-Id: I7ae94c7717fbea03d96c539e05eeb565bafefd9f
Reviewed-on: https://gerrit.libreoffice.org/36188
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-06 11:25:43 +00:00
Stephan Bergmann 8646ab97dc Remove MinGW support
In OOo times, there'd originally been efforts to allow building on Windows with
MinGW.  Later, in LO times, this has been shifted to an attempt of cross-
compiling for Windows on Linux.  That attempt can be considered abandoned, and
the relevant code rotting.

Due to this heritage, there are now three kinds of MinGW-specific code in LO:

* Code from the original OOo native Windows effort that is no longer relevant
  for the LO cross-compilation effort, but has never been removed properly.

* Code from the original OOo native Windows effort that is re-purposed for the
  LO cross-compilation effort.

* Code that has been added specifially for the LO cross-compilation effort.

All three kinds of code are removed.

(An unrelated, remaining use of MinGW is for --enable-build-unowinreg, utilizing
--with-mingw-cross-compiler, MINGWCXX, and MINGWSTRIP.)

Change-Id: I49daad8669b4cbe49fa923050c4a4a6ff7dda568
Reviewed-on: https://gerrit.libreoffice.org/34127
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-10 18:01:27 +00:00
Stephan Bergmann b58b241f3a loplugin:externvar (clang-cl)
Change-Id: Iebf83ccfb9e7128fd328a548ce77cdee4ef7ca4b
2017-01-11 13:42:41 +01:00
Julien Nabet f8e77c0894 Revert "tdf#99589 tolower changed to rtl::toAsciiLowerCase"
Following Stephan's message https://gerrit.libreoffice.org/#/c/32462/

This reverts commit 47f338c1cf.

Change-Id: I6846fe495a9e1cccce56a2764c61b804c0eaa75c
Reviewed-on: https://gerrit.libreoffice.org/32637
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-02 14:07:13 +00:00
abdulwd 47f338c1cf tdf#99589 tolower changed to rtl::toAsciiLowerCase
/home/abdul/libreoffice/setup_native/source/win32/wintools/msimsp/msimsp.c modified

Change-Id: Ia7e111d0920ef7f456bc6f5f6536253da3842ccf
Reviewed-on: https://gerrit.libreoffice.org/32462
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2016-12-28 09:42:17 +00:00
Stephan Bergmann 83d6099b7d clang-cl loplugin: setup_native
Change-Id: I424164d19ba59697d39b3a3888ec2f743a3a832c
Reviewed-on: https://gerrit.libreoffice.org/29853
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-16 14:18:05 +00:00
Stephan Bergmann c236c8e88a LoadLibraryEx returns null on error
Returning <= HINSTANCE_ERROR (aka 32) on error was apparently a feature of
LoadLibrary in 16-bit Windows 3 times.

Change-Id: Idf9fbd84ac1fadb67449968b65cd5e8e391a39f2
Reviewed-on: https://gerrit.libreoffice.org/29752
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-13 09:47:08 +00:00
Jochen Nitschke d866c3af42 cppcheck invalidPrintfArgType
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-10-02 08:20:44 +00:00
Andras Timar 0794fb0edc tdf#92266 better language selection in Windows installer
It won't select 'kok' when we have 'ko', 'sid' when we have
'si', but language variants will fall back, e.g. en_ZW -> en.

Change-Id: Ie417b6be664d5148829d2f7280e20653f84bc7a3
Reviewed-on: https://gerrit.libreoffice.org/28744
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-09-21 21:40:04 +00:00
Andras Timar dd3d1ff954 fix en-US language selection logic
Change-Id: I60a90e310bd60c97f4d135a4740928c6e19d3ebc
Reviewed-on: https://gerrit.libreoffice.org/28743
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-09-21 21:35:44 +00:00
Stephan Bergmann 6dd32d4274 chmod 644 some source files
Change-Id: Icd8821278635c1bd27b5185cddf5dc25dfba7eb4
2016-09-13 13:23:53 +02:00
skswales 29e0b587df Work towards tdf#72606 EasyHack _tstring/TCHAR elimination
Functions suffixed with A/W (ANSI/Wide) as needed for clarity

This completes the _tstring/TCHAR/TEXT elimination for setup_native/

Change-Id: I66292fd490a09f75b8691274255ba41870074065
Reviewed-on: https://gerrit.libreoffice.org/25771
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-06-07 19:43:04 +00:00
skswales 7fe92c766a Work towards tdf#72606 EasyHack _tstring/TCHAR elimination
setup_native/source/win32/customactions/shellextensions in MSI Installer compiled as UNICODE

Functions suffixed with A/W (ANSI/Wide) as needed for clarity

Change-Id: I711f781b47c0efdb1e3d9bf995f7658dbb0e38d1
Reviewed-on: https://gerrit.libreoffice.org/25556
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-30 11:13:35 +00:00
Stephan Bergmann a0a31d1a5b -Werror,-Wunused-macros
Change-Id: I321a9e2e51a70517ee344d311eb200540f01a979
2016-05-25 15:06:16 +02:00
Stephan Bergmann b911fa87dc -Werror,-Wunused-macros
Change-Id: Ie0684d80740d592ea01546eea36a13c03b9eec4b
2016-05-25 08:31:31 +02:00
skswales 68502698d2 Work towards tdf#72606 EasyHack _tstring/TCHAR elimination
win32/customactions/sellang use A/W suffixed functions as appropriate

Change-Id: Ic609a6dfb8033585cd2043a77985578abfdae893
Reviewed-on: https://gerrit.libreoffice.org/25167
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-24 20:41:57 +00:00
skswales 074bd09ee6 Work towards tdf#72606 EasyHack _tstring/TCHAR elimination
Quickstarter removal code in MSI Installer compiled as UNICODE

Functions suffixed with A/W (ANSI/Wide) as needed for clarity

Change-Id: I50aa27a753542fc0ddf002f385de78ba106b17ab
Reviewed-on: https://gerrit.libreoffice.org/25153
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-24 20:40:51 +00:00
skswales 163dcad72e Work towards tdf#72606
EasyHack _tstring/TCHAR elimination

These were already compiled UNICODE - changes for clarity and consistency

Change-Id: I846063ddf37af80b3a8787b45d97215e1770c0f3
Reviewed-on: https://gerrit.libreoffice.org/24859
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-24 20:27:22 +00:00
skswales 8a4dd6f45b Work towards tdf#72606 EasyHack _tstring/TCHAR elimination
Built and tested Windows MSI installer

Change-Id: Id49f7df80e01aaa608fe80687002f44d22bd3200
Reviewed-on: https://gerrit.libreoffice.org/24707
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-09 06:03:21 +00:00
Noel Grandin 6439005484 use SAL_N_ELEMENTS more widely
found using
   git grep -n 'sizeof.*/.*sizeof.*[0]'

Change-Id: Icd4a6cc1ca8ec8ebd68e1701a02789c74cf0eb2a
2016-03-31 11:30:36 +02:00
Noel Grandin 1aa4df615f use SAL_N_ELEMENTS in for loops
for with
  git grep -n 'for.*sizeof'

Change-Id: I6211024385e03ac5eeeb38690d2c1c699e015c2f
Reviewed-on: https://gerrit.libreoffice.org/23569
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-31 08:00:13 +00:00
Jaskaran a1a63373f9 tdf#82335 Register Libreoffice for Kingsoft file types
Registered LO for Kingsoft document , spreadsheet, presentation
and their template types.

Change-Id: If2b9f428b22f6d104c5ffe699f5264a22b814a0e
Reviewed-on: https://gerrit.libreoffice.org/23037
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-03-09 10:23:16 +00:00
Chris Sherlock a238b1f8d3 Remove excess newlines
A ridiculously fast way of doing this is:

for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \
  --exclude-dir=workdir --exclude-dir=instdir '^
{3,}' .)
do
    perl -0777 -i -pe 's/^
{3,}/

/gm' $i
done

Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
Reviewed-on: https://gerrit.libreoffice.org/22224
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09 08:18:05 +00:00
Julien Nabet d699266393 cppcheck: fix memleak in win32/wintools/msidb/msidb.c
Change-Id: I60ce0dbb26a75b49a50a982214d7adfb7ab833a0
Reviewed-on: https://gerrit.libreoffice.org/20679
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-12-13 10:20:14 +00:00
Stephan Bergmann 000af551ed -Werror,-Wwritable-strings
Change-Id: I18d4d9153009ff132fe07b30ad55025e3875a180
2015-11-18 17:19:15 +01:00
Stephan Bergmann 18e972c2d9 -Werror,-Wwritable-strings
Change-Id: I016006135012699b4e14e869c036f4d295e5cde2
2015-11-18 17:19:15 +01:00
Stephan Bergmann 4c03c36f73 -Werror,-Wunused-internal-declaration
Change-Id: I4e9b7ee46a4438feff8508d443822c607633e7c1
2015-11-18 17:19:14 +01:00
Stephan Bergmann e82ebf09d2 -Werror,-Wunused-function
Change-Id: Idb8d967348b49d467249d2923829f66044e9891e
2015-11-18 17:19:14 +01:00
Andrea Gelmini 0b7d51df3b Fix typos
Change-Id: Ic6415423f46aaee7ba90239a617c318cf92ae222
Reviewed-on: https://gerrit.libreoffice.org/16711
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-07-04 10:21:01 +00:00
Andrea Gelmini ae150c6a54 Fix typos
Change-Id: Ibfa971952cd330ddf430e7e951c5c235d2ae6bd8
Reviewed-on: https://gerrit.libreoffice.org/16314
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-06-18 11:44:56 +00:00
Noel Grandin dcf6abfcdf cppcheck:unreadVariable
Change-Id: I03981ceba67280e8ed98a9add7f24b3bd958d522
2015-06-15 14:06:31 +02:00
Caolán McNamara 32f95a3551 V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-03-04 13:07:40 +00:00
Caolán McNamara 2116ca5411 V804: Decreased performance
Change-Id: Iee15e6f2a08447ccbb82b39146cd5ade68e82b1e
Reviewed-on: https://gerrit.libreoffice.org/14711
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-02 16:19:47 +00:00
Caolán McNamara ccfff88d2b cppcheck: unusedVariable
Change-Id: I2c999c79b071647165a21ccc0b6c50cf7e0c6b0a
2015-01-24 17:01:56 +00:00
Michael Stahl ba68436e3f Win SDK 8.1: apparently VersionHelpers.h needs to be included explicitly
http://ci.libreoffice.org/job/lo_gerrit_master/495/Gerrit=Gerrit,Platform=Windows/console

Change-Id: I0104d448906bd17857b3716856c544e632c1662c
2015-01-23 14:04:24 +01:00
Michael Stahl 4500afcc1b try to fix GetVersionEx deprecation warnings from Windows SDK 8.1
Apparently GetVersionEx() is deprecated now, but the replacement header
"versionhelpers.h" does not exist in older SDKs (at least not in 8.0),
so try to determine the used SDK version by checking if the Windows 8.1
version constant _WIN32_WINNT_WINBLUE (0x0602) exists.

http://msdn.microsoft.com/en-us/library/windows/desktop/dn424972%28v=vs.85%29.aspx

Change-Id: Ia9224a8c76823ada7cb294a600046c6a0fc843ad
Reviewed-on: https://gerrit.libreoffice.org/14020
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-01-19 20:31:38 +00:00
Stephan Bergmann 4b6560b216 Create/RemoveLayerLinks are unused
...ever since 4c25522a6b "CWS-TOOLING: integrate
CWS native196_DEV300"

Change-Id: I8d50df80d8d5450db89b48338b32269aa8e67afb
2014-12-02 16:41:55 +01:00
Thomas Arnhold c7b0ec8924 warning C4189: local variable is initialized but not referenced
Change-Id: Ib1f69c0a37452f980b115a52666c85fb1e26ff74
2014-08-13 10:10:43 +02:00
Julien Nabet 47999a4304 cppcheck: va_list 'args' was opened but not closed by va_end()
Change-Id: Id7602dd19ac142dbe2680ddf7eab308a087e971a
2014-08-07 20:36:26 +02:00
Michael Stahl 677670e467 setup_native, scp2: remove "regpatchactivex" MSI custom-action and lib
This was effectively omitted from the installation set since commit
26c142ca5f, and is apparently related to
the obsolete StarOffice patch mechanism.

Change-Id: I9a4c113e19e5b2b751e3da64b4dde53320132a35
2014-08-02 22:23:50 +02:00