[System.Drawing] Simplify mobile profile check
[mono.git] / mcs / class / System.Drawing / Makefile
index f60e6deafca02f318fc2cef00b2c2302e7e32be0..62d3ac085e120ce33034e05d628d0aadaa19ed1b 100644 (file)
@@ -5,14 +5,22 @@ SUBDIRS =
 LIBRARY = System.Drawing.dll
 
 LIB_REFS = System
-LIB_MCS_FLAGS = /unsafe /r:$(corlib) \
+KEYFILE = ../msfinal.pub
+LIB_MCS_FLAGS = /unsafe \
        -resource:Assembly/Mono.ico,Mono.ico -resource:Assembly/Information.ico,Information.ico \
        -resource:Assembly/Error.ico,Error.ico -resource:Assembly/Warning.ico,Warning.ico \
        -resource:Assembly/Question.ico,Question.ico -resource:Assembly/Shield.ico,Shield.ico
 
+RESX_RESOURCE_STRING = ../../../external/corefx/src/System.Drawing.Common/src/Resources/Strings.resx
+
+ifndef MOBILE_PROFILE
+LIB_MCS_FLAGS += -d:FEATURE_TYPECONVERTER,SUPPORTS_WINDOWS_COLORS
+endif
+
+TEST_LIB_REFS = System.Drawing System.Runtime.Serialization.Formatters.Soap System.Xml
+
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -define:TEST -resource:Test/resources/indexed.png,indexed.png \
-        -r:System.Drawing.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Xml.dll \
-       -nowarn:0618 -nowarn:219 -nowarn:169 -nowarn:1595
+       -nowarn:0618 -nowarn:219 -nowarn:169
 
 include ../../build/library.make