include ../../build/rules.make
LIBRARY = System.Xml.Linq.dll
-LIB_MCS_FLAGS = \
- /r:System.dll \
- /r:System.Core.dll \
- /r:System.Xml.dll
+LIB_REFS = System System.Core System.Xml
+LIB_MCS_FLAGS =
-ifeq (2.0, $(FRAMEWORK_VERSION))
-# This is a .NET 3.5 only assembly, but built during the 2.0 build
-LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720
+NO_SERIALIZATION_PROFILE := $(filter basic build, $(PROFILE))
+ifndef NO_SERIALIZATION_PROFILE
+LIB_REFS += System.Runtime.Serialization
+LIB_MCS_FLAGS += -d:FEATURE_SERIALIZATION
+endif
+
+ifeq (2.1, $(FRAMEWORK_VERSION))
+LIB_MCS_FLAGS += -d:MONO_HYBRID_SYSTEM_XML
endif
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
EXTRA_DISTFILES =
-ifneq (net_2_0, $(PROFILE))
-LIBRARY_NAME = dummy-System.Xml.Linq.dll
-NO_INSTALL = yes
-NO_SIGN_ASSEMBLY = yes
-NO_TEST = yes
-endif
-
include ../../build/library.make