1a3d4aa9a6
Build scripts and powershell-simple.cs were refactored to work with the patch to CoreCLR and updated hosting code. - Paths in Makefile were fixed because the hosting code runs the assembly from the current working directory (usually app_base) - runps scripts were all fixed because the hosting code CLI changed - powershell-simple.cs was cleaned up because its Main function is now directly executed - monad submodule was repinned while we had the change - monad-ext submodule was updated with rebuild CoreCLR binaries - monad-native submodule was repinned to development, including fixed test and hosting code changes
21 lines
1.2 KiB
Makefile
21 lines
1.2 KiB
Makefile
# 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=../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=dotnetlibs/System.Management.Automation.dll dotnetlibs/Microsoft.PowerShell.Commands.Management.dll dotnetlibs/$(ASSEMBLY_LOAD_CONTEXT_TARGET)
|
|
POWERSHELL_RUN_REFS=$(addprefix -r:,$(POWERSHELL_RUN_DEPS))
|
|
|
|
POWERSHELL_RUN_TARGETS=dotnetlibs/powershell-run.exe dotnetlibs/powershell-simple.exe dotnetlibs/libps.so
|
|
|
|
dotnetlibs/powershell-run.exe: $(POWERSHELL_RUN_SRCS) $(POWERSHELL_RUN_DEPS)
|
|
$(CSC) -out:$@ -noconfig -nostdlib -target:exe $(POWERSHELL_RUN_REFS) $(COREREF) $(POWERSHELL_RUN_SRCS)
|
|
|
|
dotnetlibs/powershell-simple.exe: $(POWERSHELL_SIMPLE_SRCS) $(POWERSHELL_RUN_DEPS)
|
|
$(CSC) -out:$@ -noconfig -nostdlib -target:exe $(POWERSHELL_RUN_REFS) $(COREREF) $(POWERSHELL_SIMPLE_SRCS)
|