[bcl] Sync recent NS2.1 changes (#15696)
[mono-project.git] / mcs / class / Mono.Debugger.Soft / Makefile
blobe5b67d2b9beb0c5af35451b59877e5212a442f7d
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 TEST_LIB_REFS = Mono.Cecil System System.Core
13 ifneq ($(filter monodroid monotouch monotouch_tv monotouch_watch wasm net_4_x,$(PROFILE)),)
14 test-local: build-dtest
15 endif
17 ifneq ($(filter monodroid monotouch monotouch_tv monotouch_watch wasm,$(PROFILE)),)
18 NO_INSTALL=1
19 NO_BUILD=1
20 NO_TEST=1
21 endif
23 test_output_dir=$(topdir)/class/lib/$(PROFILE)/tests
25 $(test_output_dir):
26 mkdir -p $@
28 build-dtest: $(test_output_dir)/dtest-app.exe $(test_output_dir)/dtest-excfilter.exe
30 $(test_output_dir)/dtest-excfilter.exe: Test/dtest-excfilter.il | $(test_output_dir)
31 $(ILASM) -out:$@ /exe /debug Test/dtest-excfilter.il
33 $(test_output_dir)/dtest-app.exe: Test/dtest-app.cs $(TEST_HELPERS_SOURCES) | $(test_output_dir)
34 $(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) -optimize- Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
36 TEST_HELPERS_SOURCES = \
37 ../test-helpers/NetworkHelpers.cs \
38 Test/TypeLoadClass.cs
40 EXTRA_DISTFILES = \
41 Test/dtest-app.cs \
42 Test/dtest.cs \
43 Test/dtest-excfilter.il \
44 Test/sourcelink.json \
45 $(TEST_HELPERS_SOURCES)
47 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)
49 include ../../build/library.make