[mcs] Add platform specific files (#4837)
[mono.git] / mcs / class / System.Web.Extensions / Makefile
index 4a3f8a48970acbdeb930cc1d3928e8e329f9698f..9660692d0db17f64e0ad6b4cc43c76ad8dbbdaae 100644 (file)
@@ -52,7 +52,7 @@ endif
 LIB_REFS = System System.Core System.Drawing System.Data System.Data.Linq System.Xml System.Web System.Web.Services System.Configuration System.EnterpriseServices System.ServiceModel
 LIB_MCS_FLAGS = \
        -unsafe \
-       -define:NET_3_5                 \
+       -define:NET_3_5 -nowarn:436             \
        -define:SYSTEM_WEB_EXTENSIONS   \
        $(OTHER_LIB_MCS_FLAGS)          \
        $(RESOURCE_FILES:%=/resource:%)
@@ -86,7 +86,11 @@ $(STANDALONE_TEST_ASSEMBLY): $(the_assembly) Test/standalone-tests/Consts.cs
        $(CSCOMPILE) $(STANDALONE_TEST_MCS_FLAGS) -out:$@ -target:library @System.Web.Extensions_standalone_test.dll.sources
 
 Test/standalone-tests/Consts.cs: Test/standalone-tests/Consts.cs.in
+ifeq ($(BUILD_PLATFORM), win32)
+       @sed 's,@SystemWebExtensionsClassDir@,$(shell cygpath -a -m .),' $< > $@
+else
        @sed 's,@SystemWebExtensionsClassDir@,$(shell pwd),' $< > $@
+endif
 
 include ../../build/library.make