fix MacOSX install instruction and compilation
Signed-off-by: Victor Vieux <victorvieux@gmail.com>dev-time-step
parent
61a3ba2800
commit
49ee00d90d
|
@ -8,7 +8,7 @@ After installing Developer Command Line Tools, you should have basic tools like
|
||||||
```
|
```
|
||||||
And then:
|
And then:
|
||||||
```bash
|
```bash
|
||||||
brew install cmake sdl sdl_image sdl_ttf boost glew physfs flac libsndfile libvorbis vorbis-tools gettext libicns librsvg wget
|
brew install cmake sdl2 sdl2_image sdl2_ttf boost glew physfs flac libsndfile libvorbis vorbis-tools gettext libicns librsvg wget
|
||||||
```
|
```
|
||||||
Gettext is installed in separate directory without adding the files to system path, so in order to get it working normally, you should call also:
|
Gettext is installed in separate directory without adding the files to system path, so in order to get it working normally, you should call also:
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -16,13 +16,7 @@
|
||||||
|
|
||||||
#cmakedefine OPENAL_SOUND
|
#cmakedefine OPENAL_SOUND
|
||||||
|
|
||||||
#cmakedefine USE_SDL_MAIN @USE_SDL_MAIN@
|
|
||||||
|
|
||||||
#ifdef USE_SDL_MAIN
|
|
||||||
#define SDL_MAIN_FUNC SDL_main
|
|
||||||
#else
|
|
||||||
#define SDL_MAIN_FUNC main
|
#define SDL_MAIN_FUNC main
|
||||||
#endif
|
|
||||||
|
|
||||||
#cmakedefine PORTABLE @PORTABLE@
|
#cmakedefine PORTABLE @PORTABLE@
|
||||||
|
|
||||||
|
|
|
@ -304,7 +304,7 @@ bool CEdit::EventProcess(const Event &event)
|
||||||
{
|
{
|
||||||
bShift = ( (event.kmodState & KEY_MOD(SHIFT) ) != 0 );
|
bShift = ( (event.kmodState & KEY_MOD(SHIFT) ) != 0 );
|
||||||
#if PLATFORM_MACOSX
|
#if PLATFORM_MACOSX
|
||||||
bControl = ( (event.kmodState & KEY_MOD(META) ) != 0);
|
bControl = ( (event.kmodState & KEY_MOD(GUI) ) != 0);
|
||||||
#else
|
#else
|
||||||
bControl = ( (event.kmodState & KEY_MOD(CTRL) ) != 0);
|
bControl = ( (event.kmodState & KEY_MOD(CTRL) ) != 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue