1
0
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:
Zeno Rogue
2020-10-12 01:28:50 +02:00
parent 9a2b464778
commit 35d26d1595
6 changed files with 48 additions and 16 deletions

View File

@@ -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