Wireshark-dev: Re: [Wireshark-dev] DISSECTOR_SUPPORT_SRC in another directory in Windows
From: "Maynard, Chris" <Christopher.Maynard@xxxxxxxxx>
Date: Wed, 28 Apr 2010 13:08:40 -0400
There's probably an even better way to do this, but the attached "pseudo-patch" would seem to do the trick, although I haven't tested everything like creating an installer, etc.

I would not count the difference in behavior as a bug.  I'm sure it's just a difference in the Makefiles or natural differences in the behavior of the compilers, or whatever.

- Chris
(Here I use "xyz" as the name of your plugin)

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Jeremy O'Brien
Sent: Wednesday, April 28, 2010 11:04 AM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] DISSECTOR_SUPPORT_SRC in another directory in Windows

Wow. I really appreciate you taking time to experiment with this. Your
results are very enlightening. For now, I'm thinking I'll just copy
the support files to the necessary plugin directories manually before
compilation until I or someone else can figure out a fix for this
issue. It's interesting that it builds correctly in Linux and only
fails like this under Windows. You'd think they'd try to make the
compilation process as similar as possible between OS's. But of course
that's difficult since Windows makefiles are very different from Linux
ones. Do you think this should be counted as a bug?

CONFIDENTIALITY NOTICE: The contents of this email are confidential
and for the exclusive use of the intended recipient. If you receive this
email in error, please delete it from your system immediately and 
notify us either by email, telephone or fax. You should not copy,
forward, or otherwise disclose the content of the email.
Index: plugins/xyz/Makefile.nmake
===================================================================
--- plugins/xyz/Makefile.nmake	(your copy)
+++ plugins/xyz/Makefile.nmake	(my copy)
 
 DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
 
-OBJECTS = $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) plugin.obj
+DISSECTOR_COMMON_OBJECTS = ..\common\support_file.obj
 
+OBJECTS = $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) plugin.obj \
+	  $(DISSECTOR_COMMON_OBJECTS)
+
 RESOURCE=$(PLUGIN_NAME).res
 
 all: $(PLUGIN_NAME).dll
Index: plugins/Makefile.nmake
===================================================================
--- plugins/Makefile.nmake	(revision 32589)
+++ plugins/Makefile.nmake	(working copy)
@@ -7,6 +7,7 @@
 ## To add a plugin: Add entry to PLUGIN_LIST
 
 PLUGIN_LIST = \
+	common \
 	asn1        \
 	docsis      \
 	ethercat    \