[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / class / Microsoft.Build.Tasks / Makefile
bloba2f6f7c7b554f7f79fa2bbeca5c1d7f3402df3c3
1 thisdir = class/Microsoft.Build.Tasks
2 SUBDIRS =
3 include ../../build/rules.make
5 XBUILD_DIR=$(topdir)/tools/xbuild
6 include $(XBUILD_DIR)/xbuild.make
8 LIBRARY = Microsoft.Build.Tasks.dll
10 LIBRARY_NAME = Microsoft.Build.Tasks$(NAME_SUFFIX).dll
12 LIB_REFS = $(PARENT_PROFILE)System $(PARENT_PROFILE)System.Core $(PARENT_PROFILE)System.Xml $(PARENT_PROFILE)System.Windows.Forms \
13 $(XBUILD_UTILITIES) $(XBUILD_FRAMEWORK) $(XBUILD_ENGINE) $(XBUILD_TASKS)
14 KEYFILE = ../msfinal.pub
16 TEST_RESOURCE_FILES = \
17 Test/resources/test.cs \
18 Test/resources/test.dll \
19 Test/resources/Sample.cs \
20 Test/resources/Sample.vb \
21 Test/resources/junk.txt \
22 Test/resources/binary/FancyStuff.dll \
23 Test/resources/binary/FancyStuff.dll.mdb \
24 Test/resources/binary/SimpleWrite.dll \
25 Test/resources/binary/SimpleWrite.dll.mdb \
26 Test/resources/binary/Testing.dll \
27 Test/resources/binary/Testing.dll.mdb \
28 Test/resources/binary/XbuildReferenceBugTest.exe \
29 Test/resources/binary/XbuildReferenceBugTest.exe.mdb \
30 Test/resources/binary/XbuildReferenceBugTest2.exe
32 TEST_MCS_FLAGS = $(foreach r, $(TEST_RESOURCE_FILES), -resource:$(r),$(r))
33 TEST_LIB_REFS = $(PARENT_PROFILE)System.Xml $(XBUILD_ENGINE) $(XBUILD_FRAMEWORK) $(XBUILD_TASKS) $(XBUILD_UTILITIES) $(PARENT_PROFILE)System.Core
35 TEST_NUNITLITE_APP_CONFIG_RUNTIME=Test/test-config-file-$(PROFILE)
37 ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
38 TEST_LIB_REFS += Microsoft.Build
39 endif
41 EXTRA_DISTFILES = $(filter-out Test/resources/test.dll, $(TEST_RESOURCE_FILES))
43 Test/resources/test.dll: Test/resources/test.cs
44 $(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -target:library /out:$@ $<
46 clean-test-resources:
47 rm -f Test/resources/test.dll
49 test-local: Test/resources/test.dll
51 clean-local: clean-test-resources
53 include $(XBUILD_DIR)/xbuild_test.make
54 include ../../build/library.make