[Facades] Build netstandard.dll by default (#4501)
[mono.git] / mcs / class / Facades / System.Drawing.Primitives / Makefile
1 MCS_BUILD_DIR = ../../../build
2
3 thisdir = class/Facades/System.Drawing.Primitives
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 = System.Drawing.Primitives.dll
11
12 KEY_FILE = ../../msfinal.pub
13 SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
14 LIB_REFS = System
15 LIB_MCS_FLAGS = $(SIGN_FLAGS) $(EXTRA_LIB_MCS_FLAGS)
16
17 # xammac_net_4_5 and the testing_* profiles are special, they don't build
18 # System.Drawing.dll or equivalent neither in Mono nor in the XM repo.
19 # For now we embed the types directly here.
20 # TODO: find a better solution.
21 EMBEDDED_DRAWING_DEP := $(filter xammac_net_4_5 testing_aot_full testing_aot_hybrid, $(PROFILE))
22
23 ifndef EMBEDDED_DRAWING_DEP
24
25 # profiles which build a System.Drawing.dll in the repo
26 REPO_DRAWING_DEP := $(filter net_4_x orbis winaot, $(PROFILE))
27
28 ifdef REPO_DRAWING_DEP
29 LIB_REFS += System.Drawing
30 else
31 # When System.Drawing.dll is not built in the Mono repo but in
32 # the product repo like in the XI/XA case we need to pass in a reference
33 # to the assembly containing drawing types like Rectangle etc. from there.
34 # This needs to be passed in via EXTERNAL_FACADE_DRAWING_REFERENCE.
35 LIB_MCS_FLAGS += /r:$(EXTERNAL_FACADE_DRAWING_REFERENCE)
36 endif
37
38 endif
39
40 PLATFORM_DEBUG_FLAGS =
41
42 NO_TEST = yes
43
44 include $(MCS_BUILD_DIR)/library.make