[build] Add the assemblies in LIB_REFS to LIB_MCS_FLAGS automatically to reduce dupli...
[mono-project.git] / mcs / class / System.Reactive.PlatformServices / Makefile
blob9192c21468a1e9a7453c7b56b965a259a4d4e325
1 thisdir = class/System.Reactive.PlatformServices
2 SUBDIRS =
3 include ../../build/rules.make
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
11 ifeq (true, $(GENERATE_RESOURCES))
12 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
13 endif
15 RESX_RESOURCES = \
16 Strings_PlatformServices.resources
18 CLEAN_FILES += $(RESX_RESOURCES)
20 RESOURCES = $(RESX_RESOURCES)
22 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
24 ifeq (2.1, $(FRAMEWORK_VERSION))
25 LIB_MCS_FLAGS += -d:NO_TASK_DELAY -d:HAS_AWAIT
26 endif
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
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
38 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -r:Mono.Reactive.Tests.dll
40 EXTRA_DISTFILES = more_build_args $(RESX_RESOURCES:.resources=.resx) $(PREBUILT)
42 VALID_PROFILE := $(filter monotouch 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
48 INSTALL_PROFILE := $(filter net_4_5, $(PROFILE))
49 ifndef INSTALL_PROFILE
50 NO_INSTALL = yes
51 endif
53 NO_TEST = yes
55 include ../../build/library.make
57 $(the_lib): $(RESOURCES)
59 $(RESX_RESOURCES): %.resources: %.resx
60 $(RESGEN) $< || cp $@.prebuilt $@
62 $(PREBUILT): %.prebuilt: %
63 cp $* $@
65 dist-default: $(PREBUILT)