rx: Add -d:HAS_AWAIT options to 4.5 and 2.1 builds.
[mono-project.git] / mcs / class / System.Reactive.PlatformServices / Makefile
blob80e88566ca6d2b1006b7e4a20d63e4097ccff13a
1 thisdir = class/System.Reactive.PlatformServices
2 SUBDIRS =
3 include ../../build/rules.make
5 LIBRARY = System.Reactive.PlatformServices.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
14 ifeq (true, $(GENERATE_RESOURCES))
15 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
16 endif
18 RESX_RESOURCES = \
19 Strings_PlatformServices.resources
21 CLEAN_FILES += $(RESX_RESOURCES)
23 RESOURCES = $(RESX_RESOURCES)
25 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
27 ifeq (2.1, $(FRAMEWORK_VERSION))
28 LIB_MCS_FLAGS += -d:NO_TASK_DELAY -d:HAS_AWAIT
29 endif
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 -d:HAS_AWAIT
34 endif
36 NO_TASK_DELAY := $(filter 4.5 2.1, $(FRAMEWORK_VERSION))
37 ifndef NO_TASK_DELAY
38 LIB_MCS_FLAGS += -d:NO_TASK_DELAY
39 endif
41 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -r:Mono.Reactive.Tests.dll
43 EXTRA_DISTFILES = more_build_args $(RESX_RESOURCES:.resources=.resx) $(PREBUILT)
45 VALID_PROFILE := $(filter monotouch monodroid net_4_0 net_4_5, $(PROFILE))
46 ifndef VALID_PROFILE
47 LIBRARY_NAME = dummy-System.System.Reactive.PlatformServices.dll
48 NO_SIGN_ASSEMBLY = yes
49 endif
51 INSTALL_PROFILE := $(filter net_4_5, $(PROFILE))
52 ifndef INSTALL_PROFILE
53 NO_INSTALL = yes
54 endif
56 NO_TEST = yes
58 include ../../build/library.make
60 $(the_lib): $(RESOURCES)
62 $(RESX_RESOURCES): %.resources: %.resx
63 $(RESGEN) $< || cp $@.prebuilt $@
65 $(PREBUILT): %.prebuilt: %
66 cp $* $@
68 dist-default: $(PREBUILT)