Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ff1d7169817a6558e70eb64e561cbe6f675e7da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
thisdir = class/System
SUBDIRS =
include ../../build/rules.make
export __SECURITY_BOOTSTRAP_DB=$(topdir)/class/lib/$(PROFILE)

LIBRARY = System.dll
LIBRARY_USE_INTERMEDIATE_FILE = yes

# Because System.dll, Mono.Security.dll System.Xml.dll have a cyclic dependency, we need a two-pass build.
# 1st pass - build System.dll without System.Xml.dll or Mono.Security.dll or System.Configuration.dll references
# 2nd pass - build System.dll with System.Xml.dll and Mono.Security.dll or System.Configuration.dll references

TEST_RESOURCES = \
	Test/System/test-uri-props.txt \
	Test/System/test-uri-props-manual.txt \
	Test/System/test-uri-relative-props.txt

TEST_MCS_FLAGS = -r:System.Drawing.dll -r:Mono.Security.dll -nowarn:1595 -nowarn:0618 -nowarn:219 -nowarn:67 -nowarn:169 -nowarn:612 \
	$(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f)))

XML_DEP := System.Xml.dll
XML_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(XML_DEP))
CYCLIC_DEPS := $(XML_DEP)
CYCLIC_DEP_FILES := $(XML_DEP_FILE)

ifeq (2.0, $(FRAMEWORK_VERSION))
# Happens on net_2_0_bootstrap and net_2_0 profiles
SECURITY_DEP := Mono.Security.dll
SECURITY_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(SECURITY_DEP))
CONFIGURATION_DEP := System.Configuration.dll
CONFIGURATION_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(CONFIGURATION_DEP))
CYCLIC_DEPS += $(SECURITY_DEP) $(CONFIGURATION_DEP)
CYCLIC_DEP_FILES += $(SECURITY_DEP_FILE) $(CONFIGURATION_DEP_FILE)
LIB_MCS_FLAGS = -nowarn:618
endif

EXTRA_DISTFILES = \
	System.Text.RegularExpressions/notes.txt	\
	System.ComponentModel.Design/Changelog		\
	Test/test-config-file				\
	$(TEST_RESOURCES)

lib_file := $(wildcard ../lib/$(PROFILE)/System.dll)
ifndef lib_file
USE_BOOT_COMPILE = yes
endif

ifeq (net_2_0, $(PROFILE))
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
endif

ifdef USE_BOOT_COMPILE
LIBRARY_COMPILE = $(BOOT_COMPILE)
endif

ifneq ($(CYCLIC_DEPS:%=../lib/$(PROFILE)/%), $(CYCLIC_DEP_FILES))
NO_SIGN_ASSEMBLY = yes
NO_INSTALL = yes
all-local: echo-warning
.PHONY: echo-warning

ifeq   (, $(strip $(CYCLIC_DEP_FILES)))
echo-warning:
	@echo "** Warning: System.dll built without parts that depend on: $(CYCLIC_DEPS)"
else     # defined CYCLIC_DEP_FILES
ifdef      SECURITY_DEP_FILE
echo-warning:
	@echo "** Warning: built System.dll with 'Mono.Security.dll'-dependent parts"
	@echo "** Warning: ... without 'System.Xml.dll' present: it may not be usable"
	@echo "** Warning: ... without 'System.Configuration.dll' present: it may not be usable"
else
echo-warning:
	@echo "** Warning: System.dll built without parts that depend on Mono.Security.dll"
endif
endif
endif

include ../../build/library.make

ifdef XML_DEP_FILE
LIB_MCS_FLAGS += /define:XML_DEP /r:$(XML_DEP)
$(the_lib): $(XML_DEP_FILE)
endif

ifdef SECURITY_DEP_FILE
LIB_MCS_FLAGS += /define:SECURITY_DEP -r:Mono.Security.dll
$(the_lib): $(SECURITY_DEP_FILE)
endif

ifdef CONFIGURATION_DEP_FILE
LIB_MCS_FLAGS += /define:CONFIGURATION_DEP /r:$(CONFIGURATION_DEP) /r:PrebuiltSystem=$(topdir)/class/lib/$(PROFILE)/System.dll
$(the_lib): $(CONFIGURATION_DEP_FILE)
endif

$(test_lib): $(test_lib).config $(TEST_RESOURCES)

$(test_lib).config: Test/test-config-file
	cp $< $@

CLEAN_FILES = $(test_lib).config