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
)
12 DTEST_APP_FLAGS
= -langversion
:preview
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
21 ifneq ($(filter monodroid monotouch monotouch_tv monotouch_watch wasm
,$(PROFILE
)),)
27 test_output_dir
=$(topdir
)/class
/lib
/$(PROFILE
)/tests
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 \
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