2006-02-14 23:50:47 +03:00
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = jssh
|
|
|
|
XPIDL_MODULE = jssh
|
|
|
|
LIBRARY_NAME = jssh
|
2007-01-09 17:21:51 +03:00
|
|
|
EXPORT_LIBRARY = 1
|
2006-02-14 23:50:47 +03:00
|
|
|
IS_COMPONENT = 1
|
2007-01-09 17:21:51 +03:00
|
|
|
MODULE_NAME = nsJSShModule
|
2006-02-14 23:50:47 +03:00
|
|
|
|
|
|
|
REQUIRES = \
|
|
|
|
xpcom \
|
|
|
|
js \
|
|
|
|
xpconnect \
|
|
|
|
string \
|
|
|
|
necko \
|
|
|
|
caps \
|
|
|
|
dom \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
nsJSShServer.cpp \
|
|
|
|
nsJSShModule.cpp \
|
|
|
|
nsJSSh.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
XPIDLSRCS = nsIJSShServer.idl \
|
|
|
|
nsIJSSh.idl \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXTRA_DSO_LDOPTS = \
|
2007-01-09 17:21:51 +03:00
|
|
|
$(XPCOM_GLUE_LDOPTS) \
|
2006-02-14 23:50:47 +03:00
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(MOZ_JS_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXTRA_COMPONENTS = nsJSShStarter.js
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
DEFINES += -DJS_THREADSAFE
|
|
|
|
|
|
|
|
XPI_FILE = jssh-$(shell date +%Y%m%d)-$(OS_ARCH).xpi
|
|
|
|
|
|
|
|
xpi::
|
|
|
|
zip -j $(DIST)/$(XPI_FILE) $(srcdir)/install.js
|
|
|
|
cd $(DIST); zip -r $(XPI_FILE) \
|
|
|
|
bin/components/jssh.xpt \
|
|
|
|
bin/components/$(LIB_PREFIX)jssh$(DLL_SUFFIX) \
|
|
|
|
bin/components/nsJSShStarter.js \
|
|
|
|
bin/chrome/jssh.jar
|