changeset 4:9a9f30dde6c1

Switched to using mozilla-config.h
author Atul Varma <varmaa@toolness.com>
date Wed, 30 Apr 2008 20:01:31 -0700
parents 4cb374d30818
children 6696b6295860
files SConstruct np_entry.cpp npn_gate.cpp npp_gate.cpp plugin.cpp
diffstat 5 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/SConstruct	Wed Apr 30 17:20:27 2008 -0700
+++ b/SConstruct	Wed Apr 30 20:01:31 2008 -0700
@@ -1,16 +1,16 @@
 env = Environment()
 
-env["MOZ_SDK_DIR"] = "/Users/varmaa/Documents/mozilla-stuff/builds/basic-firefox/dist/sdk"
+env["MOZ_SDK_DIR"] = "/Users/varmaa/Documents/mozilla-stuff/builds/basic-firefox/dist"
 
 env.Append(
-    CPPPATH = ["${MOZ_SDK_DIR}/include"],
-    CPPDEFINES = ["XP_MACOSX"]
+    CPPPATH = ["${MOZ_SDK_DIR}/include",
+               "${MOZ_SDK_DIR}/sdk/include"]
 )
 
 env.LoadableModule(
     source = ["np_entry.cpp",
-               "npn_gate.cpp",
-               "npp_gate.cpp",
-               "plugin.cpp"],
+              "npn_gate.cpp",
+              "npp_gate.cpp",
+              "plugin.cpp"],
     target = "#SimplePlugin.plugin/Contents/MacOS/SimplePlugin"
 )
--- a/np_entry.cpp	Wed Apr 30 17:20:27 2008 -0700
+++ b/np_entry.cpp	Wed Apr 30 20:01:31 2008 -0700
@@ -39,6 +39,7 @@
 //
 // Main plugin entry point implementation
 //
+#include "mozilla-config.h"
 #include "npapi.h"
 #include "npupp.h"
 
--- a/npn_gate.cpp	Wed Apr 30 17:20:27 2008 -0700
+++ b/npn_gate.cpp	Wed Apr 30 20:01:31 2008 -0700
@@ -39,6 +39,7 @@
 //
 // Implementation of Netscape entry points (NPN_*)
 //
+#include "mozilla-config.h"
 #include "npapi.h"
 #include "npupp.h"
 
--- a/npp_gate.cpp	Wed Apr 30 17:20:27 2008 -0700
+++ b/npp_gate.cpp	Wed Apr 30 20:01:31 2008 -0700
@@ -40,6 +40,7 @@
 // Implementation of plugin entry points (NPP_*)
 // most are just empty stubs for this particular plugin 
 //
+#include "mozilla-config.h"
 #include "plugin.h"
 
 char*
--- a/plugin.cpp	Wed Apr 30 17:20:27 2008 -0700
+++ b/plugin.cpp	Wed Apr 30 20:01:31 2008 -0700
@@ -39,6 +39,7 @@
 //
 // CPlugin class implementation
 //
+#include "mozilla-config.h"
 #ifdef XP_WIN
 #include <windows.h>
 #include <windowsx.h>