[ion] Fix sending events to emscripten build

Change-Id: I9306554044a0b2fe2ee26769cc66a2684a05bebe
This commit is contained in:
Romain Goyet
2017-07-21 15:12:18 +02:00
parent 80c6d052f2
commit 70174638df
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
CC = emcc
CXX = emcc
LD = emcc
LDFLAGS = -s EXPORTED_FUNCTIONS="['_main', '_IonEmscriptenPushEvent']" -Os --shell-file ion/src/emscripten/shell.html
LDFLAGS = -s EXPORTED_FUNCTIONS="['_main', '_IonEventsEmscriptenPushEvent']" -Os --shell-file ion/src/emscripten/shell.html
SIZE = size

View File

@@ -1,4 +1,5 @@
#include <ion/events.h>
#include "events.h"
#include "display.h"
extern "C" {
#include <SDL/SDL.h>