WIP [library.make] Make resource usage declarative in the class libraries (#3159)
[mono.git] / mcs / class / System.Web.Http / Makefile
index fb50d52d2e98208c8bdc9065d7656ac011cdc3ea..72afa046d2a4cb72959d0a660e53fa8a609fb399 100644 (file)
@@ -4,20 +4,13 @@ include ../../build/rules.make
 
 LIBRARY = System.Web.Http.dll
 
-System.Web.Http.Properties.CommonWebApiResources.resources: ../../../external/aspnetwebstack/src/Common/CommonWebApiResources.resx
-       $(RESGEN) "$<" "$@"
-       
-System.Web.Http.Properties.SRResources.resources: ../../../external/aspnetwebstack/src/System.Web.Http/Properties/SRResources.resx
-       $(RESGEN) "$<" "$@"
+RESOURCE_DEFS = \
+       System.Web.Http.Properties.CommonWebApiResources,../../../external/aspnetwebstack/src/Common/CommonWebApiResources.resx \
+       System.Web.Http.Properties.SRResources,../../../external/aspnetwebstack/src/System.Web.Http/Properties/SRResources.resx
+
 
 
 LIB_REFS = System.Core System System.Xml System.Net.Http System.ComponentModel.DataAnnotations System.Net.Http.Formatting System.Runtime.Caching System.Runtime.Serialization System.Data.Linq
-LIB_MCS_FLAGS = \
-               -d:ASPNETMVC -keyfile:../winfx.pub -delaysign \
-               -resource:System.Web.Http.Properties.CommonWebApiResources.resources \
-               -resource:System.Web.Http.Properties.SRResources.resources
+LIB_MCS_FLAGS = -d:ASPNETMVC -keyfile:../winfx.pub -delaysign 
 
 include ../../build/library.make
-
-$(the_lib): System.Web.Http.Properties.CommonWebApiResources.resources \
-       System.Web.Http.Properties.SRResources.resources