changeset 2:babaa75bec07

Added a .plugin bundle, which appears to be loadable into Firefox.
author Atul Varma <varmaa@toolness.com>
date Wed, 30 Apr 2008 17:03:39 -0700
parents 37788ff39688
children 4cb374d30818
files .hgignore README SConstruct SimplePlugin.plugin/Contents/Info.plist SimplePlugin.plugin/Contents/PkgInfo SimplePlugin.plugin/Contents/Resources/English.lproj/InfoPlist.strings SimplePlugin.plugin/Contents/Resources/SimplePlugin.rsrc
diffstat 7 files changed, 34 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Wed Apr 30 11:03:44 2008 -0700
+++ b/.hgignore	Wed Apr 30 17:03:39 2008 -0700
@@ -2,3 +2,4 @@
 *.os
 *.dylib
 .sconsign.dblite
+.DS_Store
--- a/README	Wed Apr 30 11:03:44 2008 -0700
+++ b/README	Wed Apr 30 17:03:39 2008 -0700
@@ -1,4 +1,9 @@
-These files were originally taken from the following path from the mozilla source tree:
+These files were originally taken from the following path from the
+mozilla source tree:
 
   modules/plugin/samples/npruntime/
 
+The .rsrc file in the plugin bundle can be decompiled with the
+following command line:
+
+/Developer/Tools/DeRez SimplePlugin.rsrc /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r -useDF
--- a/SConstruct	Wed Apr 30 11:03:44 2008 -0700
+++ b/SConstruct	Wed Apr 30 17:03:39 2008 -0700
@@ -4,12 +4,13 @@
 
 env.Append(
     CPPPATH = ["${MOZ_SDK_DIR}/include"],
-    CPPDEFINES = ["XP_UNIX"]
+    CPPDEFINES = ["XP_MACOSX"]
 )
 
-env.SharedLibrary(
+env.LoadableModule(
     source = ["np_entry.cpp",
                "npn_gate.cpp",
                "npp_gate.cpp",
-               "plugin.cpp"]
+               "plugin.cpp"],
+    target = "#SimplePlugin.plugin/Contents/MacOS/SimplePlugin"
 )
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SimplePlugin.plugin/Contents/Info.plist	Wed Apr 30 17:03:39 2008 -0700
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>English</string>
+	<key>CFBundleExecutable</key>
+	<string>SimplePlugin</string>
+	<key>CFBundleIdentifier</key>
+	<string>com.netscape.SimplePlugin</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundlePackageType</key>
+	<string>NSPL</string>
+	<key>CFBundleSignature</key>
+	<string>MOSS</string>
+	<key>CFBundleVersion</key>
+	<string>1.0</string>
+	<key>CSResourcesFileMapped</key>
+	<true/>
+</dict>
+</plist>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SimplePlugin.plugin/Contents/PkgInfo	Wed Apr 30 17:03:39 2008 -0700
@@ -0,0 +1,1 @@
+NSPLMOSS
Binary file SimplePlugin.plugin/Contents/Resources/English.lproj/InfoPlist.strings has changed
Binary file SimplePlugin.plugin/Contents/Resources/SimplePlugin.rsrc has changed