Install 4.0 profile as developers package and make 4.5 profile default gac target...
authorMarek Safar <marek.safar@gmail.com>
Mon, 26 Sep 2011 11:08:01 +0000 (12:08 +0100)
committerMarek Safar <marek.safar@gmail.com>
Mon, 26 Sep 2011 11:08:01 +0000 (12:08 +0100)
29 files changed:
mcs/Makefile
mcs/build/profiles/net_4_0.make
mcs/build/profiles/net_4_5.make
mcs/class/Makefile
mcs/class/Microsoft.Build/Makefile
mcs/class/Microsoft.Web.Infrastructure/Makefile
mcs/class/System.ComponentModel.Composition/Makefile
mcs/class/System.Core/Makefile
mcs/class/System.Json/Makefile
mcs/class/System.Net/Makefile
mcs/class/System.Numerics/Makefile
mcs/class/System.Runtime.Caching/Makefile
mcs/class/System.Runtime.DurableInstancing/Makefile
mcs/class/System.Runtime.Serialization/Makefile
mcs/class/System.ServiceModel.Discovery/Makefile
mcs/class/System.ServiceModel.Routing/Makefile
mcs/class/System.ServiceModel.Web/Makefile
mcs/class/System.ServiceModel/Makefile
mcs/class/System.Web.ApplicationServices/Makefile
mcs/class/System.Windows.Forms.DataVisualization/Makefile
mcs/class/System.Xaml/Makefile
mcs/class/System.Xml.Linq/Makefile
mcs/class/WindowsBase/Makefile
mcs/class/aot-compiler/Makefile
mcs/mcs/Makefile
scripts/Makefile.am
scripts/dmcs.in
scripts/gmcs.in
scripts/mcs.in

index cbdd7671425b293b95b9d83d9c8a75ca23371dcf..9d095b3aa0005f1cb910bab601383ac96a1351d2 100644 (file)
@@ -12,8 +12,8 @@ monodroid_SUBDIRS := build class
 monotouch_SUBDIRS := build class
 mobile_SUBDIRS := build class
 net_3_5_SUBDIRS := build class tools/xbuild
-net_4_0_SUBDIRS := build mcs class nunit24 ilasm tools tests errors docs
-net_4_5_SUBDIRS := build class
+net_4_0_SUBDIRS := build class
+net_4_5_SUBDIRS := build mcs class nunit24 ilasm tools tests errors docs
 
 # List of test subdirs that should pass 100%
 centum_tests := \
index 4cf51db14a4ace7546038a78cd4342c7642fe462..0a26e1b9a0224d521d94d7927d02dbf8ad80028d 100644 (file)
@@ -14,3 +14,5 @@ DEFAULT_REFERENCES = -r:mscorlib.dll
 PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
 
 FRAMEWORK_VERSION = 4.0
+
+LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
index b869afb1ebcee7e609d1e831ebaace9194c42c43..ff3f106cbbc0d5567627e0b0cd9ff66bd17b1212 100644 (file)
@@ -13,4 +13,4 @@ profile-check:
 DEFAULT_REFERENCES = -r:mscorlib.dll
 PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
 
-FRAMEWORK_VERSION = 4.0
+FRAMEWORK_VERSION = 4.5
index 592ed3ead647bc1900930b197271760fafa37752..796111b81841a202ceefdb2c41f2b5cb1ef1ca29 100644 (file)
@@ -185,7 +185,9 @@ net_4_0_dirs := \
        WebMatrix.Data \
        System.Data.Services.Client     \
        System.Data.Services    \
-       System.Json \
+       System.Json
+
+net_4_5_dirs := \
        System.Threading.Tasks.Dataflow
 
 net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) aot-compiler
@@ -194,8 +196,8 @@ monodroid_SUBDIRS := $(mobile_dirs)
 monotouch_SUBDIRS := $(mobile_dirs)
 mobile_SUBDIRS := $(mobile_dirs)
 net_3_5_SUBDIRS := $(net_3_5_only_dirs)
-net_4_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) aot-compiler
-net_4_5_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) aot-compiler
+net_4_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs)
+net_4_5_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) $(net_4_5_dirs) aot-compiler
 
 include ../build/rules.make
 
