Commit graph

79 commits

Author SHA1 Message Date
pentarctagon
4db3d913e6 Updates cmake and scons to be able to compile with OGL. 2018-09-27 20:00:01 +03:00
Martin Hrubý (hrubymar10)
bc4d22dc72 Migrate links to https if available - Fwd c18537edc0 2018-07-16 19:07:08 +11:00
Pentarctagon
34965741bd Fix FindGLEW being incorrectly named.
It was .make, it should be .cmake.
2018-05-11 11:22:20 -05:00
pentarctagon
5e36a90039 Updates cmake and scons to be able to compile with OGL.
Scons OpenGL/GLEW test taken mostly verbatim from 3e2eba22a9
2018-04-30 17:14:18 +03:00
Steve Cotton
f259976659 Make CMake error-out if required libraries aren't found
It seems that FIND_PACKAGE_HANDLE_STANDARD_ARGS is doing a case-sensitive
search for whether the find_package flags included REQUIRED.
2018-04-27 15:58:03 -05:00
pentarctagon
3343a9451a Remove SDL2_TTF 2018-03-26 17:56:36 +11:00
Victor Sergienko
c2a56b403e Hide minor translations (<80%) from language selection menu. (#2552)
@CelticMinstrel suggests we only use non-campaign textdomains without manpages.
2018-03-13 22:51:36 -04:00
Charles Dang
3a90f86674 Addressed more whitespace issues from #2613
[ci skip]
2018-03-12 03:48:59 +11:00
Charles Dang
471c9e876a Addressed a large chunk of the whitespace issues from #2613
[ci skip]
2018-03-09 11:37:00 +11:00
Celtic Minstrel
c9191c9812 Add OpenSSL's libcrypto as a dependency
This also removes the included SHA1 and MD5 implementations
in favour of those from OpenSSL.

Thanks to @jyrkive for helping to get the CMake build working and
ensuring the game still compiles with OpenSSL 1.1.0.
(The SHA_xxx() aliases were removed in OpenSSL 1.1.0.)
2017-05-12 15:57:13 -04:00
Charles Dang
bba5454443 Made README files Markdown
[ci skip]
2017-04-28 15:07:06 +11:00
Celtic Minstrel
b7aea011f9 Add VNGETTEXT macro to complement the VGETTEXT macro 2017-04-15 23:36:57 -04:00
Celtic Minstrel
6bf76d940b Include header files in pot-updates
It would probably be better to avoid using translatable strings in headers,
but certain people keep doing so anyway, so this is more future-proof.
2017-03-16 17:21:55 -04:00
Celtic Minstrel
dc24fa16f7 Remove option to link libintl instead of Boost.Locale 2016-11-18 12:09:56 -05:00
Ignacio R. Morelle
8b341411d6 cmake: Remove SDL_net-related checks and substitutions 2016-10-03 06:59:48 -03:00
Andreas Löf
c42ba83b82 Fix cmake scripts for use on OSX with homebrew.
It seems that cmake won't pick up on the FindPackageHandleStandardArgs
macro on its on from homebrew so I've updated the script to include it.
2015-08-24 19:05:28 +12:00
Andreas Löf
4c4c469ead Add SDL2 support to the CMake.
To compile with SDL2, run with -DENABLE_SDL2=TRUE. SDL2 is disabled by default.
2015-08-17 03:40:22 +12:00
Ignacio R. Morelle
81f2cdaf41 cmake: Mark history options as advanced
These are internal options only, not the ENABLE_HISTORY toggle.
2015-04-13 05:01:01 -03:00
Ignacio R. Morelle
303e88ae3a cmake: Mark vorbisfile options as advanced 2015-04-13 05:00:10 -03:00
Ignacio R. Morelle
cfbeee2f50 cmake: Add ENABLE_HISTORY option
For enabling history expansion support in the Lua console. Uses GNU
libhistory.
2015-04-13 04:30:57 -03:00
Nils Kneuper
76c6cc1de3 switch to better way finding FriBiDi in cmake
* FriBiDi can be found using pkgconfig, switch to using it instead of
  using our homegrown FindFriBiDi.cmake file for finding it in cmake
* had to set some extra "do not consider these warnings" for font.cpp,
  is this really no issue for scons for strict compilation with -Wall?
2015-04-12 15:12:29 +02:00
Nils Kneuper
df09cda92e format cleanup for FriBiDi finding in cmake
finding does not work for me, but at least the file looks more uniform
now...
2015-04-12 13:56:08 +02:00
Nils Kneuper
05d6e7dd9b remove option to use ancient FriBiDi 2015-04-12 13:23:54 +02:00
Ignacio R. Morelle
bf8185390f cmake: Fix regression in FindFriBiDi, take 2
Applying commit fb01510726 doesn't fix
this for Ivanovic, so I'm reverting both that and the original commit
651344ee1b.
2015-04-10 18:27:06 -03:00
Ignacio R. Morelle
fb01510726 cmake: Fix regression in FindFriBiDi
Fixes CMake being unable to find FriBiDi here on Debian jessie.

Commit 651344ee1b introduced something
that looks more like post-processing syntax used by MacPorts and doesn't
appear in CMake's documentation. Reverting this commit fixes FriBiDi
detection for me, but the original approach of hardcoding search paths
seems unnecessary as far back as CMake 2.6.0, our minimum supported
version. This is because find_library() and find_path() both use CMake's
configured system prefixes automatically and provide a PATH_SUFFIXES
option with suffixes to use for e.g. locating FriBiDi's include dir
(/usr/include/fribidi here).
2015-04-10 02:53:29 -03:00
Ignacio R. Morelle
b270658f50 cmake: Quick-and-dirty fix for the DocBook XSL path on Debian
Without this, rebuilding the game manuals fails because
/usr/share/asciidoc/docbook-xsl/xhtml.xsl doesn't exist. We need to use
/etc/asciidoc/docbook-xsl/xhtml.xsl instead here.
2015-01-16 00:25:39 -03:00
Ignacio R. Morelle
47498d9d3e cmake: Fix pot-update target breakage when bash isn't the default shell
(Default shell as in the /bin/sh executable.)

On Debian and other systems using a different Bourne-compatible shell
that doesn't support some of Bash's syntax extensions (in particular,
'&>' as a redirection operator targeting stdout+stderr), the pot-update
target is completely broken, stuffing the POTFILES.in lists for either
the last (wesnoth-utbs) or first (wesnoth-ai) textdomains with paths for
every C/C++ source file from our tree.

Shells that do not interpret &> the way Bash does consider it to be the
stdout redirection operator following an asynchronous invocation. Of
course such a thing is bound to cause weird issues like this.
2014-12-27 05:46:28 -03:00
Chris Beck
651344ee1b commit a patch to our fribidi cmake, from downstream (macports)
see here:
https://trac.macports.org/browser/trunk/dports/games/wesnoth/files/patch-cmake-FindFriBiDi.cmake.diff

i tested that cmake still works and finds fribidi for me (linux)
2014-10-28 12:52:03 -04:00
Mark de Wever
1e766c2246 Add Vorbis support to the CMake build system.
Applies patch #3920.
2013-05-29 20:27:49 +02:00
Eric S. Raymond
7f85fa000c The git transition.
Most references to and dependencies on Subversion have been removed.
"+svn" is now "+dev". Files that can't be fixed yet have a FIXME-GIT
comment in them; most of these are in the website tests.
2013-03-26 10:44:47 -04:00
Mark de Wever
ef6eb243e1 Recognize newer versions of FriBidi again.
Newer versions don't define a symbol directly confusing cmake, fixed by
letting the compiler test whether it really doesn't exist. The issue was
spotted by Espreon.
2011-03-06 10:09:51 +00:00
Nils Kneuper
45dd183c36 "tiny gui support"-removal part 6:
remove reference in INSTALL files and now useless cmake file
2011-02-12 16:56:19 +00:00
Mark de Wever
ea9ff40e58 Add a cmake target to build the design document. 2011-02-08 19:37:36 +00:00
Mark de Wever
14ad071a40 Polish the pot-update cmake target. 2011-01-16 10:31:31 +00:00
Mark de Wever
4e4f42d60c Remove an unused cmake file. 2011-01-16 10:31:22 +00:00
Mark de Wever
ad31cdaf27 Better cmake detection for older FriBidi versions.
Applied the patch attached to bug #17152. (I don't have the old version
of FriBidi, so haven't tested been able to test it, but still works with
newer versions of FriBidi.)
2011-01-08 20:41:02 +00:00
Mark de Wever
1000f2533c Reimplement the update-po4a-manual.
This version can be build in parallel. Also remove the original po4a
update code.
2011-01-08 11:44:35 +00:00
Mark de Wever
14db2d8b01 Move pot-update dependencies in a separate file.
This allows to move the po4a update tools in the same file and keep the
dependencies better together.
2011-01-02 18:50:00 +00:00
Mark de Wever
afd1a0bfbe Add cmake update-po4a-man(ual) targets.
Still needs more polishing and optimization, but with autotools
support removed want to get something working in first.
2011-01-02 11:05:43 +00:00
Mark de Wever
1b8c26f39f Spaces to tabs. 2010-10-02 09:50:42 +00:00
Mark de Wever
dde1f99f9c Properly updates cmake revision numbers.
Rewrote the code and should properly work with out-of-tree builds and
also no longer causing unneeded recompilations if the version number
didn't change. Fixes bug #16483.
2010-10-02 09:50:39 +00:00
Oron Peled
e35f199086 revised fribidi support:
* Updated to support both fribidi2 (>= 0.19.0) and old fribidi (>= 0.10.9)

 * The cmake part was done by Mark with some fixes add by me.

 * I tested on Fedora-11, Mark tested on Debian stable.
