diff options
author | Marek Habersack <grendel@twistedcode.net> | 2010-09-26 02:14:21 +0400 |
---|---|---|
committer | Marek Habersack <grendel@twistedcode.net> | 2010-09-26 02:14:21 +0400 |
commit | aea65531c058d6847e7c08aa4a47716423e7da9f (patch) | |
tree | 55ffcb04763c38831f9a83862612ae9435dfab7a /mcs/class/System.Messaging | |
parent | 04713a947f77fb5a41d66d39aaaeadb8c7049fe6 (diff) |
[Messaging] Conditionally drop dependency on Wnforms
If you pass the option MESSAGING_NO_WINFORMS=1 to make, System.Messaging will be compiled
without the dependency to System.Windows.Forms. The dependency is needed just by the
System.Messaging.Design.QueuePathDialog class which is both a stub and not used anywhere
by Mono.
Diffstat (limited to 'mcs/class/System.Messaging')
-rw-r--r-- | mcs/class/System.Messaging/Makefile | 4 | ||||
-rw-r--r-- | mcs/class/System.Messaging/System.Messaging.Design/QueuePathDialog.cs | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System.Messaging/Makefile b/mcs/class/System.Messaging/Makefile index a2eb9935321..681b8835095 100644 --- a/mcs/class/System.Messaging/Makefile +++ b/mcs/class/System.Messaging/Makefile @@ -15,4 +15,8 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169 \ EXTRA_DISTFILES = System.Messaging/MessageQueue.resx +ifdef MESSAGING_NO_WINFORMS +LIB_MCS_FLAGS += -d:NO_WINFORMS_DEPENDENCY +endif + include ../../build/library.make diff --git a/mcs/class/System.Messaging/System.Messaging.Design/QueuePathDialog.cs b/mcs/class/System.Messaging/System.Messaging.Design/QueuePathDialog.cs index 147a43f51df..a456f071891 100644 --- a/mcs/class/System.Messaging/System.Messaging.Design/QueuePathDialog.cs +++ b/mcs/class/System.Messaging/System.Messaging.Design/QueuePathDialog.cs @@ -27,7 +27,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // - +#if !NO_WINFORMS_DEPENDENCY using System.ComponentModel; using System.Drawing.Design; using System.Windows.Forms; @@ -76,3 +76,4 @@ namespace System.Messaging.Design } } } +#endif |