index 0fde3045153b792ba746d64e2088abf8e9c9878d..74e14491def3917c45d77a273e218a6e999f9a02 100644 (file)
@@ -4,7 +4,7 @@ include ../../build/rules.make
 
 LIBRARY = Microsoft.Build.dll
 
-ifneq (4.0, $(FRAMEWORK_VERSION))
+ifneq (4, $(FRAMEWORK_VERSION_MAJOR))
 LIBRARY_NAME = dummy-Microsoft.Build.dll
 NO_INSTALL = yes
 NO_TEST = yes
index 5fdef6326f2be0376986e5c0fb5a15701adaac32..74be70013292c545eaba538e97745635686bacf6 100644 (file)
@@ -9,7 +9,7 @@ LIB_MCS_FLAGS = -r:System.dll \
 
 EXTRA_DISTFILES = $(RESOURCE_FILES)
 
-VALID_PROFILE := $(filter 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-Microsoft.Web.Infrastructure.dll
 NO_INSTALL = yes
index a1bf0daba6039f11925df9c5ab05707f85786f81..a039de61fecac161c29708582e85b92b79c8bb48 100644 (file)
@@ -12,7 +12,7 @@ CLEAN_FILES += $(STRING_MESSAGES)
 EXTRA_DISTFILES = \
        src/ComponentModel/Strings.resx
        
-VALID_PROFILE := $(filter 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.ComponentModel.Composition.dll
 NO_INSTALL = yes
index ffc843a60ba779b052dfbb9ca0bd00712780f48f..383201c4febfd8be5f725dae1297c78fca3ab082 100644 (file)
@@ -14,12 +14,12 @@ ifeq (2.1, $(FRAMEWORK_VERSION))
 LIB_MCS_FLAGS += -d:CODEPLEX_40 -d:SILVERLIGHT
 endif
 
-ifeq (4.0, $(FRAMEWORK_VERSION))
+ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
 LIB_MCS_FLAGS += -d:CODEPLEX_40
 endif
 
 ifneq (basic, $(PROFILE))
-CLR_PROFILE := $(filter 2.0 4.0, $(FRAMEWORK_VERSION))
+CLR_PROFILE := $(filter 2.0 4.0 4.5, $(FRAMEWORK_VERSION))
 endif
 
 ifdef CLR_PROFILE
@@ -29,7 +29,7 @@ endif
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 # This is a .NET 2.0+ only assembly
-VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2.0 2.1 4.0 4.5, $(FRAMEWORK_VERSION))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Core.dll
 NO_INSTALL = yes
index 92b672d587c74fb77d18e35b429e2643cc2678ff..906b0bf48f178ac8324ae1a357d887ee160d6007 100644 (file)
@@ -13,7 +13,7 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES =
 
-VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
 
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Json.dll
index 1267fe51925cce0452c3107bd69b20fb71d54250..9cd320df3befebbf863f19cef61a065b60e3aa40 100644 (file)
@@ -13,7 +13,7 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES =
 
-VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Net.dll
 NO_INSTALL = yes
index 2e6dea125d537ccfc658f3f55f2e1b3a7b50f63d..360fdf9faa759e49187eee6427bd027f5d9ca202 100644 (file)
@@ -8,7 +8,7 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES =
 
-VALID_PROFILE := $(filter 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 4, $(FRAMEWORK_VERSION_MAJOR))
 
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Numerics.dll
index e72dfce0e5f98784c4a65847b8b2ea0f56153eaf..4d2b3037d69ef986f1fb282e096833c2ce8637e6 100644 (file)
@@ -12,7 +12,7 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES = $(RESOURCE_FILES)
 
-VALID_PROFILE := $(filter 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Runtime.Caching.dll
 NO_INSTALL = yes
index 4b7e9d16f9e7912ebf17a35f19eace87bdd28d12..4a4934ccdd9ff5bd9440089b7097799f83c51492 100644 (file)
@@ -9,7 +9,7 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES = $(RESOURCE_FILES)
 
-VALID_PROFILE := $(filter 2.0 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2.0 4.0 4.5, $(FRAMEWORK_VERSION))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Runtime.DurableInstancing.dll
 NO_INSTALL = yes
index cf574ae72927f01cc13e6fb010fe16771eb01212..1ddb249990596a2b309a27825b433b0cdf390ec2 100644 (file)
@@ -24,7 +24,7 @@ EXTRA_DISTFILES = $(RESOURCE_FILES) \
        Test/Resources/Schemas/*.xsd \
        Test/System.Runtime.Serialization/one.xml
 
-VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Runtime.Serialization.dll
 NO_INSTALL = yes
index de570d08739ad2a3b0917420a40881a4d8246257..8b6932e708444a3c432c67a780fb226a503becc1 100644 (file)
@@ -14,7 +14,7 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES = $(RESOURCE_FILES)
 
-VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.ServiceModel.Discovery.dll
 NO_INSTALL = yes
index a90da75f695f5da312f7e6815441a2f7088e0660..5e0856dc290e4fac959975d815f379c82ac7df96 100644 (file)
@@ -14,7 +14,7 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES = $(RESOURCE_FILES)
 
-VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.ServiceModel.Routing.dll
 NO_INSTALL = yes
index 1dd0795f9e7463f724d80a5a83894cb027d413d9..f58657f7769ee862db58fec73973c7957b1c15c5 100644 (file)
@@ -17,7 +17,7 @@ EXTRA_DISTFILES = $(RESOURCE_FILES) \
        Test/config/webHttpBinding \
        Test/config/webHttpBinding.config
 
-VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.ServiceModel.Web.dll
 NO_INSTALL = yes
index 2e4a84813999b511063bcfab29572a92981b6398..3b903127dc9913e7b17a6821ceae94e203a92286 100755 (executable)
@@ -53,7 +53,7 @@ EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_EXTRA_FILES)
 # Useful for debugging under Visual Studio 2005
 # NO_SIGN_ASSEMBLY = yes
 
-VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.ServiceModel.dll
 NO_INSTALL = yes
index 57f271b8c9f8e2ba8ed5304194feaa51096a31f1..8601fc475e3c9c515a527561be4b17a7483c05dc 100644 (file)
@@ -9,7 +9,7 @@ LIB_MCS_FLAGS = -r:System.dll \
 
 EXTRA_DISTFILES = $(RESOURCE_FILES)
 
-VALID_PROFILE := $(filter 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Web.ApplicationServices.dll
 NO_INSTALL = yes
index 538bdda691283eb3c89e64e9bd166351c580e167..b076ebdfa1fa20a8908c4364f32fba02e7c9be3b 100644 (file)
@@ -8,7 +8,7 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 \r
 EXTRA_DISTFILES =\r
 \r
-VALID_PROFILE := $(filter 4.0, $(FRAMEWORK_VERSION))\r
+VALID_PROFILE := $(filter 4, $(FRAMEWORK_VERSION_MAJOR))\r
 \r
 ifndef VALID_PROFILE\r
 LIBRARY_NAME = dummy-System.Windows.Forms.DataVisualization.dll\r
index 8aa4c705eb0ba6c92f0002c57ea49084004a3e07..04ad2dda799eb57bf577178edc817da7c2f6aaec 100644 (file)
@@ -18,7 +18,7 @@ TEST_EXTRA_DISTFILES = \
        Test/XmlFiles/*.xml \
        Test/XmlFiles/*.xaml
 
-VALID_PROFILE := $(filter 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Xaml.dll
 NO_INSTALL = yes
index c6ae6d9ab2fc599fcb34aa844561336558f624db..65bdd81ee2f0851f855eac97c0f9351c0ed24701 100644 (file)
@@ -17,7 +17,7 @@ TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES =
 
-VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
+VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.Xml.Linq.dll
 NO_INSTALL = yes
index 3c4aa8d6529053230f1f9e639149042573f9ca5d..804fc21e31b1ab9fe5aaa2e01c1d0339cfa7b8da 100644 (file)
@@ -9,8 +9,8 @@ TEST_MCS_FLAGS = -unsafe -r:WindowsBase.dll
 ifeq (2.0, $(FRAMEWORK_VERSION))
 LIB_MCS_FLAGS += -d:NET_3_0
 endif
-ifeq (4.0, $(FRAMEWORK_VERSION))
-LIB_MCS_FLAGS += -d:NET_4_0 -r:System.Xaml.dll
+ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
+LIB_MCS_FLAGS += -r:System.Xaml.dll
 TEST_MCS_FLAGS += -r:System.Xaml.dll
 endif
 
index d4cba321935cded5803f1c8ae8dffcc314ee391e..7dc1276ec0e1e1b8b613c8dfd35cf1bd2edabefc 100644 (file)
@@ -46,7 +46,7 @@ all-local: $(mscorlib_aot_image) $(mcs_aot_image)
 install-local:
 endif
 
-ifeq ($(PROFILE),net_4_0)
+ifeq ($(PROFILE), $(DEFAULT_PROFILE))
 all-local: $(mscorlib_aot_image) $(mcs_aot_image)
 install-local:
        $(MKINSTALLDIRS) $(DESTDIR)$(LIBRARY_INSTALL_DIR)
@@ -54,8 +54,8 @@ install-local:
        $(INSTALL_LIB) $(mcs_aot_image) $(DESTDIR)$(PROGRAM_INSTALL_DIR)
 endif
 
-# No mcs in net 2.0 or net 4.5
-MSCORLIB_PROFILE := $(filter net_2_0 net_4_5, $(PROFILE))
+# No mcs in net 2.0
+MSCORLIB_PROFILE := $(filter net_2_0, $(PROFILE))
 ifdef MSCORLIB_PROFILE
 all-local: $(mscorlib_aot_image)
 install-local:
index 3524c5987d9896862c09405e77e8d3fffc573826..9ccd2a356b8cbc59bffb6983c114d108ddce8de2 100644 (file)
@@ -22,7 +22,7 @@ endif
 
 LOCAL_MCS_FLAGS += -d:STATIC,NO_SYMBOL_WRITER
 
-PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/4.0
+PROGRAM_INSTALL_DIR = $(mono_libdir)/mono/4.5
 
 PROGRAM_COMPILE = $(BOOT_COMPILE)
 
index f12dc4e1660ed80c748ba7fe5850d4501ebd97fa..320acbe24da37b6c0967bb58b18247f932118c60 100644 (file)
@@ -190,7 +190,7 @@ REWRITE_DEBUG = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp) --debug,g
 REWRITE2 = $(REWRITE) -e 's,@''framework_version@,2.0,g'
 REWRITE2_1 = $(REWRITE) -e 's,@''framework_version@,2.1,g'
 if INSTALL_4_0
-REWRITE4 = $(REWRITE) -e 's,@''framework_version@,4.0,g'
+REWRITE4 = $(REWRITE) -e 's,@''framework_version@,4.5,g'
 else
 REWRITE4 = $(REWRITE) -e 's,@''framework_version@,2.0,g'
 endif
index c29558f4f3128544bba68723643fd9a6892fd50d..716c1acad1c41cf9f6bfed8d1574ba048eec696d 100644 (file)
@@ -1,2 +1,2 @@
 #!/bin/sh
-exec @bindir@/mono $MONO_OPTIONS @mono_instdir@/4.0/mcs.exe -sdk:4 "$@"
+mcs -sdk:4 "$@"
index 0afd30d5d30a35ce9e4973f1fb3f2078300c7760..df33e6cfec21c1f238bf266744dd31ffc07083fb 100644 (file)
@@ -1,2 +1,2 @@
 #!/bin/sh
-exec @bindir@/mono $MONO_OPTIONS @mono_instdir@/4.0/mcs.exe -sdk:2 "$@"
+mcs -sdk:2 "$@"
index 4186c10c32cf44dcf0da7c4011635681b8c1b1df..d254e29c7b718a3b696585551f7a8ce2c9aea9a7 100644 (file)
@@ -1,2 +1,2 @@
 #!/bin/sh
-exec @bindir@/mono $MONO_OPTIONS @mono_instdir@/4.0/mcs.exe "$@"
+exec @bindir@/mono $MONO_OPTIONS @mono_instdir@/4.5/mcs.exe "$@"