2009-08-01 18:28:18 +00:00
Mark de Wever
4a65d01607 Remove some old cmake translation targets. 2009-06-15 17:46:08 +00:00
Mark de Wever
e80dd12059 Entirely switch to the new mo-update.
Stikonas discovered the old way was still there, also added a proper
install target for the new code.
2009-06-05 17:44:38 +00:00
Mark de Wever
6a1e8c474e Don't scale the energy bar for tiny-gui. 2009-04-28 21:15:21 +00:00
Nils Kneuper
43121142bc make sure that sendfile *only* from sys/sendfile.h is accepted 2009-04-25 12:43:20 +00:00
Nils Kneuper
b1c974d10b port autotools change for BSD to cmake recipe:
Conditionalized sendfile support on the presence of sys/sendfile.h,
since FreeBSD version is slightly different.
2009-04-24 08:41:31 +00:00
Mark de Wever
a77c757235 Add new experimental version of the pot-update. 2009-03-27 20:05:52 +00:00
Nils Kneuper
853ef41723 typo fixes, thanks stikonas 2009-03-24 20:57:20 +00:00
Nils Kneuper
17157daedd port over 2009-03-24T14:18:45Z!crazy-ivanovic@gmx.net from branches/1.6,
...commit message was: add the searching for sendfile/round to the
cmake recipe now a file for the defines is created automatically...
2009-03-24 14:28:52 +00:00