mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-04 04:14:18 -04:00
32889bf908
Rename src/ecmascript/spidermonkey/util.c to src/ecmascript/spidermonkey-shared.c and compile it also when CONFIG_SCRIPTING_SMJS is enabled but CONFIG_ECMASCRIPT_SPIDERMONKEY is not. Then use its functions from src/scripting/smjs/ too. Move the corresponding declarations, as well as the inline functions needed by src/scripting/smjs/, from src/ecmascript/spidermonkey/util.h to src/ecmascript/spidermonkey-shared.h. ELinks is nowadays using two JSRuntimes and SpiderMonkey has bugs that make it crash in such use. To work around them, ELinks will need to be changed to use only one JSRuntime. I am planning to define and initialize that JSRuntime in src/ecmascript/spidermonkey-shared.c, now that it's compiled whenever either of the modules is enabled.
24 lines
594 B
Makefile
24 lines
594 B
Makefile
top_builddir=../..
|
|
include $(top_builddir)/Makefile.config
|
|
INCLUDES += $(SPIDERMONKEY_CFLAGS) $(SEE_CFLAGS)
|
|
|
|
SUBDIRS-$(CONFIG_ECMASCRIPT_SEE) += see
|
|
SUBDIRS-$(CONFIG_ECMASCRIPT_SMJS) += spidermonkey
|
|
|
|
OBJS-$(CONFIG_ECMASCRIPT_SEE) += see.o
|
|
OBJS-$(CONFIG_ECMASCRIPT_SMJS) += spidermonkey.o
|
|
|
|
ifeq ($(CONFIG_ECMASCRIPT_SMJS), yes)
|
|
CONFIG_ANY_SPIDERMONKEY = yes
|
|
else ifeq ($(CONFIG_SCRIPTING_SPIDERMONKEY), yes)
|
|
CONFIG_ANY_SPIDERMONKEY = yes
|
|
else
|
|
CONFIG_ANY_SPIDERMONKEY = no
|
|
endif
|
|
|
|
OBJS-$(CONFIG_ANY_SPIDERMONKEY) += spidermonkey-shared.o
|
|
|
|
OBJS = ecmascript.o
|
|
|
|
include $(top_srcdir)/Makefile.lib
|