rx: Add -d:HAS_AWAIT options to 4.5 and 2.1 builds.
[mono-project.git] / mcs / class / System.Reactive.Windows.Forms / Makefile
blobbc427b92a19e358efaa0acc2e53a41d36f646e31
1 thisdir = class/System.Reactive.Windows.Forms
2 SUBDIRS =
3 include ../../build/rules.make
5 LIBRARY = System.Reactive.Windows.Forms.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 -r:System.Windows.Forms.dll
15 ifeq (2.1, $(FRAMEWORK_VERSION))
16 LIB_MCS_FLAGS += -d:NO_TASK_DELAY -d:HAS_AWAIT
17 endif
19 NET_4_5 := $(filter 4.5, $(FRAMEWORK_VERSION))
20 ifdef NET_4_5
21 LIB_MCS_FLAGS += -d:HAS_EDI -d:PREFERASYNC -d:PREFER_ASYNC -d:HAS_AWAIT
22 endif
24 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
26 EXTRA_DISTFILES = more_build_args
28 VALID_PROFILE := $(filter net_4_0 net_4_5, $(PROFILE))
29 ifndef VALID_PROFILE
30 LIBRARY_NAME = dummy-System.System.Reactive.Windows.Forms.dll
31 NO_SIGN_ASSEMBLY = yes
32 endif
34 INSTALL_PROFILE := $(filter net_4_5, $(PROFILE))
35 ifndef INSTALL_PROFILE
36 NO_INSTALL = yes
37 endif
39 NO_TEST = yes
41 include ../../build/library.make