Merge pull request #4670 from BrzVlad/fix-sgen-testing
[mono.git] / mcs / class / Facades / netstandard / Makefile
1 MCS_BUILD_DIR = ../../../build
2
3 thisdir = class/Facades/netstandard
4 SUBDIRS = 
5 include $(MCS_BUILD_DIR)/rules.make
6
7 LIBRARY_SUBDIR = Facades
8 LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)/Facades
9
10 LIBRARY = netstandard.dll
11
12 KEY_FILE = ../../msfinal.pub
13 SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699 /nowarn:618
14 LIB_REFS = System System.Xml System.Xml.Linq System.Runtime.Serialization System.Core System.Numerics System.Numerics.Vectors System.Net.Http System.Transactions \
15 System.IO.Compression System.Data System.ComponentModel.Composition System.IO.Compression.FileSystem System.Runtime.InteropServices.RuntimeInformation \
16 Facades/System.Security.Cryptography.Algorithms Facades/System.Globalization.Extensions Facades/System.Data.Common \
17 Facades/System.Diagnostics.StackTrace Facades/System.Runtime.Serialization.Xml Facades/System.Runtime.Serialization.Primitives \
18 Facades/System.Security.SecureString Facades/System.Threading.Overlapped Facades/System.Xml.XPath.XDocument
19
20 LIB_MCS_FLAGS = $(SIGN_FLAGS) $(EXTRA_LIB_MCS_FLAGS)
21
22 ifeq ($(PROFILE),xammac_net_4_5)
23 LIB_REFS += System.Web.Services
24 else ifeq (2.1, $(FRAMEWORK_VERSION))
25 LIB_REFS += System.Web.Services
26 else
27 LIB_REFS += System.Web
28 endif
29
30 # profiles which build a System.Drawing.dll in the repo
31 REPO_DRAWING_DEP := $(filter net_4_x orbis winaot, $(PROFILE))
32
33 ifdef REPO_DRAWING_DEP
34 LIB_REFS += System.Drawing
35 else
36
37 # xammac_net_4_5 and the testing_* profiles are special, they don't build
38 # System.Drawing.dll or equivalent neither in Mono nor in the XM repo.
39 # For now we typeforward the drawing types to the System.Drawing.Primitives.dll
40 # facade where they are embedded.
41 # TODO: find a better solution.
42 EMBEDDED_DRAWING_DEP := $(filter xammac_net_4_5 testing_aot_full testing_aot_hybrid, $(PROFILE))
43
44 ifdef EMBEDDED_DRAWING_DEP
45 LIB_REFS += Facades/System.Drawing.Primitives
46 else
47 # When System.Drawing.dll is not built in the Mono repo but in
48 # the product repo like in the XI/XA case we need to pass in a reference
49 # to the assembly containing drawing types like Rectangle etc. from there.
50 # This needs to be passed in via EXTERNAL_FACADE_DRAWING_REFERENCE.
51 LIB_MCS_FLAGS += /r:$(EXTERNAL_FACADE_DRAWING_REFERENCE)
52 endif
53
54 endif
55
56 PLATFORM_DEBUG_FLAGS =
57
58 NO_TEST = yes
59
60 include $(MCS_BUILD_DIR)/library.make
61
62