2014-08-13 10:39:27 +01:00
|
|
|
thisdir = tools/mono-shlib-cop
|
|
|
|
SUBDIRS =
|
|
|
|
include ../../build/rules.make
|
|
|
|
|
2016-08-03 10:59:49 +00:00
|
|
|
LOCAL_MCS_FLAGS =
|
|
|
|
LIB_REFS = Mono.Posix System System.Xml
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
PROGRAM = mono-shlib-cop.exe
|
|
|
|
|
|
|
|
TEST_INPUT = test.dll
|
|
|
|
|
|
|
|
EXTRA_DISTFILES = test.cs
|
|
|
|
|
|
|
|
include ../../build/executable.make
|
|
|
|
|
|
|
|
clean-local: cleanup
|
|
|
|
|
|
|
|
cleanup:
|
|
|
|
-rm -f $(TEST_INPUT)
|
|
|
|
|
|
|
|
run-test-local: run-mono-shlib-cop-test
|
|
|
|
|
|
|
|
run-mono-shlib-cop-test: $(the_lib) $(TEST_INPUT)
|
2019-04-12 14:10:50 +00:00
|
|
|
ifeq ($(HOST_PLATFORM),linux)
|
2014-09-04 09:07:35 +01:00
|
|
|
MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(the_lib) $(TEST_INPUT) | diff - test.dll.out
|
2019-04-12 14:10:50 +00:00
|
|
|
else
|
|
|
|
@echo "mono-shlib-cop currently only works on Linux, skipping tests."
|
|
|
|
endif
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
$(TEST_INPUT) : test.cs
|
2019-04-12 14:10:50 +00:00
|
|
|
$(CSCOMPILE) -target:library -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll $< -out:$@
|