Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / class / System.Web.Mvc / Makefile
1 thisdir = class/System.Web.Mvc
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Web.Mvc.dll
6 LIBRARY_USE_INTERMEDIATE_FILE = yes
7
8 RESX_DIST =  System.Web.Mvc/Resources/MvcResources.resx
9
10 LIB_MCS_FLAGS = \
11                 /r:System.dll \
12                 /r:System.Core.dll \
13                 /r:System.Configuration.dll \
14                 /r:System.Data.dll \
15                 /r:System.Xml.dll \
16                 /r:System.Web.dll \
17                 /r:System.Web.Abstractions.dll \
18                 /r:System.Web.Routing.dll \
19                 /r:System.Web.Extensions.dll \
20                 $(foreach r, $(RESOURCES), /resource:$(r),System.Web.Mvc.Resources.$(notdir $(r)))
21
22 ifeq (2.0, $(FRAMEWORK_VERSION))
23 # This is a .NET 3.5 only assembly, but built during the 2.0 build
24 LIB_MCS_FLAGS += -d:NET_3_5 -d:MONO
25 endif
26
27 EXTRA_DISTFILES = $(RESX_DIST) license.htm
28
29 # This is a .NET 3.5+ assembly - it must be built ONLY in the 2.0 profile
30 VALID_PROFILE := $(filter net_2_0, $(PROFILE))
31 ifndef VALID_PROFILE
32 LIBRARY_NAME = dummy-System.Web.Mvc.dll
33 NO_INSTALL = yes
34 NO_SIGN_ASSEMBLY = yes
35 NO_TEST = yes
36 else
37 RESOURCES = $(RESX_DIST:.resx=.resources)
38 endif
39
40 include ../../build/library.make
41
42 $(build_lib): $(RESOURCES)
43
44 $(RESOURCES): %.resources: %.resx
45         $(RESGEN) `echo $< | $(PLATFORM_CHANGE_SEPARATOR_CMD)`