Skip to content

Commit

Permalink
test for building out of precompiled binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
KnicKnic committed Jul 7, 2019
1 parent 8ce4c80 commit 06e5dc6
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 8 deletions.
7 changes: 7 additions & 0 deletions my_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ copy /y ..\native-powershell\host.h .
copy /y ..\native-powershell\x64\Release\psh_host.dll .



cp .\native-powershell\host.h .\native-powershell\native-powershell-bin\
cp .\native-powershell\x64\Release\psh_host.dll .\native-powershell\native-powershell-bin\
cp .\native-powershell\x64\Release\psh_host.pdb .\native-powershell\native-powershell-bin\
cp .\native-powershell\x64\Release\psh_host.lib .\native-powershell\native-powershell-bin\


copy /y native-powershell\host.h .\pkg\powershell\
copy /y native-powershell\x64\Release\psh_host.dll .\pkg\powershell

Expand Down
2 changes: 1 addition & 1 deletion native-powershell
2 changes: 1 addition & 1 deletion pkg/powershell/chelpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
/*
#cgo CFLAGS: -I.
#cgo LDFLAGS: ${SRCDIR}/psh_host.dll
#cgo LDFLAGS: ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll
#include <stddef.h>
Expand Down
2 changes: 1 addition & 1 deletion pkg/powershell/hostcommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package powershell
/*
#cgo CFLAGS: -I.
#cgo LDFLAGS: ${SRCDIR}/psh_host.dll
#cgo LDFLAGS: ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll
#include <stddef.h>
Expand Down
2 changes: 1 addition & 1 deletion pkg/powershell/powershell.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stddef.h>
#include "powershell.h"
#include "host.h"
#include "./../../native-powershell/native-powershell-bin/host.h"

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion pkg/powershell/powershell.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
/*
#cgo CFLAGS: -I.
#cgo LDFLAGS: ${SRCDIR}/psh_host.dll
#cgo LDFLAGS: ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll
#include <stddef.h>
Expand Down
2 changes: 1 addition & 1 deletion pkg/powershell/powershell.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include "host.h"
#include "./../../native-powershell/native-powershell-bin/host.h"
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/powershell/powershellobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package powershell
/*
#cgo CFLAGS: -I.
#cgo LDFLAGS: ${SRCDIR}/psh_host.dll
#cgo LDFLAGS: ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll
#include <stddef.h>
Expand Down
2 changes: 1 addition & 1 deletion pkg/powershell/runspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package powershell
/*
#cgo CFLAGS: -I.
#cgo LDFLAGS: ${SRCDIR}/psh_host.dll
#cgo LDFLAGS: ${SRCDIR}/../../native-powershell/native-powershell-bin/psh_host.dll
#include <stddef.h>
Expand Down
5 changes: 5 additions & 0 deletions scripts/update_bin.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

cp .\native-powershell\host.h .\native-powershell\native-powershell-bin\
cp .\native-powershell\x64\Release\psh_host.dll .\native-powershell\native-powershell-bin\
cp .\native-powershell\x64\Release\psh_host.pdb .\native-powershell\native-powershell-bin\
cp .\native-powershell\x64\Release\psh_host.lib .\native-powershell\native-powershell-bin\

0 comments on commit 06e5dc6

Please sign in to comment.