1 MCS_BUILD_DIR = ../../../build
3 thisdir = class/Facades/System.Drawing.Primitives
5 include $(MCS_BUILD_DIR)/rules.make
7 LIBRARY_SUBDIR = Facades
8 LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)/Facades
10 LIBRARY = System.Drawing.Primitives.dll
12 KEY_FILE = ../../msfinal.pub
13 SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
15 LIB_MCS_FLAGS = $(SIGN_FLAGS) $(EXTRA_LIB_MCS_FLAGS)
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))
23 ifndef EMBEDDED_DRAWING_DEP
25 # profiles which build a System.Drawing.dll in the repo
26 REPO_DRAWING_DEP := $(filter net_4_x orbis winaot, $(PROFILE))
28 ifdef REPO_DRAWING_DEP
29 LIB_REFS += System.Drawing
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)
40 PLATFORM_DEBUG_FLAGS =
44 include $(MCS_BUILD_DIR)/library.make