Fix bug 202340: add a mozilla.sdef file describing the AppleEvents dictionary in XML format, and use sdp and Rez to convert it to a .rsrc. Install that in dist/package, and also move PrintPDE.plugin into dist/package. r=ccarlen, sr=bryner/cls.

git-svn-id: svn://10.0.0.236/trunk@141411 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com
2003-04-18 20:54:06 +00:00
parent 33260f7486
commit b86d923d46
4 changed files with 70 additions and 2 deletions

View File

@@ -60,6 +60,8 @@ endif
libs::
pbxbuild -buildstyle $(BUILDSTYLE) install
cp -R build/UninstalledProducts/PrintPDE.plugin $(DIST)
mkdir -p $(DIST)/package
cp -R build/UninstalledProducts/PrintPDE.plugin $(DIST)/package/
clean clobber::
rm -rf build

View File

@@ -428,9 +428,11 @@ libs:: $(PROGRAM)
rm -f $(DIST)/$(APP_NAME).app/Contents/MacOS/$(PROGRAM)
rsync -aL $(PROGRAM) $(DIST)/$(APP_NAME).app/Contents/MacOS
mkdir -p $(DIST)/$(APP_NAME).app/Contents/Plug-Ins
cp -R $(DIST)/PrintPDE.plugin $(DIST)/$(APP_NAME).app/Contents/Plug-Ins
cp -R $(DIST)/package/PrintPDE.plugin $(DIST)/$(APP_NAME).app/Contents/Plug-Ins/
cp -RL $(srcdir)/macbuild/mach.icns $(DIST)/$(APP_NAME).app/Contents/Resources/mach.icns
cp -RL $(DIST)/package/mozillaSuite.rsrc $(DIST)/$(APP_NAME).app/Contents/Resources/$(PROGRAM).rsrc
echo -n APPLMOZZ > $(DIST)/$(APP_NAME).app/Contents/PkgInfo
clean clobber::
rm -rf $(DIST)/$(APP_NAME).app
endif

View File

@@ -91,4 +91,22 @@ LOCAL_INCLUDES = \
include $(topsrcdir)/config/rules.mk
# convert AppleScript dictionary .sdef file into .r format, and thence to .rsrc
SDP_TOOL = /Developer/Tools/sdp
REZ_TOOL = /Developer/Tools/Rez
SDEF_SRC = $(srcdir)/mozilla.sdef
RES_DEST = mozillaSuite.r
RSRC_DEST = mozillaSuite.rsrc
$(RSRC_DEST): $(SDEF_SRC)
$(SDP_TOOL) -fa -o $(RES_DEST) $(SDEF_SRC)
$(REZ_TOOL) -useDF -o $(RSRC_DEST) $(RES_DEST)
cp $(RSRC_DEST) $(DIST)/package/
rm -f $(RES_DEST) $(RSRC_DEST)
libs:: $(RSRC_DEST)
GARBAGE += $(RES_DEST) $(RSRC_DEST)
OS_CXXFLAGS += -fexceptions

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
<!--
This file describes Mozilla's AppleScript dictionary. It's compiled into a .r file
like this:
/Developer/Tools/sdp -f a mozilla.sdef
-->
<dictionary title="">
<suite name="Mozilla" code="MOZZ">
</suite>
<suite name="Spyglass" code="WWW!">
<commands>
<command name="OpenURL" code="WWW!OURL" description="Load a URL">
<direct-parameter type="string" description="URL to load"/>
</command>
<command name="register URL echo" code="WWW!RGUE" description="Register a URL echo handler. The handler will get called whenever a new URL is loaded">
<direct-parameter type="type" description="signature of listener"/>
</command>
<command name="unregister URL echo" code="WWW!UNRU" description="Cancels URL echo">
<direct-parameter type="type" description="signature of listener"/>
</command>
</commands>
</suite>
<suite name="Get URL" code="GURL">
<commands>
<command name="Get URL" code="GURLGURL" description="Load a URL">
<direct-parameter type="string" description="URL to load"/>
<parameter name="inside" code="HWIN" optional="optional" type="object" description="the window to load the URL in"/>
</command>
</commands>
</suite>
</dictionary>