Scott Kostyshak
2c1753a526
CMake: comment out c++20 for now
...
We currently get errors with internal boost and also from LyX code.
2020-10-23 17:13:25 -04:00
Kornel Benko
6869c3adff
Amend 39996524
: Satisfy older cmake versions
2020-10-23 13:25:49 +02:00
Kornel Benko
d954a6b09c
Cmake build: Next try to use of '--std=c++17' for gnu compiler"
...
Setting CMAKE_CXX_STANDARD explicitly, so that cmake can use
correct cxx-flags
2020-10-22 13:46:29 +02:00
Kornel Benko
d3c16d0496
Revert "cmake build: Allow use of '--std=c++17' for gnu compiler"
...
This reverts commit a906676c89
.
2020-10-22 12:04:41 +02:00
Kornel Benko
a906676c89
cmake build: Allow use of '--std=c++17' for gnu compiler
2020-10-21 18:27:23 +02:00
Scott Kostyshak
fe1cbc06c3
CMake deb: support "python2 | python3" dependency
...
The latest debian-based distributions have moved away from
the "python" package dependency to "python2" and "python3".
2020-10-20 13:04:41 -04:00
Scott Kostyshak
334552ade5
CMake deb: update python2 requirement
...
Synchronize with README: >= 2.7.
2020-10-19 15:08:31 -04:00
Yuriy Skalko
e3bf51a4c3
Revert "Enable to build with MinGW-W64"
...
This reverts commit ae5a8de6ea
.
2020-10-16 08:17:12 +03:00
Yuriy Skalko
ae5a8de6ea
Enable to build with MinGW-W64
2020-10-16 08:04:05 +03:00
Kornel Benko
932321a083
Cmake build: Install missed script listerrors
2020-10-03 14:06:24 +02:00
Kornel Benko
aadfb58374
Cmake build: Try to omit using directory names as source-files in po
...
Previously there are po-entries like
#: lib/examples/Articles:0 src/TocBackend.cpp:296
#:src/frontends/qt/GuiExternal.cpp:87
msgid "External Material"
msgstr ""
now:
#: src/TocBackend.cpp:296 src/frontends/qt/GuiExternal.cpp:87
#: lib/examples/Articles:0
msgid "External Material"
msgstr ""
(The string at 'lib/examples/Articles:0' proceeds also from the directory name 'lib/examples/External_Material')
This makes it easier to use some po-editors like 'linguist'
2020-09-07 21:12:22 +02:00
Kornel Benko
838853f99e
Cmake build: Amend a9afdbb7
and 46fca4dc
...
Partly revert installing fonds in system dir, not needed after
a9afdbb7
(Personalize fonts)
2020-09-03 18:27:12 +02:00
Kornel Benko
46fca4dc1d
Cmake build: Install lyx fonts in system dir too on linux
...
1.) Math-editor seems to use system fonts, so install it there.
2.) We use fonts from the support-dir, so install them there too.
This is something automake may take int account too.
2020-08-30 20:30:21 +02:00
Stephan Witt
102e9297d7
Add lilypond wrapper scripts to cmake install
2020-08-30 15:39:05 +02:00
Kornel Benko
0eb2589818
Cmake build: Use the fonts dir which is also expected by GuiFontLoader.cpp
2020-08-27 19:05:52 +02:00
Kornel Benko
41e03d9b2b
Cmake build: Install lyx.svg under images for all platforms
2020-08-26 14:33:42 +02:00
Stephan Witt
7d66e37eb2
Adjust the name of the cmake module lookup script for MYTHESLIB to match the casing of the variable name
2020-08-04 11:49:03 +02:00
Kornel Benko
26fa3b3d9d
Cmake build: Move interpretation of configure.ac to own function
...
Created function determineversionandbuildtype() in development/cmake/modules/LyXMacros.cmake
2020-07-12 16:27:45 +02:00
Kornel Benko
40e071c7cb
Cmake build: Improve checks for stdlib-debug
2020-07-11 12:43:17 +02:00
Kornel Benko
76db479c07
Cmake build: Change the destination of fonts
...
Select the lyx-fonts-directory such that font-config can find the dat
2020-06-11 19:06:21 +02:00
Kornel Benko
392aaa11ac
Cmake build: Add trailing '.'
...
Cpack in the cmake 3.18-version creates invalid control file
containg empty line. 'dpkg' chokes on this control file.
2020-06-10 17:11:36 +02:00
Kornel Benko
ed665a0333
Amend 2d48072e
: Get rid of Qt resources
...
Remove the cmake handling too
2020-06-07 12:07:58 +02:00
Juergen Spitzmueller
33e74e5117
Having two folders just differing in case is not such a good idea.
...
See #11882
2020-06-06 13:56:46 +02:00
Kornel Benko
b71fb0d0f6
Cmake installs: Clean up some installs
2020-06-05 13:00:00 +02:00
Kornel Benko
c7dbc201df
Amend 9c863039
: Cmake build: Adapt handling of c++ standards to new Visual C++ 2019
...
Apparently the use of "/std:c++20" is too new for our sources.
2020-06-04 18:01:49 +02:00
Kornel Benko
8b81adbbec
Cmake build: Add some missing language-specific files for installation
...
Preparing for possible addition af language file like zh_CN or pt_BR
in the examples directory
2020-06-03 21:44:42 +02:00
Kornel Benko
fc39c3b48b
Cmake build: Prohibit use of external boost if using libstdc++ in debug mode
...
We are using the compiler falgs _GLIBCXX_DEBUG and _GLIBCXX_DEBUG_PEDANTIC
See https://opensource.apple.com/source/gcc/gcc-1640/libstdc++-v3/docs/html/debug.html
2020-05-27 11:35:48 +02:00
Kornel Benko
9c863039b6
Cmake build: Adapt handling of c++ standards to new Visual C++ 2019
...
More or less suggested by Thibaut Cuvelier's switch to Visual C++ 2019
2020-05-05 13:49:50 +02:00
Kornel Benko
3f89dd0b48
Cmake build: Distinguish between PROGRAM_SUFFIX and LYX_VERSION
...
For instance: program suffix may be "", but lyx version is still "2.4"
2020-04-19 09:45:32 +02:00
Kornel Benko
0135682fca
Amend(1) 689f26d2
: Add default path to server pipe (cmake build)
...
Added handling for cygwin and win32
MacOSX is unchanged, Stephan could you look at it?
2020-04-18 09:06:56 +02:00
Kornel Benko
af029d695f
Cmake build: All directory variables should contain trailing '/'
2020-04-14 13:01:17 +02:00
Scott Kostyshak
9715d3504c
cat.py: fix Python deprecation warning
...
This commit fixes the following warning:
DeprecationWarning: 'U' mode is deprecated
Removing 'U' has no effect with Python 3 [1]:
There is an additional mode character permitted, 'U', which no
longer has any effect, and is considered deprecated. It previously
enabled universal newlines in text mode, which became the default
behaviour in Python 3.0.
[1] https://docs.python.org/3/library/functions.html?highlight=open#open
2020-03-20 10:22:47 -04:00
Scott Kostyshak
f1694db496
CMake build: find enchant 2.x binary and lib
...
For example, see the Fedora file lists for the package
enchant2-devel [1] as well as the Debian Sid file lists for the
packages libenchant-2-dev [2] and enchant-2 [3]. The packages for
Ubuntu 20.04 are similar. Our autotools build has had support for
finding enchant 2.x since 71977769
.
Searching for enchant-2 first is consistent with what we do for
autotools (see 1ae537c5
).
This commit is related to #10986 .
[1] https://www.lyx.org/trac/ticket/10986#comment:28
[2] https://packages.debian.org/sid/amd64/libenchant-2-dev/filelist
[3] https://packages.debian.org/sid/amd64/enchant-2/filelist
2020-03-13 10:07:05 -04:00
Kornel Benko
7f0efc5165
Cmake build: Add evince_sync-files to be installed under the scripts dir
2020-03-01 16:48:14 +01:00
Kornel Benko
43dfd12fd7
Cmake build: Files already removed, but in 'git status' still present.
...
This is a try to really remove them.
2020-02-15 10:11:28 +01:00
Kornel Benko
9fdc00fe2a
Cmake build: Remove cmake warnings about mismatched values of FindPackageHandleStandardArgs()
2020-01-27 10:44:14 +01:00
Kornel Benko
43b81becc6
Cmake config: Rename some variables to match the ones used by automake
...
LYX_RELEASE_VERSION renamed to LYX_RELEASE_VERSION
and got the new value of
LYX_RELEASE_PATCH
from configure.ac too
2020-01-17 14:25:57 +01:00
Kornel Benko
9d0548e877
Cmake build: Try to find hunspell.hxx for linunx _and_ for OSX
2019-12-04 20:23:27 +01:00
Kornel Benko
201acf0279
Cmake build: Correct configuration if set LYX_BUNDLE=ON
...
Patch by Patrick (pdvisschere@edpnet.be )
Citing:
With some changes I could get it to work (patch included). One will also
have to define the locations of the Qt5-plugins and Qt5-libs folders
(`QT5_PLUGINS_DIR` and `QT5_LIBRARY_DIRS`).
Maybe not all plugins/imageformats are used/needed by lyx, but they are
all copied now, except for `_debug` versions which are excluded.
Starting with Qt-5.12 it seems not possible anymore (or at least not
easy) to link to the `_debug` versions of the qt5-frameworks (with
cmake). And installing them into the bundle also does not work. So right
now this is not a big loss.
2019-11-30 11:19:10 +01:00
Kornel Benko
350a9daf56
Cmake build: Add LINK_LIBRARIES to check for HUNSPELL CXX ABI. Needed by XCode
...
The trick with faking the link command does not work with XCode
see: https://cmake.org/pipermail/cmake/2010-May/037132.html
Spotted by Patrick (pdvisschere@edpnet.be )
2019-11-29 13:49:02 +01:00
Kornel Benko
9de4b9ab34
Cmake build: Remove unneeded hunspell path from configure test
...
Spotted by Patrick (pdvisschere@edpnet.be )
2019-11-28 14:31:26 +01:00
Kornel Benko
58ed976dd3
Cmake build: Install executables as programms
...
Patch from Patrick (pdvisschere@edpnet.be )
2019-11-27 15:05:44 +01:00
Uwe Stöhr
d995ea684f
build5-2017.bat: add new script to compile using MSVC 2017
2019-10-20 23:11:17 +02:00
Kornel Benko
0362ec022b
Cmake build: Correct display cmake options
...
The change allows to display options whose string-length
is less than 10 characters.
The previous setting truncated the string to 4 chars,
which is too few for a string like e.g. "NATIVE".
2019-07-14 11:12:55 +02:00
Kornel Benko
cbcf57ec13
Amend f4254e69
: Use correct sequence in set-command
2019-06-24 12:56:51 +02:00
Kornel Benko
f4254e6999
Cmake windows build: Fix a cache variable
...
Thanks to Jürgen Womser-Schütz
2019-06-24 10:36:37 +02:00
Kornel Benko
c5fa5232bb
Cmake build: Removed some cmake warnings
2019-03-26 10:03:18 +01:00
Kornel Benko
4da338e550
CMake build: Rename HAVE_LONG_LONG to HAVE_LONG_LONG_INT
2019-03-21 16:12:02 +01:00
Kornel Benko
afccaae48a
Amend 601244ba92
: Use HAVE_LONG_LONG_INT instead of LYX_USE_LONG_LONG
...
Cmake changes
2019-03-21 15:17:24 +01:00
Kornel Benko
a410b0d698
Cmake build: Amend(2) d3ec77c6
: Reorganize templates and example folders
...
Install files from these new directories
2019-03-19 14:36:14 +01:00