0333c27f2e74bd531e34c5af1666da5275c76ed4
[mono.git] / mcs / class / System.Reactive.PlatformServices / Makefile
1 thisdir = class/System.Reactive.PlatformServices
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Reactive.PlatformServices.dll
6 LIB_REFS = System System.Core System.Reactive.Interfaces System.Reactive.Core System.Reactive.Linq
7 LIB_MCS_FLAGS = \
8                 @more_build_args
9
10 ifeq (true, $(GENERATE_RESOURCES))
11 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
12 endif
13
14 RESX_RESOURCES = \
15         Strings_PlatformServices.resources
16
17 CLEAN_FILES += $(RESX_RESOURCES)
18
19 RESOURCES = $(RESX_RESOURCES)
20
21 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
22
23 ifeq (2.1, $(FRAMEWORK_VERSION))
24 LIB_MCS_FLAGS += -d:NO_TASK_DELAY -d:HAS_AWAIT
25 endif
26
27 NET_4_5 := $(filter 4.5, $(FRAMEWORK_VERSION))
28 ifdef NET_4_5
29 LIB_MCS_FLAGS += -d:HAS_EDI -d:PREFERASYNC -d:PREFER_ASYNC -d:HAS_AWAIT
30 endif
31
32 NO_TASK_DELAY := $(filter 4.5 2.1, $(FRAMEWORK_VERSION))
33 ifndef NO_TASK_DELAY
34 LIB_MCS_FLAGS += -d:NO_TASK_DELAY
35 endif
36
37 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
38 TEST_LIB_REFS = Mono.Reactive.Tests
39
40 EXTRA_DISTFILES = more_build_args $(RESX_RESOURCES:.resources=.resx) $(PREBUILT)
41
42 INSTALL_PROFILE := $(filter net_4_x, $(PROFILE))
43 ifndef INSTALL_PROFILE
44 NO_INSTALL = yes
45 endif
46
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