Skip to content

Commit

Permalink
ci,windows: copy and adapt powershell scripts for win-builds
Browse files Browse the repository at this point in the history
Roughly adapted from libiio.

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Dec 22, 2020
1 parent f1d21d6 commit bc1ac92
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CI/build_win.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

$COMPILER=$Env:COMPILER
$ARCH=$Env:ARCH

$src_dir=$pwd

if (!(Test-Path build)) {
mkdir build
}
cd build

cmake -G "$COMPILER" -A "$ARCH" `
-DLIBIIO_LIBRARIES:FILEPATH=$pwd\libiio.lib `
-DLIBIIO_INCLUDEDIR:PATH=$pwd `
-DCMAKE_CONFIGURATION_TYPES=Release `
..

cmake --build . --config Release
6 changes: 6 additions & 0 deletions CI/install_deps_win.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

# Note: InnoSetup is already installed on Azure images; so don't run this step
# Running choco seems a bit slow; seems to save about 40-60 seconds here
#choco install InnoSetup

set PATH=%PATH%;"C:\Program Files (x86)\Inno Setup 6"

0 comments on commit bc1ac92

Please sign in to comment.