Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / class / System.Reactive.Providers / Makefile
1 thisdir = class/System.Reactive.Providers
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Reactive.Providers.dll
6 LIB_MCS_FLAGS = \
7                 @more_build_args \
8                 -r:System.dll \
9                 -r:System.Core.dll \
10                 -r:System.Reactive.Interfaces.dll \
11                 -r:System.Reactive.Core.dll \
12                 -r:System.Reactive.Linq.dll
13
14 ifeq (true, $(GENERATE_RESOURCES))
15 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
16 endif
17
18 RESX_RESOURCES = \
19         Strings_Providers.resources
20
21 CLEAN_FILES += $(RESX_RESOURCES)
22
23 RESOURCES = $(RESX_RESOURCES)
24
25 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
26
27 ifeq (2.1, $(FRAMEWORK_VERSION))
28 LIB_MCS_FLAGS += -d:NO_TASK_DELAY
29 endif
30
31 NET_4_5 := $(filter 4.5, $(FRAMEWORK_VERSION))
32 ifdef NET_4_5
33 LIB_MCS_FLAGS += -d:HAS_EDI -d:PREFERASYNC -d:PREFER_ASYNC
34 endif
35
36 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
37
38 EXTRA_DISTFILES = more_build_args $(RESX_RESOURCES:.resources=.resx) $(PREBUILT)
39
40 VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
41 ifndef VALID_PROFILE
42 LIBRARY_NAME = dummy-System.System.Reactive.Providers.dll
43 NO_SIGN_ASSEMBLY = yes
44 endif
45
46 NO_INSTALL = yes
47 NO_TEST = yes
48
49 include ../../build/library.make
50
51 $(the_lib): $(RESOURCES)
52
53 $(RESX_RESOURCES): %.resources: %.resx
54         $(RESGEN) $< || cp $@.prebuilt $@
55
56 $(PREBUILT): %.prebuilt: %
57         cp $* $@
58
59 dist-default: $(PREBUILT)
60