Merge pull request #900 from Blewzman/FixAggregateExceptionGetBaseException
[mono.git] / mcs / class / System.Reactive.Linq / Makefile
1 thisdir = class/System.Reactive.Linq
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Reactive.Linq.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
13 ifeq (true, $(GENERATE_RESOURCES))
14 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
15 endif
16
17 RESX_RESOURCES = \
18         Strings_Linq.resources
19
20 CLEAN_FILES += $(RESX_RESOURCES)
21
22 RESOURCES = $(RESX_RESOURCES)
23
24 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
25
26 ifeq (2.1, $(FRAMEWORK_VERSION))
27 LIB_MCS_FLAGS += -d:NO_TASK_DELAY -d:HAS_AWAIT
28 endif
29
30 NET_4_5 := $(filter 4.5, $(FRAMEWORK_VERSION))
31 ifdef NET_4_5
32 LIB_MCS_FLAGS += -d:HAS_EDI -d:PREFERASYNC -d:PREFER_ASYNC -d:HAS_AWAIT
33 endif
34
35 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
36
37 EXTRA_DISTFILES = more_build_args $(RESX_RESOURCES:.resources=.resx) $(PREBUILT)
38
39 VALID_PROFILE := $(filter monotouch monodroid xammac net_4_0 net_4_5, $(PROFILE))
40 ifndef VALID_PROFILE
41 LIBRARY_NAME = dummy-System.System.Reactive.Linq.dll
42 NO_SIGN_ASSEMBLY = yes
43 endif
44
45 INSTALL_PROFILE := $(filter net_4_5, $(PROFILE))
46 ifndef INSTALL_PROFILE
47 NO_INSTALL = yes
48 endif
49
50 NO_TEST = yes
51
52 include ../../build/library.make
53
54 $(the_lib): $(RESOURCES)
55
56 $(RESX_RESOURCES): %.resources: %.resx
57         $(RESGEN) $< || cp $@.prebuilt $@
58
59 $(PREBUILT): %.prebuilt: %
60         cp $* $@
61
62 dist-default: $(PREBUILT)
63