r=benjamin@smedbergs.us, sr=jst git-svn-id: svn://10.0.0.236/trunk@213164 18797224-902f-48f8-a5cc-f745e15eee43
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# todo - add standard Mozilla license.
|
|
|
|
# The Python DOM ScriptLanguage implementation.
|
|
|
|
DEPTH=../../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
LIBRARY_NAME = pydom
|
|
IS_COMPONENT = 1
|
|
REQUIRES = pyxpcom xpcom string xpcom_obsolete dom \
|
|
widget js gfx gklayout content layout necko xpconnect $(NULL)
|
|
|
|
FORCE_SHARED_LIB = 1
|
|
FORCE_USE_PIC = 1
|
|
|
|
|
|
# We always need the Python and pyxpcom includes and libs.
|
|
LOCAL_INCLUDES = $(MOZ_PYTHON_INCLUDES)
|
|
EXTRA_LIBS += $(MOZ_PYTHON_LIBS) \
|
|
$(DIST)/lib/$(LIB_PREFIX)pyxpcom.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
|
|
# In the shorter term we need JS too.
|
|
EXTRA_LIBS += $(MOZ_JS_LIBS)
|
|
|
|
CPPSRCS = \
|
|
nsPyArgArray.cpp \
|
|
nsPyContext.cpp \
|
|
nsPyRuntime.cpp \
|
|
nsPyDOMModule.cpp \
|
|
nsPyDOMISupports.cpp \
|
|
nsPyTimeout.cpp \
|
|
$(NULL)
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
CXXFLAGS += -DPYTHON_SO=\"libpython$(MOZ_PYTHON_VER_DOTTED).so\"
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS) \
|
|
$(XPCOM_GLUE_LDOPTS) \
|
|
$(NULL)
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
clobber::
|
|
rm -f *.ilk
|