[build] Add the assemblies in LIB_REFS to LIB_MCS_FLAGS automatically to reduce dupli...
[mono-project.git] / mcs / class / System.Reactive.Windows.Threading / Makefile
blob7faeb161f571909c9d18e31450a7521fe660a40b
1 thisdir = class/System.Reactive.Windows.Threading
2 SUBDIRS =
3 include ../../build/rules.make
5 LIBRARY = System.Reactive.Windows.Threading.dll
6 LIB_REFS = System System.Core System.Reactive.Interfaces System.Reactive.Core System.Reactive.Linq WindowsBase
7 LIB_MCS_FLAGS = \
8 @more_build_args \
9 -r:WindowsBase.dll
11 ifeq (true, $(GENERATE_RESOURCES))
12 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
13 endif
15 RESX_RESOURCES = \
16 Strings_WindowsThreading.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 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
35 EXTRA_DISTFILES = more_build_args $(RESX_RESOURCES:.resources=.resx) $(PREBUILT)
37 VALID_PROFILE := $(filter net_4_5, $(PROFILE))
38 ifndef VALID_PROFILE
39 LIBRARY_NAME = dummy-System.System.Reactive.Windows.Threading.dll
40 NO_SIGN_ASSEMBLY = yes
41 endif
43 INSTALL_PROFILE := $(filter net_4_5, $(PROFILE))
44 ifndef INSTALL_PROFILE
45 NO_INSTALL = yes
46 endif
48 NO_TEST = yes
50 include ../../build/library.make
52 $(the_lib): $(RESOURCES)
54 $(RESX_RESOURCES): %.resources: %.resx
55 $(RESGEN) $< || cp $@.prebuilt $@
57 $(PREBUILT): %.prebuilt: %
58 cp $* $@
60 dist-default: $(PREBUILT)