You've already forked linux-packaging-mono
Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
parent
e49d6f06c0
commit
536cd135cc
@@ -2,21 +2,43 @@ thisdir = tools/linker
|
||||
SUBDIRS =
|
||||
include ../../build/rules.make
|
||||
|
||||
RESOURCES = \
|
||||
Descriptors/mscorlib.xml \
|
||||
Descriptors/System.xml \
|
||||
Descriptors/System.Core.xml \
|
||||
Descriptors/System.Drawing.xml \
|
||||
Descriptors/System.Web.xml \
|
||||
Descriptors/Mono.Posix.xml \
|
||||
|
||||
PROGRAM = monolinker.exe
|
||||
|
||||
$(PROGRAM): $(RESOURCES)
|
||||
|
||||
LIB_REFS = System System.Core System.Xml Mono.Cecil
|
||||
LOCAL_MCS_FLAGS = $(RESOURCES:%=-resource:%)
|
||||
|
||||
EXTRA_DISTFILES = $(RESOURCES)
|
||||
TEST_CASES = \
|
||||
mscorlib/test-array.cs
|
||||
|
||||
ifndef AOT_FRIENDLY_PROFILE
|
||||
TEST_CASES += \
|
||||
mscorlib/test-reflection.cs
|
||||
endif
|
||||
|
||||
TESTS_COMPILER = $(MCS) -nologo -noconfig -debug:portable -r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/mscorlib.dll
|
||||
|
||||
check: compile-tests
|
||||
$(MAKE) run-tests
|
||||
|
||||
compile-tests: $(TEST_CASES)
|
||||
|
||||
mscorlib/test-%.cs:
|
||||
$(TESTS_COMPILER) Tests/$@ /out:Tests/$(@:.cs=.exe)
|
||||
|
||||
run-tests: $(TEST_CASES:.cs=.exe)
|
||||
|
||||
LINKER_OUTPUT := illink-output-$(PROFILE_DIRECTORY)
|
||||
PROFILE_PATH = $(topdir)/class/lib/$(PROFILE_DIRECTORY)
|
||||
LINKER = MONO_PATH=$(topdir)/class/lib/$(BUILD_TOOLS_PROFILE) $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/monolinker.exe -c link -out $(LINKER_OUTPUT) -b true -d $(PROFILE_PATH)
|
||||
TEST_EXEC = MONO_PATH=$(LINKER_OUTPUT) $(RUNTIME) $(RUNTIME_FLAGS) --debug -O=-aot
|
||||
|
||||
.NOTPARALLEL:
|
||||
|
||||
mscorlib/test-%.exe:
|
||||
@rm -rf $(LINKER_OUTPUT)
|
||||
@mkdir $(LINKER_OUTPUT)
|
||||
@echo Testing $@
|
||||
$(LINKER) -a Tests/$@
|
||||
$(TEST_EXEC) $(LINKER_OUTPUT)/$(@F)
|
||||
@rm -rf $(LINKER_OUTPUT)
|
||||
|
||||
include ../../build/executable.make
|
||||
|
||||
Reference in New Issue
Block a user