mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
47 lines
862 B
Makefile
47 lines
862 B
Makefile
DEPTH = ../..
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
MODULE = jssh
|
|
XPIDL_MODULE = jssh
|
|
LIBRARY_NAME = jssh
|
|
EXPORT_LIBRARY = 1
|
|
IS_COMPONENT = 1
|
|
MODULE_NAME = nsJSShModule
|
|
|
|
|
|
CPPSRCS = \
|
|
nsJSShServer.cpp \
|
|
nsJSShModule.cpp \
|
|
nsJSSh.cpp \
|
|
$(NULL)
|
|
|
|
XPIDLSRCS = nsIJSShServer.idl \
|
|
nsIJSSh.idl \
|
|
$(NULL)
|
|
|
|
EXTRA_DSO_LDOPTS = \
|
|
$(XPCOM_GLUE_LDOPTS) \
|
|
$(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
|