Commits (1)
  • Deucе's avatar
    Enable ctypes in jsdoor · c7cbdd4c
    Deucе authored
    SpiderMokey is now built with ctypes, but the object is only
    being created in jsdoor for now.
    c7cbdd4c
...@@ -4,7 +4,7 @@ SRC_ROOT = ../../src ...@@ -4,7 +4,7 @@ SRC_ROOT = ../../src
# Cross platform/compiler definitions # Cross platform/compiler definitions
include $(SRC_ROOT)/build/Common.gmake # defines clean and output directory rules include $(SRC_ROOT)/build/Common.gmake # defines clean and output directory rules
JS_CONFIGURE_ARGS += $(EXTRA_JS_CONFIGURE_ARGS) --with-system-nspr --disable-tests --disable-shared-js --enable-threadsafe --prefix=$(shell echo `pwd`/$(JS_IDIR)) JS_CONFIGURE_ARGS += $(EXTRA_JS_CONFIGURE_ARGS) --with-system-nspr --disable-tests --disable-shared-js --enable-threadsafe --prefix=$(shell echo `pwd`/$(JS_IDIR)) --enable-ctypes
ifdef DEBUG ifdef DEBUG
JS_CONFIGURE_ARGS += --enable-debug-symbols --disable-optimize JS_CONFIGURE_ARGS += --enable-debug-symbols --disable-optimize
else else
......
...@@ -251,6 +251,9 @@ BOOL DLLCALL js_CreateCommonObjects(JSContext* js_cx ...@@ -251,6 +251,9 @@ BOOL DLLCALL js_CreateCommonObjects(JSContext* js_cx
/* Global Object */ /* Global Object */
if(!js_CreateGlobalObject(js_cx, &scfg, methods, js_startup, glob)) if(!js_CreateGlobalObject(js_cx, &scfg, methods, js_startup, glob))
return(FALSE); return(FALSE);
#ifdef JS_HAS_CTYPES
JS_InitCTypesClass(js_cx, *glob);
#endif
do { do {
/* System Object */ /* System Object */
......