-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental WebAssembly Support Using emscripten
- Loading branch information
1 parent
ab3b192
commit 8876bc7
Showing
6 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,6 @@ ipch/ | |
*.*codeanalysis* | ||
read.lock | ||
fileList.bin | ||
|
||
*.js | ||
*.wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#ifndef ACE_CONFIG_EMSCRIPTEN_H | ||
#define ACE_CONFIG_EMSCRIPTEN_H | ||
|
||
#define ACE_EMSCRIPTEN | ||
|
||
#define ACE_HAS_CPP11 | ||
|
||
// Threading | ||
#define ACE_MT_SAFE 1 | ||
#define ACE_HAS_THREADS 1 | ||
#define ACE_HAS_PTHREADS | ||
#define ACE_HAS_PTHREADS_UNIX98_EXT | ||
#define ACE_HAS_THREAD_SPECIFIC_STORAGE | ||
|
||
// Basic Types | ||
#define ACE_HAS_SSIZE_T | ||
#define ACE_HAS_WCHAR | ||
|
||
// Time | ||
#define ACE_HAS_POSIX_TIME | ||
#define ACE_LACKS_TIMESPEC_T | ||
#define ACE_HAS_NONCONST_SELECT_TIMEVAL | ||
#define ACE_HAS_VOIDPTR_GETTIMEOFDAY | ||
|
||
// Everything else | ||
#define ACE_HAS_UCONTEXT_T | ||
#define ACE_HAS_MSG | ||
#define ACE_HAS_CPU_SET_T | ||
#define ACE_LACKS_ISCTYPE | ||
#define ACE_HAS_STRBUF_T | ||
#define ACE_HAS_SOCKLEN_T | ||
#define ACE_LACKS_AUTO_PTR | ||
#define ACE_HAS_SIGINFO_T | ||
#define ACE_LACKS_SIGINFO_H | ||
#define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES | ||
#define ACE_HAS_3_PARAM_WCSTOK | ||
#define ACE_LACKS_ITOW | ||
#define ACE_LACKS_WCSICMP | ||
#define ACE_LACKS_WCSNICMP | ||
#define ACE_HAS_DIRENT | ||
#define ACE_HAS_4_4BSD_SENDMSG_RECVMSG | ||
|
||
#include "config-posix.h" | ||
#include "config-g++-common.h" | ||
|
||
// Not supported? https://github.com/emscripten-core/emscripten/issues/18050 | ||
#ifdef ACE_HAS_AIO_CALLS | ||
# undef ACE_HAS_AIO_CALLS | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ACE_PLATFORM_CONFIG ?= config-emscripten.h | ||
EXEEXT = .js | ||
|
||
debug ?= 1 | ||
optimize ?= 1 | ||
threads ?= 1 | ||
inline ?= 1 | ||
static_libs_only = 1 | ||
|
||
CROSS_COMPILE := THIS_VALUE_SHOULD_NOT_BE_USED | ||
override_cross_compile = 1 | ||
CC = emcc | ||
CXX = em++ | ||
AR = emar | ||
LD = emcc | ||
|
||
ifeq ($(threads),1) | ||
FLAGS_C_CC += -pthread | ||
SOFLAGS += -pthread | ||
LIBS += -lrt | ||
endif | ||
|
||
include $(ACE_ROOT)/include/makeinclude/platform_clang_common.GNU |