mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-22 22:48:08 +03:00
emscripten: Remove EXPORTED_FUNCTIONS build option
This commit is contained in:
@@ -93,7 +93,6 @@ if (EMSCRIPTEN)
|
||||
"SHELL:-s ASYNCIFY_IMPORTS=\"['muspcm_load_no','muspcm_load_mixlr','muspcm_waitend','wait_vsync','load_mincho_font']\""
|
||||
"SHELL:-s ALLOW_MEMORY_GROWTH=1"
|
||||
"SHELL:-s NO_EXIT_RUNTIME=1"
|
||||
"SHELL:-s EXPORTED_FUNCTIONS=\"['_main','_ags_setAntialiasedStringMode', '_ald_getdata', '_ald_freedata']\""
|
||||
"SHELL:-s EXTRA_EXPORTED_RUNTIME_METHODS=\"['getValue','addRunDependency','removeRunDependency']\"")
|
||||
|
||||
elseif (ANDROID)
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
#endif
|
||||
|
||||
#include "portab.h"
|
||||
#include "xsystem35.h"
|
||||
@@ -782,6 +785,7 @@ void ags_setCursorLocation(int x, int y, boolean is_dibgeo) {
|
||||
}
|
||||
}
|
||||
|
||||
EMSCRIPTEN_KEEPALIVE
|
||||
void ags_setAntialiasedStringMode(boolean on) {
|
||||
if (!nact->noantialias) {
|
||||
font_set_antialias(on);
|
||||
|
||||
@@ -26,6 +26,9 @@
|
||||
#include "dri.h"
|
||||
#include "cache.h"
|
||||
#include "ald_manager.h"
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
#endif
|
||||
|
||||
/* drifiles object */
|
||||
static drifiles *dri[DRIFILETYPEMAX];
|
||||
@@ -53,6 +56,7 @@ static void ald_free(dridata *dfile) {
|
||||
* no : file no ( >= 0 )
|
||||
* return: loaded dridata object
|
||||
*/
|
||||
EMSCRIPTEN_KEEPALIVE
|
||||
dridata *ald_getdata(DRIFILETYPE type, int no) {
|
||||
dridata *ddata;
|
||||
|
||||
@@ -86,6 +90,7 @@ dridata *ald_getdata(DRIFILETYPE type, int no) {
|
||||
* free dri object
|
||||
* data: object to be free
|
||||
*/
|
||||
EMSCRIPTEN_KEEPALIVE
|
||||
void ald_freedata(dridata *data) {
|
||||
if (data == NULL) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user