Update class library csproj files
[mono.git] / mcs / class / System.Transactions / Makefile
index eefde82a339ebfcf03866e7381701f7c99e58d31..43ad21adeac6c1e209bc785b5be26c7373fc8bd0 100644 (file)
@@ -2,14 +2,19 @@ thisdir = class/System.Transactions
 SUBDIRS = 
 include ../../build/rules.make
 
+MOBILE_PROFILE := $(filter monotouch monodroid mobile, $(PROFILE))
+
 LIBRARY = System.Transactions.dll
-LIB_MCS_FLAGS = /nowarn:169 /nowarn:618 \
-       /r:$(corlib) /r:System.dll /debug+
+ifdef MOBILE_PROFILE
+LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll /define:MOBILE
+else
+LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll /r:System.Configuration.dll
+endif
 
 TEST_MCS_FLAGS = /nowarn:1595 $(LIB_MCS_FLAGS)
 
-# This is a .NET 2.0 only assembly
-VALID_PROFILE := $(filter net_2_0_bootstrap net_2_0, $(PROFILE))
+# This is a .NET 2.0+ only assembly
+VALID_PROFILE := $(filter net_2_0 net_4_0 net_4_5 monotouch monodroid mobile, $(PROFILE))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Transactions.dll
 NO_INSTALL = yes