mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
56 lines
954 B
Makefile
56 lines
954 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
|
|
|
|
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 = \
|
|
$(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
|