Commit Graph

82 Commits (epoxy)

Author SHA1 Message Date
Günther Brammer d4634526fd GL: Switch from GLEW to Epoxy
Epoxy automatically fetches the extension functions on demand, including
the GLX context creation functions. This means that you can't test the
function pointers for NULL anymore, because they're always set to a
resolver function until the first call. Instead, you have to check for the
availability of an extension by the extension's name. Thanks to Isilkor for
catching these.

On windows, epoxy invalidates all extension function pointers when the
GL context changes. This means we need to have an active context at all
times we call an extension function (like wglGetPixelFormatAttribivARB)
or else the code will jump to an invalid pointer. On the other hand, we do
not need to make it reinitialize the pointers ourselves.

Epoxy automatically uses an alias for a function if the requested name is
not available, like glDebugMessageCallbackARB instead of
glDebugMessageCallback. It also does not have the problem with varying
parameter types for that function. So switch to it while removing
GLDEBUGPROCARB_USERPARAM_IS_CONST.
2016-02-06 16:50:47 +01:00
Tobias Zwick a7943714c8 update ala's music license (in the installer) 2016-01-24 00:25:33 +01:00
Nicolas Hake 0ef4e71363 MSVC 2015: Add natvis file to solution
This employs a rather ugly hack to make CMake do what we want. CMake
doesn't allow us to add items directly to the solution (as opposed to
one of the projects inside it), and thus requires us to abuse its lack
of parameter validation to manually add the file.
2015-12-29 13:58:15 +01:00
Maikel de Vries 41e1f28e82 added a tool to list unused sounds
It is only a first attempt but already helpful, see (#1501) for more information.
2015-12-16 17:57:28 +01:00
Sven Eberhardt a687f35a7b Installer: Remove old Tutorial.ocf folder on installation. 2015-09-13 09:34:46 -04:00
Tobias Zwick 9480ebc60c path to David's music pack 2015-08-31 23:30:28 +02:00
Sven Eberhardt c588fe79c9 Unpack Music.ocg in Windows installer.
Currently, all music pieces are kept in memory to avoid random group access, which is a bit excessive for the larger music pack. This change will allow runtime music loads without too much delay.
2015-08-30 15:12:34 -04:00
Sven Eberhardt 49a3dd56cd Add optional music pack download to windows installer.
The download is expected to be at: http://download.openclonk.org/OpenClonkOST.ocg

And overwrites the previous Music.ocg.
2015-08-30 14:32:44 -04:00
Peter Wortmann 48ae42f87e Hard-code line endings of shell scripts to LF
No idea whether this is the right way to do this.
2015-02-23 11:54:37 +01:00
Günther Brammer a92c22a7b3 Merge various build system fixes and cleanups 2015-01-25 18:50:29 +01:00
Nicolas Hake 2e1bdd742f OSX: Bundle libraries even when not compiling with XCode
We have half-arsed support for building Darwin executables with Unix
tools instead of XCode. Make it slightly more whole-arsed.
2015-01-24 23:28:33 +01:00
Nicolas Hake d44d7ba33e OSX: Use /bin/bash to pack game data
Since the script is using bashisms, a posixly correct /bin/sh isn't
sufficient. Explicitly use /bin/bash instead.
2015-01-23 19:22:04 +01:00
Günther Brammer d9e3d9db3d Require filenames to be in unicode, remove iconv usage
Every modern operating system and Clonk uses UTF-8, and windows uses UTF-16
and has its own conversion code.
2015-01-03 20:41:03 +01:00
Günther Brammer 3bb75fabf1 Remove unused language strings from Language*.txt 2015-01-01 22:13:56 +01:00
Tobias Zwick aafecd1836 add Settlement.ocf to the list of obsolete folders to be deleted on install 2014-10-03 17:50:26 +02:00
Martin Plicht 3d8dee0fce mac: Copy alut lib into application bundle as well 2014-09-21 22:37:27 +02:00
Günther Brammer 3e7d0ba1ff win32: Fix installer generation from MSVC
f897e95071 broke this by reusing the macro with the path to the binary
as the binary name, which doesn't work if the path contains directories.
Also, 0dcfe72148 moved the binaries, but the LOCATION property still
pointed to the old location. Luckily, CMake also has a non-broken option to
pass target file paths to custom commands.
2014-05-12 02:24:19 +02:00
Tobias Zwick 269b609edf installer should delete Issues.ocf, Experimental.ocf etc on install (part of solution to #1029)
(cherry picked from commit ba2d71c942)
2014-02-02 23:53:57 +07:00
Martin Plicht f1cc91055a cmake: mac: make install installs bundle 2014-01-29 14:12:22 +01:00
Martin Plicht c26ac97729 cmake: Insert hacks and hardcoded paths to make mac version compilable using Unix make 2014-01-27 14:22:22 +01:00
Günther Brammer dd07b1996b win32: Installer always creates Start Menu entries
Apparently, the Games Explorer is a failed experiment. Players don't expect
a game to only appear there, lots of games do not bother with it, and
future windows versions don't include it.

Conflicts:
	tools/install/oc.nsi
2013-05-18 00:21:46 +02:00
Nicolas Hake f897e95071 Rename game binary to "openclonk" (#830)
Since the name of the game is OpenClonk, having the binary named
differently is at least confusing. At worst it conflicts with the
trademark license granted by RedWolf Design.

The Mac build will still have to be fixed because the installer
template .dmg file is not editable on non-Macintosh systems.
2013-01-28 13:57:29 +01:00
David Dormagen 990b8efc90 tools: added python script to extract functions from the docs for the C4Highlight MediaWiki plugin 2013-01-25 00:19:39 +01:00
Tobias Zwick 61c595b439 +comment 2012-10-14 12:48:37 +02:00
Tobias Zwick bbf496d6f0 delete old folders in installation script 2012-10-14 12:48:13 +02:00
Tobias Zwick f296f31c62 add script that automatically removes unused strings from LanguageXX.txt in the System.ocg and executed it once 2012-10-07 15:27:30 +02:00
Nicolas Hake 7bb6560dc8 CMake: Delete get_hg_revision helper scripts
These scripts are no longer in use; their work was incorporated into the main
CMakeLists.txt file.
2012-08-27 19:25:24 +02:00
Martin Plicht 4d504956c5 mac: osx_bundle_libs bundles recursive dependencies so libogg/libvorbis conundrum solved 2012-03-25 15:30:01 +02:00
Günther Brammer 3c4e4ec1fd win32: Installer uses English in non-German locales
Good thing that one can test this with Wine by changing the LANG environment
variable.
2012-02-14 22:48:11 +01:00
Günther Brammer 4fb3007690 win32: Fix out-of-tree setup build 2012-02-05 21:43:55 +01:00
Günther Brammer b980007c25 win32: Add a firewall exception on installation 2011-10-30 16:17:40 +01:00
Günther Brammer d8218120fc win32: Every install location gets it's own uninstall entry 2011-11-01 20:46:48 +01:00
Günther Brammer 6394f209a5 win32: Installer uses a per-installation game explorer guid 2011-11-01 20:37:58 +01:00
Günther Brammer fea377f196 win32: Fill in Games Explorer XML data from Version.txt 2011-10-31 01:31:56 +01:00
Günther Brammer d995490137 win32: register with the Game Explorer 2011-10-30 16:16:14 +01:00
Armin Burgmeier 6fd98efabd Add a copy of MultiUser.nsh patched for installation of 64 bit binaries 2012-02-02 22:24:35 +01:00
Günther Brammer 29ff51b16d Remove the remaining remnants of OpenSSL usage
OpenSSL sure has many names - libssl, libcrypto, libeay32, possibly more.
2011-11-03 00:37:07 +01:00
Peter Wortmann 39b5125628 Mac: More changes to bundling
Added libvorbisfile and libogg as well

Removed zlib, libpng, libiconv and libcrypto. Those seem to exist on current Mac Os system.
2011-10-10 14:07:22 +01:00
Martin Plicht c4595f1109 Mac: Also bundle libvorbis 2011-10-10 02:53:12 +02:00
Peter Wortmann 2c13b74222 Mac: Script for creating DMG package (adapted from fancy-dmg) 2011-10-09 18:27:00 +01:00
Peter Wortmann ad79ece074 Mac: Put game data into bundle
This makes it possible to ship the bundle stand-alone. Also
note that CMake will automatically pack the game data for
release builds, but sym-link the game data for debug builds.

Note this means you will only see the parts of planet/ that
are mentioned in OC_C4GROUPS in CMakeList.txt! This is equivalent
to the behaviour of the shipped build, so I don't see this as
a problem.
2011-10-09 17:09:48 +01:00
Günther Brammer b356c1bd10 win32: Installer uses new Clonk portrait 2011-09-23 01:55:39 +02:00
Günther Brammer 6b491974e1 win32: Installer writes more uninstaller information into the registry 2011-09-22 23:33:48 +02:00
Günther Brammer 26ff41185e win32: Uninstaller correctly removes the user settings 2011-09-22 22:26:06 +02:00
Günther Brammer 1cea606c41 win32: Installer creation works with MSVC
CMake even reads the makensis path from the registry.
2011-09-21 22:25:33 +02:00
Günther Brammer 5a3b14582a win32: Installer doesn't require admin privileges 2011-09-21 01:29:58 +02:00
Günther Brammer 89e15ec212 win32: Installer gets the product name from the Version.txt 2011-09-22 22:37:18 +02:00
Günther Brammer e2ec72b92f win32: Installer uses MUI2 and the default uninstall confirmation page
This further reduces the amount of custom code.
2011-09-21 00:10:26 +02:00
Günther Brammer c02354f56c win32: Add build rules for the installer to CMakeLists.txt and Makefile.am 2011-09-20 19:43:22 +02:00
Günther Brammer 65f21dbf8a win32: Installer installs *.oc? instead of *.c4? 2011-09-20 18:41:56 +02:00