mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-02 02:37:55 +00:00
mymake now works with Emscripten
This commit is contained in:
13
sysconfig.h
13
sysconfig.h
@@ -206,7 +206,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef CAP_TOUR
|
||||
#define CAP_TOUR (!ISWEB && !ISMINI)
|
||||
#define CAP_TOUR (!ISMINI)
|
||||
#endif
|
||||
|
||||
#ifndef CAP_ROGUEVIZ
|
||||
@@ -285,7 +285,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef CAP_SHMUP
|
||||
#define CAP_SHMUP 1
|
||||
#define CAP_SHMUP (!ISWEB)
|
||||
#endif
|
||||
|
||||
#ifndef CAP_BITFIELD
|
||||
@@ -403,6 +403,10 @@ extern "C" {
|
||||
#define CAP_GLEW (CAP_GL && !ISMOBILE && !ISMAC && !ISLINUX && !ISWEB)
|
||||
#endif
|
||||
|
||||
#if ISWEB
|
||||
#define GLES_ONLY
|
||||
#endif
|
||||
|
||||
#if CAP_GL
|
||||
#if CAP_GLEW
|
||||
#include <GL/glew.h>
|
||||
@@ -462,6 +466,11 @@ typedef unsigned GLuint;
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
#if ISWEB
|
||||
#include <emscripten.h>
|
||||
#include <emscripten/html5.h>
|
||||
#endif
|
||||
|
||||
#if CAP_GMP
|
||||
#include <gmpxx.h>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user