[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / class / Mono.Debugger.Soft / Makefile
blob19b601e468938acf6d7906ad7045a005893bdeb9
1 thisdir = class/Mono.Debugger.Soft
2 include ../../build/rules.make
4 LIBRARY = Mono.Debugger.Soft.dll
5 LIBRARY_SNK = ../mono.snk
7 LIB_REFS = System Mono.Cecil System.Core
8 LIB_MCS_FLAGS = /unsafe -D:MONO_DATACONVERTER_STATIC_METHODS -D:ENABLE_CECIL /publicsign
9 KEYFILE = $(LIBRARY_SNK)
11 ifndef MCS_MODE
12 DTEST_APP_FLAGS = -langversion:preview
13 endif
15 TEST_LIB_REFS = Mono.Cecil System System.Core
17 ifneq ($(filter monodroid monotouch monotouch_tv monotouch_watch wasm net_4_x,$(PROFILE)),)
18 test-local: build-dtest
19 endif
21 ifneq ($(filter monodroid monotouch monotouch_tv monotouch_watch wasm,$(PROFILE)),)
22 NO_INSTALL=1
23 NO_BUILD=1
24 NO_TEST=1
25 endif
27 test_output_dir=$(topdir)/class/lib/$(PROFILE)/tests
29 $(test_output_dir):
30 mkdir -p $@
32 build-dtest: $(test_output_dir)/dtest-app.exe $(test_output_dir)/dtest-excfilter.exe $(test_output_dir)/dtest-app-opt.exe
34 $(test_output_dir)/dtest-excfilter.exe: Test/dtest-excfilter.il | $(test_output_dir)
35 $(ILASM) -out:$@ /exe /debug Test/dtest-excfilter.il
37 $(test_output_dir)/dtest-app.exe: Test/dtest-app.cs $(TEST_HELPERS_SOURCES) | $(test_output_dir)
38 $(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Core.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Runtime.CompilerServices.Unsafe.dll -sourcelink:Test/sourcelink.json -out:$@ -unsafe $(PLATFORM_DEBUG_FLAGS) $(DTEST_APP_FLAGS) -optimize- Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
40 $(test_output_dir)/dtest-app-opt.exe: Test/dtest-app-opt.cs $(TEST_HELPERS_SOURCES) | $(test_output_dir)
41 $(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Core.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -sourcelink:Test/sourcelink.json -out:$@ -unsafe $(PLATFORM_DEBUG_FLAGS) $(DTEST_APP_FLAGS) -optimize+ Test/dtest-app-opt.cs $(TEST_HELPERS_SOURCES)
43 TEST_HELPERS_SOURCES = \
44 ../test-helpers/NetworkHelpers.cs \
45 Test/TypeLoadClass.cs
47 EXTRA_DISTFILES = \
48 Test/dtest-app.cs \
49 Test/dtest.cs \
50 Test/dtest-excfilter.il \
51 Test/sourcelink.json \
52 $(TEST_HELPERS_SOURCES)
54 CLEAN_FILES = $(addprefix $(test_output_dir)/, dtest-app.exe dtest-app.exe.mdb dtest-app.pdb dtest-excfilter.exe dtest-excfilter.exe.mdb dtest-excfilter.pdb)
56 include ../../build/library.make