[System] UriKind.RelativeOrAbsolute workaround.
[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                 -r:System.Reactive.Linq.dll
10
11 ifeq (true, $(GENERATE_RESOURCES))
12 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
13 endif
14
15 RESX_RESOURCES = \
16         Strings_PlatformServices.resources
17
18 CLEAN_FILES += $(RESX_RESOURCES)
19
20 RESOURCES = $(RESX_RESOURCES)
21
22 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
23
24 ifeq (2.1, $(FRAMEWORK_VERSION))
25 LIB_MCS_FLAGS += -d:NO_TASK_DELAY -d:HAS_AWAIT
26 endif
27
28 NET_4_5 := $(filter 4.5, $(FRAMEWORK_VERSION))
29 ifdef NET_4_5
30 LIB_MCS_FLAGS += -d:HAS_EDI -d:PREFERASYNC -d:PREFER_ASYNC -d:HAS_AWAIT
31 endif
32
33 NO_TASK_DELAY := $(filter 4.5 2.1, $(FRAMEWORK_VERSION))
34 ifndef NO_TASK_DELAY
35 LIB_MCS_FLAGS += -d:NO_TASK_DELAY
36 endif
37
38 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -r:Mono.Reactive.Tests.dll
39
40 EXTRA_DISTFILES = more_build_args $(RESX_RESOURCES:.resources=.resx) $(PREBUILT)
41
42 VALID_PROFILE := $(filter monotouch monotouch_watch monodroid xammac mobile mobile_static net_4_5, $(PROFILE))
43 ifndef VALID_PROFILE
44 LIBRARY_NAME = dummy-System.System.Reactive.PlatformServices.dll
45 NO_SIGN_ASSEMBLY = yes
46 endif
47
48 INSTALL_PROFILE := $(filter net_4_5, $(PROFILE))
49 ifndef INSTALL_PROFILE
50 NO_INSTALL = yes
51 endif
52
53 NO_TEST = yes
54
55 include ../../build/library.make
56
57 $(the_lib): $(RESOURCES)
58
59 $(RESX_RESOURCES): %.resources: %.resx
60         $(RESGEN) $< || cp $@.prebuilt $@
61
62 $(PREBUILT): %.prebuilt: %
63         cp $* $@
64
65 dist-default: $(PREBUILT)
66