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