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
# Cross platform/compiler definitions
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
JS_CONFIGURE_ARGS += --enable-debug-symbols --disable-optimize
else
......
......@@ -251,6 +251,9 @@ BOOL DLLCALL js_CreateCommonObjects(JSContext* js_cx
/* Global Object */
if(!js_CreateGlobalObject(js_cx, &scfg, methods, js_startup, glob))
return(FALSE);
#ifdef JS_HAS_CTYPES
JS_InitCTypesClass(js_cx, *glob);
#endif
do {
/* System Object */
......