Mark de Wever
3db07df42f
Disable a new GCC-4.8 warning.
...
If triggers in an external C header (png.h).
2012-07-03 19:16:33 +00:00
Mark de Wever
7dec0c6904
Enables strict compilation for Clang in CMake.
...
The Clang compiler now also defaults to strict compilation when building
with CMake. Also the default flags have changed to the ones used for GCC.
This has only be tested with Clang 3.1.
2012-06-30 19:36:12 +00:00
Mark de Wever
909eb9bd42
Add a cmake macro to test for compiler flags.
...
This method is more expandable, when adding more tests.
2012-06-30 11:30:32 +00:00
Mark de Wever
ca6b656d25
Fixes strict compilation with gcc-4.8 and CMake.
...
In gcc-4.8 there will be a new warning -Wunused-local-typedefs. This
warning is triggered by boost's static asserts, causing strict
compilation to fail when using this compiler.
Note the compiler is not officially released yet so used a recent
snapshot.
2012-06-09 21:41:05 +00:00
Mark de Wever
f42e941975
Adds the ENABLE_SHARED_LIBRARIES CMake option.
...
The use of shared libraries makes compilation debug versions faster but
results in extra shared libraries. For installation this is not
practical since the libraries need to be given SONAMES and kept in sync.
Therefore installation is not supported for this option and will
probably fail.
The statistics for the change are:
Static build:
- Normal:
real 20m51.604s
user 19m47.838s
sys 1m5.100s
size 94MB
- Debug:
real 24m48.577s
user 23m3.114s
sys 1m22.305s
size 1.9GB
Shared build:
- Normal:
real 21m5.141s
user 19m56.879s
sys 1m7.692s
size 29MB
- Debug:
real 24m24.239s
user 22m55.278s
sys 1m20.193s
size 596MB
So the build times don't change that much but the sizes do. When
rebuilding after changing a file the build times start to improve for
the shared build, but not timing done.
2012-06-08 18:58:10 +00:00
Jérémy Rosen
9ec70dabc5
patch #3092 : Allow to specify default system-wide preferences by lipk
2012-03-05 22:36:26 +00:00
Ignacio R. Morelle
20bcf49f3e
Remove custom pool memory allocator per wesnoth-dev mailing list discussion
...
This affects the cmake and scons scripts, and various project files in
projectfiles/. I have only tested my changes to scons (and loonycyborg
might still want to review the diff regarding a line in src/SConscript
involving game.cpp).
2012-02-19 18:43:20 +00:00
Mark de Wever
b79a56c69a
Changed: Default man installation directory.
...
The new directory confirms to FHS (based on patch #3138 ).
2012-02-18 13:00:27 +00:00
Mark de Wever
76a112eaa8
Add -Wno-strict-aliasing to compiler flags.
...
This reverts 2011-07-24T15:10:34Z!crazy-ivanovic@gmx.net,
since it breaks building the unit tests with g++ 4.4.
2011-08-15 05:26:14 +00:00
Mark de Wever
9e7c002c76
Updated files to bumped Boost requirements.
...
Updated INSTALL and cmake files. Omitted scons since some parts refer to
versions others don't and the version mentioned differs as well.
2011-08-11 19:37:19 +00:00
Nils Kneuper
c2268b1e9d
since 2011-07-24T12:27:21Z!loonycyborg@gmail.com strict-aliasing should be possible again...
...
...for the old network code, too, so remove this (now no longer
required) flag by default
2011-07-24 15:10:34 +00:00
Nils Kneuper
14bbbf79c9
disable compilation of ANA by default when using cmake...
...
...(since there seem to be too many problems with it and eg the
official server does not use it anymore either)
2011-07-24 10:49:57 +00:00
Mark de Wever
75be32120b
Make boost system mandatory for CMake.
...
This due to the work loonycyborg does on boost asio. Anonymissimus
please test whether it suffices on Windows.
2011-06-19 12:05:19 +00:00
Anonymissimus
23eb9861be
exclude LUA_USE_POSIX define from MSVC project file generator
2011-06-13 23:32:16 +00:00
Mark de Wever
ff2f64c59f
Use a better way for mkstemp.
2011-06-13 17:24:14 +00:00
Mark de Wever
5f7ad19888
Let Lua use mkstemp' instead of
tmpnam'.
...
It also fixes a linker warning.
2011-06-13 15:58:19 +00:00
Anonymissimus
e25b0ce62d
mute more MSVC warnings in the MSVC+cmake build system...
...
...by adding defines
-D_SCL_SECURE_NO_WARNINGS and
-D_CRT_SECURE_NO_WARNINGS
2011-06-02 19:56:51 +00:00
Lukasz Dobrogowski
91435494d8
Created new command_options object,
...
...which will be responsible for commandline parsing. Introduces
Boost.Program_options dependency.
2011-05-29 17:31:07 +00:00
Mark de Wever
6e49fbb15d
Add some support for the clang compiler.
...
It fails to link some standard libraries.
Forcing files to be C++ files doesn't set the proper compiler switches
for clang.
Tested with clang 2.9, there are still compilation errors to be sorted
out.
2011-04-25 07:19:25 +00:00
Mark de Wever
e398b69bf8
Fix a compilation error with cmake.
...
When the game is disabled from the command line the unit tests no
longer compiled. When using cmake normally the game is automatically
enabled and disabling it afterwards doesn't introduce the bug.
2011-04-25 07:19:22 +00:00
Nils Kneuper
fde02c868c
revert 2011-04-03T08:21:47Z!crazy-ivanovic@gmx.net to fix bug #17988 introduced by this very commit...
2011-04-03 09:43:12 +00:00
Nils Kneuper
5613b9fc8c
zaroth reported that there is a problem in the embedded lua code...
...
...that automatically results in a warning (and thus error) due to
this flag, so remove it.
2011-04-03 08:21:47 +00:00
Mark de Wever
a2c7ca056e
Add OpenMP support to cmake.
2011-03-05 21:17:36 +00:00
Mark de Wever
ff422edc9c
Remove the editor option.
...
This changes causes the editor to be always build. It also sorts the
file entries in the build systems.
loonycyborg please review the scons changes.
2011-02-19 12:25:05 +00:00
Mark de Wever
1f91733b39
Let cmake use absolute locale dirs.
...
This patch doesn't change the behaviour on Windows.
(Applies patch #2280 ).
2011-02-17 20:57:45 +00:00
Nils Kneuper
7ba9fa4e8a
"tiny gui support"-removal part 2:
...
remove tinygui specific stuff from CMake
TODO: remove tinygui from scons and data files
2011-02-12 16:24:56 +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
7c3380c556
Link to libintl with cmake.
...
Applied the patch attached to bug #17152 .
2011-01-08 20:40:56 +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
3dc8cb92e8
Set the compiler mode to c++98.
...
It was ansi, which will change to c++0x at some point in the future. In
order to activate that as default by accident force the c++98 mode.
2010-08-27 20:34:58 +00:00
Mark de Wever
72bbd5e443
Update status
2010-07-31 07:11:24 +00:00
Mark de Wever
a1db53630e
Convert leading spaces to tabs.
2010-07-30 21:49:42 +00:00
Mark de Wever
6a082b676d
Some more consitency in the cmake files.
2010-07-30 21:49:36 +00:00
Nils Kneuper
9a19432e86
add lua support to the cmake recipe
...
@crab_, mordante, timotei, ...: please check that it really works as
expected (eg msvc builds!), looks good over here with plain
commandline builds
2010-07-30 13:22:34 +00:00
Guillermo Biset
dfd0f9a169
Switched back ana's compilation flag to ON in CMake.
2010-07-22 18:14:26 +00:00
Mark de Wever
1ea406c40c
ANA cmake cleanups.
...
- Set the option and dependency check in the top level file.
- Directly add the ana/src directoy avoiding two new options being pulled
in.
2010-07-11 16:50:51 +00:00
Mark de Wever
a43df5ac05
Set the proper flags for the cmake RELEASE build.
...
Gabba discovered the problem and added a fix in 2010-07-02T06:58:13Z!gabrielmorin@gmail.com. This
change has a better suppression by turning unused variables to
warnings instead of error.
2010-07-11 16:50:40 +00:00
Guillaume Melquiond
e6ab1f0c1a
Removed explicit disabling of compiler warning,
...
...as the current codebase compiles fine with it.
2010-05-26 20:19:07 +00:00
Mark de Wever
4cc313daf2
Fix compilation for g++ 4.5
2010-04-25 09:43:12 +00:00
Fabian Müller
4a7e27d070
Reverted back to 42095.
2010-04-10 17:30:45 +00:00
Alexander van Gessel
183c40ba5b
Merge fendrin_editor branch
2010-04-10 16:00:09 +01:00
Iurii Chernyi
8947448c0b
trick CMake into generating MSVC9 project files
2010-03-30 21:24:20 +00:00
Nils Kneuper
2bcb81afbc
change from mordante to make notifications work...
...
...in the cmake recipe as fribidi does:
if notifications are active (they by default now) check if required
stuff is available, warn if things are not there and don't compile
support it, compile things in if everything is there
2010-03-03 23:08:31 +00:00
Nils Kneuper
f99f2dee25
enable notifications by default in the cmake recipe, too
2010-03-03 10:21:55 +00:00
Jérémy Rosen
53105be56f
remove EXPERIMENTAL blocks in source
2010-02-22 20:08:38 +00:00
Mark de Wever
9c9c33fd8b
Make ENABLE_EXPERIMENTAL a config parameter.
2010-01-31 15:15:21 +00:00
Fabian Müller
7713168c57
Added a switch for the EXPERIMENTAL compile flag.
2010-01-26 10:24:34 +00:00
Mark de Wever
9089b486e7
Remove dummy locales for cmake.
2009-10-14 22:19:09 +00:00
Chusslove Illich
18dd3c5871
Localized image states are now checked at runtime,
...
...so that fuzzy localized images are not used if present.
This requires installing the l10n-track file as well.
2009-10-03 16:18:21 +00:00
Mark de Wever
243ee4ff51
Enable notifications with cmake.
2009-08-10 17:50:37 +00:00