зеркало из https://github.com/mozilla/pjs.git
Bug 568691 - build components.manifest instead of components.list, and switch the sample JS component to use standard EXTRA_COMPONENTS machinery.
This commit is contained in:
Родитель
6cb29acab4
Коммит
753fa71615
|
@ -105,7 +105,7 @@
|
|||
#endif
|
||||
|
||||
; [Components]
|
||||
@BINPATH@/components/components.list
|
||||
@BINPATH@/components/components.manifest
|
||||
@BINPATH@/components/alerts.xpt
|
||||
#ifdef ACCESSIBILITY
|
||||
#ifdef XP_WIN32
|
||||
|
|
|
@ -883,7 +883,7 @@ ifdef SHARED_LIBRARY
|
|||
ifdef IS_COMPONENT
|
||||
$(INSTALL) $(IFLAGS2) $(SHARED_LIBRARY) $(FINAL_TARGET)/components
|
||||
$(ELF_DYNSTR_GC) $(FINAL_TARGET)/components/$(SHARED_LIBRARY)
|
||||
@$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py $(FINAL_TARGET)/components/components.list $(SHARED_LIBRARY)
|
||||
@$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py $(FINAL_TARGET)/components/components.manifest "binary-component $(SHARED_LIBRARY)"
|
||||
ifdef BEOS_ADDON_WORKAROUND
|
||||
( cd $(FINAL_TARGET)/components && $(CC) -nostart -o $(SHARED_LIBRARY).stub $(SHARED_LIBRARY) )
|
||||
endif
|
||||
|
|
|
@ -83,7 +83,7 @@ include $(topsrcdir)/config/config.mk
|
|||
|
||||
# EXTRA_COMPONENTS installs components written JavaScript to
|
||||
# dist/bin/components
|
||||
EXTRA_COMPONENTS = nsSample.js
|
||||
EXTRA_COMPONENTS = nsSample.js nsSample.manifest
|
||||
|
||||
# EXTRA_DSO_LDOPTS specifies linker flags when building a shared library
|
||||
# from this Makefile. We link against the "dependent glue" and against the
|
||||
|
@ -108,9 +108,3 @@ libs:: $(TARGETS)
|
|||
|
||||
install:: $(TARGETS)
|
||||
$(SYSINSTALL) $(IFLAGS1) $(srcdir)/xpconnect-sample.html $(DESTDIR)$(mozappdir)/res/samples
|
||||
|
||||
# XXX TEMPORARY DEMONSTRATION HACK
|
||||
libs::
|
||||
$(PYTHON) $(topsrcdir)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(srcdir)/nsSample.manifest > $(DIST)/bin/components/nsSample.manifest
|
||||
|
||||
DEFINES += -DSHARED_LIBRARY=$(SHARED_LIBRARY)
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
component dea98e50-1dd1-11b2-9344-8902b4805a2e nsSample.js
|
||||
contract @mozilla.org/jssample;1 dea98e50-1dd1-11b2-9344-8902b4805a2e
|
||||
binary-component @SHARED_LIBRARY@
|
||||
|
|
Загрузка…
Ссылка в новой задаче