Move custom host Makefile out of monad-build
This commit is contained in:
parent
e378bb7f7d
commit
d12052cdc0
2 changed files with 19 additions and 1 deletions
18
src/host/host.mk
Normal file
18
src/host/host.mk
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# This is the makefile for all kinds of powershell hosts
|
||||||
|
#
|
||||||
|
# Currently there is powershell-run.exe, which is a very generic interactive and
|
||||||
|
# non-interactive host
|
||||||
|
|
||||||
|
POWERSHELL_RUN_FOLDER=$(MONAD)/src/powershell-run
|
||||||
|
POWERSHELL_RUN_SRCS=$(addprefix $(POWERSHELL_RUN_FOLDER)/, main.cs host.cs ui.cs rawui.cs readline.cs powershell-run.assembly-info.cs)
|
||||||
|
POWERSHELL_SIMPLE_SRCS=$(addprefix $(POWERSHELL_RUN_FOLDER)/, powershell-simple.cs powershell-simple.assembly-info.cs)
|
||||||
|
|
||||||
|
# direct dependencies to be linked in
|
||||||
|
POWERSHELL_RUN_DEPS=$(addprefix $(PSLIB)/, System.Management.Automation.dll Microsoft.PowerShell.Commands.Management.dll $(ASSEMBLY_LOAD_CONTEXT_TARGET))
|
||||||
|
POWERSHELL_RUN_REFS=$(addprefix -r:, $(POWERSHELL_RUN_DEPS))
|
||||||
|
|
||||||
|
$(PSLIB)/powershell-run.exe: $(POWERSHELL_RUN_SRCS) $(POWERSHELL_RUN_DEPS)
|
||||||
|
$(CSC) -out:$@ -noconfig -nostdlib -target:exe $(POWERSHELL_RUN_REFS) $(COREREF) $(POWERSHELL_RUN_SRCS)
|
||||||
|
|
||||||
|
$(PSLIB)/powershell-simple.exe: $(POWERSHELL_SIMPLE_SRCS) $(POWERSHELL_RUN_DEPS)
|
||||||
|
$(CSC) -out:$@ -noconfig -nostdlib -target:exe $(POWERSHELL_RUN_REFS) $(COREREF) $(POWERSHELL_SIMPLE_SRCS)
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2b2ea2820b2dfce1742e4e81023dde9c324f9fa9
|
Subproject commit 658ea2625dbeecdd8be73aef16d5497292ee71e6
|
Loading…
Reference in a new issue