Commit Graph

114 Commits

Author SHA1 Message Date
James Sherratt c46d1260f5 Tidy up 2022-08-24 23:26:25 +01:00
Jammyjamjamman cbb4b261a8 Fix for windows + older linux distros 2022-08-24 23:26:24 +01:00
Jammyjamjamman db8d2dd355 Fix cmake-clang for macos
* Also fix for ubuntu 18, by decreasing required cmake version.
2022-08-24 23:26:24 +01:00
Jammyjamjamman b405ce86ca Get map editor and model viewer building with VS cmake builds
* Map editor and model viewer build, but only as "Release" build.
* Unwanted flags not set for msbuild, such as FPIC, -g3, -O3, -sse...
* Wanted flags set for msbuild e.g. /arch:SSE2 /fp:fast -D__SSE__
-D__SSE2__
* Allow including wx, used for vcpkg wx.
* Mapeditor is WIN32 exe for VS_BUILD. (Not sure why this is needed...)
* g3d viewer and map editor mains edited to remove unnecessary windows-
only code(, for strings).
2022-08-24 23:26:24 +01:00
Jammyjamjamman 523229ab55 More progress with cmake for Visual Studio projects
* Change conditon so that L137 onwards of main CMakelists.txt is
executed fro VS project target. Main reason to do this was to make sure
project actually built with streflop.
* Change conditions after L137 so unwanted compile flags aren't added.
* Project now builds multi threaded for VS project. Tries to use max
number of cores.
* Simplify cxx flags. Remove unneeded MT and MTd flags.
* Set VS build output to mk/windoze.
* Add FPUSettings.asm to streflop in cmake, if VS project specified.
* Remove STREFLOP compile definitions. Not needed now streflop is
configured properly.
* Simplify cmake by adding "VS_BUILD" variable, instead of doing string
comparisons all the time to check if is "Visual Studio" target.
2022-08-24 23:26:24 +01:00
Jammyjamjamman 1e8ff3642c Cmake: Add build configuration for VS builds
* Build vs 2019 project using cmake.
* Cmake configured to work in windows. Hopefully still works in linux
too!
* Update vcpkg install script.
* Configures build for MG game release or debug mode.
* Still need to fix building mapeditor and g3d viewer.
* Remove CurlGetConfig.cmake (not needed!)
2022-08-24 23:26:24 +01:00
NetSysFire 873217577a
Replace some http links with https (#211)
* Replace working http links with https

* downloads also has working https

* forum also has working https

* Fix get_started link

* fix get_started link

Co-authored-by: James Sherratt <jdsherratt3@gmail.com>
2022-07-20 22:59:09 +01:00
SoftCoder 4bdb45e96e - Add support for PopOs and disable VLC support by default in CMake build 2020-08-19 19:14:23 -07:00
SoftCoder 59be04ab6a - attempt to correct tomreyns cmake linker issue 2017-10-07 08:59:27 -07:00
SoftCoder 58b03d2cb0 - fix cmake build script re-add cmake min version 2017-09-22 23:36:31 -07:00
SoftCoder 5d0f5013fd - allow using new cmake var for finding glest.ini called MG_CMAKE_INSTALL_PREFIX to solve issue #167 2017-09-22 23:21:40 -07:00
filux ef1c26d931 improved formatting of '--help' output in a way to be more friendly for help2man 2017-04-01 14:53:34 +02:00
SoftCoder bdfb05a700 - attempt to add support for static use of wxwidgets in tools 2017-03-20 17:06:12 -07:00
filux 753fc6bc55 stick to 7 characters even for modern 'git' version 2017-02-18 13:13:00 +01:00
filux 661b512a8a since latest release macos is not 'X' anymore 2016-11-18 02:07:44 +01:00
filux 32d7085816 cmake patches from mageia [ci skip] 2016-03-05 13:57:08 +01:00
filux 4b3001843b minsizerel should have default optimization level to keep in sync name with its function [ci skip] 2016-01-10 18:27:43 +01:00
filux 0cad944118 implemented appdata 2/2 2015-12-14 23:57:05 +01:00
filux fcbf254a05 linux's installer based on binary and data files (no parallel configuration anymore) 2015-11-20 20:09:39 +01:00
filux 8a4ee15e59 Merge branch 'develop' into feature/sdl2 2015-11-05 20:45:53 +01:00
SoftCoder 952e0a6315 - editor and g3d viewer work in wxwidgets 3.0.2 2015-10-26 19:49:25 -07:00
filux 02fe61ef97 fix for too early included new cmake policy 2015-10-07 21:12:04 +02:00
filux 4bef525bf3 removed not required CURL module, renamed several cmake-build options for be more easy sortable by name 2015-09-27 19:46:35 +02:00
filux 4ad684deaf updated modules: LUA, GLEW 2015-09-22 01:04:22 +02:00
filux c84e7f5443 probably fixed situation for GCC older than 4.7 2015-09-18 20:10:02 +02:00
filux 6ac255095a implemented basic support for SDL2 in cmake files (only); changed a general idea of how and where are showed deprecation warnings 2015-09-18 19:17:52 +02:00
filux 976fb4a20e Merge pull request #52 from filux/fpic-related-errors
merge after information that it's also required for Ubuntu 15.04+
2015-04-29 20:32:15 +02:00
filux 966da32472 better support for macos, this also closes #36 2015-02-24 09:45:17 +01:00
filux 9bb9a0d8dd cure for errors like 'relocation R_X86_64_32 against '...' can not be used when making a shared object; recompile with -fPIC' 2015-01-31 12:01:41 +01:00
filux 9977fd2606 fixed 'Not a git repository' bug related with real out of source build from the git repository 2015-01-31 10:30:19 +01:00
filux 652f482240 fixed #48, fixed #49
Source tarball: "fatal: Not a git repository" at each compilation step; CMake gets the version wrong in 3.11.0.
2015-01-25 09:01:23 +01:00
Karl Goetz c4b6fbba26 Change coment on Apple test
This is just a niceity ; the comment no longer accurately captured what the
code was doing.
2014-12-23 07:18:17 +11:00
Karl Goetz f95dbab580 Split up CPack generator configuration
I've taken the liberty of splitting up the CPACK_GENERATOR test so shared
configuration and win32 configuration are outside that test. The existing
grouping forced duplication of variables in the mac config file and required
the cpack generator to be unset, then set to deb, then set to nsis on win32.

These changes should help make things much more understandable.
2014-12-23 07:17:57 +11:00
Mark Vejvoda b7571e5bf9 Merge pull request #41 from goetzk/remove-duplicate-custom-data-install-path-definition
Remove duplicate DCUSTOM_DATA_INSTALL_PATH
2014-12-17 06:47:48 -08:00
Karl Goetz 953c055ced Remove duplicate DCUSTOM_DATA_INSTALL_PATH
Within 5 lines CUSTOM_DATA_INSTALL_PATH is defined twice resulting in lots of
compiler warnings; eg

[ 11%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_atanf.cpp.o
In file included from <built-in>:175:
<command line>:7:9: warning: 'CUSTOM_DATA_INSTALL_PATH' macro redefined
        ^
<command line>:2:9: note: previous definition is here
        ^

This removes the second definition.

Conflicts:
	CMakeLists.txt
2014-12-17 21:11:32 +11:00
Karl Goetz 0ce6fd3c5d Change library search path on MacOS
When using mac ports GL/gl.h ends up outside the cmake search paths for
libraries and includes. By adding them to mk/macos/CMakeLists.txt they are now
available and make it possible to build g3d_viewer along with the rest of
megaglest. To make this work properly I had to move the inclusion of
mk/macos/CMakeLists.txt further up the master CMakeLists.txt so merged both IF
APPLE tests in to one.

This has built successfully through xcode and gnumake.
2014-12-17 20:21:22 +11:00
Mark Vejvoda a72c882461 Merge pull request #38 from goetzk/change-linker-invocation-through-xcode
Don't strip binaries when building through Xcode
2014-12-15 14:10:56 -08:00
Karl Goetz 56a5cc6f98 Don't strip binaries when building through Xcode
Without this change building the Release version results in an error (which
claims to be a warning) due to using -s which is obsolete.
This removes -s when building through xcode - gnumake and other platforms are
(presumably) unaffected.
2014-12-15 20:36:27 +11:00
Karl Goetz d6f61233ce Change test for GIT_VERSION_CMD an xcode check
Following the work I did on GH ' Remove special casing on GIT_VERSION_CMD #33 '
I've done more experiements and test rebuilds. I've found that the test should
actually be to find out if we are working with Xcode specifically as using the
gnu build chain is working correctly with the code in the 'else' clause - the
codepath i tested before doing my original changes - but doesn't work using the
special 'apple' version.

This change should mean both methods of building work correctly.
2014-12-15 20:35:18 +11:00
Karl Goetz 00f116eeee Only use DEB generator if CPACK_GENERATOR is unset
When trying to build a dmg package on an apple system the values set in
mk/macos/CMakeLists.txt are masked by those coded in the main CMakeLists file.
This change means the values are only set if they haven't been already (eg by
using the apple CMakeLists).

I feel it would probably be better to move this lot ot mk/linux/CMakeLists and
then conditionally import the correct file - I'm happy to redo the change that
way if there is agreement on that.
2014-12-15 13:04:05 +11:00
Mark Vejvoda 3ecc553ba9 Merge pull request #33 from goetzk/git-version-cmd-fix
Remove special casing on GIT_VERSION_CMD
2014-12-06 21:15:23 -08:00
Karl Goetz 4919307d8f Reintroduce ELSE clause
Had a chat with softcoder who explained what was going on. We should now be
almost identical to the original but the compiler specific test has been
removed.
2014-12-07 16:06:13 +11:00
Karl Goetz 35347ed36b Re-add IF check around GIT_VERSION_CMD
Previous removal included a APPLE check which I'm told needs to remain.
2014-12-07 15:43:04 +11:00
Karl Goetz e920cba84b Remove special casing on GIT_VERSION_CMD
This special casing has been causing cmake -GXcode to fail.
2014-12-07 14:27:32 +11:00
Karl Goetz 81c94a5772 Remove special CUSTOM_DATA_INSTALL_PATH for OSX
The special codepath for CUSTOM_DATA_INSTALL_PATH on OSX means the path is
generated multiple backslashes which cause problems later on in the compile.
Having the same codepath as everything else appears to resolve this problem.
2014-12-07 14:25:23 +11:00
Christoph Korn 4ea86ae90f Pass the custom data install path to the compiler
The CUSTOM_DATA_INSTALL_PATH constant is checked at different
places in the code but was not actually passed to the compiler.
This resulted in searching the data files in /usr/games instead
of /usr/share/games/megaglest (in Ubuntu and Debian).

This commit also fixes setting the variable. It is still wrong
for Apple I think. But I can not test it.
2014-04-22 22:44:23 +02:00
Paul Wise c190c2eabb Also support -DCMAKE_BUILD_TYPE=None which is used by Debian
Fixes: https://bugs.debian.org/739068
2014-03-27 10:35:22 +08:00
SoftCoder b1cafabb01 - added cmake compile warning when users uses clang as clang currently does NOT support some critical GCC settings we require. 2014-02-06 19:14:14 -08:00
SoftCoder 6542ae5110 - re-enabled streflop as it is keeping us stable 2014-01-31 18:05:49 -08:00
SoftCoder 8c2e2581f3 - turn off streflop in linux and test to see how it goes 2014-01-25 19:07:25 -08:00