2017-04-10 11:41:01 +00:00
|
|
|
thisdir = packages
|
|
|
|
include ../build/rules.make
|
|
|
|
|
|
|
|
ROSLYN_CSC_DIR = $(dir $(CSC_LOCATION))
|
|
|
|
|
2017-08-21 15:34:15 +00:00
|
|
|
ROSLYN_FILES_FOR_MONO = \
|
2017-04-10 11:41:01 +00:00
|
|
|
$(ROSLYN_CSC_DIR)/csc.exe \
|
|
|
|
$(ROSLYN_CSC_DIR)/csc.rsp \
|
|
|
|
$(ROSLYN_CSC_DIR)/csc.exe.config \
|
2017-08-21 15:34:15 +00:00
|
|
|
$(ROSLYN_CSC_DIR)/csi.exe \
|
|
|
|
$(ROSLYN_CSC_DIR)/csi.exe.config \
|
|
|
|
$(ROSLYN_CSC_DIR)/csi.rsp \
|
2018-02-06 19:15:47 +00:00
|
|
|
$(ROSLYN_CSC_DIR)/vbc.exe \
|
|
|
|
$(ROSLYN_CSC_DIR)/vbc.exe.config \
|
|
|
|
$(ROSLYN_CSC_DIR)/vbc.rsp \
|
2017-04-10 11:41:01 +00:00
|
|
|
$(ROSLYN_CSC_DIR)/Microsoft.CodeAnalysis.CSharp.dll \
|
2017-08-21 15:34:15 +00:00
|
|
|
$(ROSLYN_CSC_DIR)/Microsoft.CodeAnalysis.CSharp.Scripting.dll \
|
|
|
|
$(ROSLYN_CSC_DIR)/Microsoft.CodeAnalysis.VisualBasic.dll \
|
2017-04-10 11:41:01 +00:00
|
|
|
$(ROSLYN_CSC_DIR)/Microsoft.CodeAnalysis.dll \
|
2017-08-21 15:34:15 +00:00
|
|
|
$(ROSLYN_CSC_DIR)/Microsoft.CodeAnalysis.Scripting.dll \
|
2017-04-10 11:41:01 +00:00
|
|
|
$(ROSLYN_CSC_DIR)/System.Collections.Immutable.dll \
|
2017-08-21 15:34:15 +00:00
|
|
|
$(ROSLYN_CSC_DIR)/System.Reflection.Metadata.dll \
|
|
|
|
$(ROSLYN_CSC_DIR)/VBCSCompiler.exe \
|
|
|
|
$(ROSLYN_CSC_DIR)/VBCSCompiler.exe.config
|
|
|
|
|
|
|
|
ROSLYN_FILES_TO_COPY_FOR_MSBUILD = \
|
|
|
|
$(ROSLYN_CSC_DIR)/Microsoft.Build.Tasks.CodeAnalysis.dll \
|
|
|
|
$(ROSLYN_CSC_DIR)/Microsoft.CSharp.Core.targets \
|
|
|
|
$(ROSLYN_CSC_DIR)/Microsoft.VisualBasic.Core.targets
|
|
|
|
|
2018-04-24 09:31:23 +00:00
|
|
|
ROSLYN_DIM_FILES = $(topdir)/../external/roslyn-binaries/Prototypes/DefaultInterfaceImplementation/*
|
|
|
|
|
2017-10-19 20:04:20 +00:00
|
|
|
DISTFILES = $(ROSLYN_FILES_FOR_MONO) $(ROSLYN_FILES_TO_COPY_FOR_MSBUILD) csi-test.csx
|
2017-04-10 11:41:01 +00:00
|
|
|
|
|
|
|
ifeq ($(PROFILE), $(DEFAULT_PROFILE))
|
|
|
|
|
|
|
|
TARGET_DIR = $(DESTDIR)$(mono_libdir)/mono/$(FRAMEWORK_VERSION)
|
2017-08-21 15:34:15 +00:00
|
|
|
MSBUILD_ROSLYN_DIR = $(DESTDIR)$(mono_libdir)/mono/msbuild/15.0/bin/Roslyn
|
2017-04-10 11:41:01 +00:00
|
|
|
|
2018-04-24 09:31:23 +00:00
|
|
|
install-local: install-prototypes
|
2017-04-10 11:41:01 +00:00
|
|
|
$(MKINSTALLDIRS) $(TARGET_DIR)
|
2017-08-21 15:34:15 +00:00
|
|
|
$(INSTALL_LIB) $(ROSLYN_FILES_FOR_MONO) $(TARGET_DIR)
|
|
|
|
$(MKINSTALLDIRS) $(MSBUILD_ROSLYN_DIR)
|
|
|
|
$(INSTALL_LIB) $(ROSLYN_FILES_TO_COPY_FOR_MSBUILD) $(MSBUILD_ROSLYN_DIR)
|
|
|
|
|
2017-11-28 19:36:51 +00:00
|
|
|
(cd $(MSBUILD_ROSLYN_DIR); for asm in $(ROSLYN_FILES_FOR_MONO); do ln -fs ../../../../$(FRAMEWORK_VERSION)/$$(basename $$asm) . ; done)
|
2017-04-10 11:41:01 +00:00
|
|
|
|
2018-04-24 09:31:23 +00:00
|
|
|
install-prototypes:
|
|
|
|
$(MKINSTALLDIRS) $(TARGET_DIR)/dim
|
|
|
|
$(INSTALL_LIB) $(ROSLYN_DIM_FILES) $(TARGET_DIR)/dim
|
|
|
|
|
2017-10-19 20:04:20 +00:00
|
|
|
run-test-local: test-csi
|
|
|
|
|
|
|
|
test-csi:
|
|
|
|
MONO_PATH="$(topdir)/class/lib/$(PROFILE)" $(RUNTIME) $(ROSLYN_CSC_DIR)/csi.exe csi-test.csx > csi-test-output.txt
|
|
|
|
cat csi-test-output.txt && grep -q "hello world" csi-test-output.txt
|
|
|
|
rm csi-test-output.txt
|
|
|
|
|
2017-04-10 11:41:01 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
dist-local: dist-default
|