forked from mmOnsemi/strata-host-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap-host.bat
More file actions
80 lines (65 loc) · 3.1 KB
/
bootstrap-host.bat
File metadata and controls
80 lines (65 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
::=============================================================================
:: Copyright (c) 2018-2021 onsemi.
::
:: All rights reserved. This software and/or documentation is licensed by onsemi under
:: limited terms and conditions. The terms and conditions pertaining to the software and/or
:: documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf (“onsemi Standard
:: Terms and Conditions of Sale, Section 8 Software”).
::=============================================================================
@echo off
REM
REM Simple build script for all 'host' targets
REM Notes:
REM - in PowerShell invoke: "set-executionpolicy remotesigned" and select 'All'
REM
setlocal
echo "======================================================================="
echo " Preparing environment.."
echo "======================================================================="
echo Setting up environment for Qt usage..
set PATH=C:\dev\Qt\5.12.10\msvc2017_64\bin;%PATH%
echo Setting up environment for OpenSSL usage..
set PATH=C:\dev\Qt\Tools\OpenSSL\Win_x64\bin;%PATH%
echo Setting up environment for Qt IFW usage..
set PATH=C:\dev\Qt\Tools\QtInstallerFramework\3.2\bin;%PATH%
echo Setting up environment for 'JOM' usage..
set PATH="C:\dev\Qt\Tools\QtCreator\bin";%PATH%
echo Setting up environment for CMake usage..
set PATH="C:\Program Files\CMake\bin";%PATH%
echo Setting up 'x64 Native Tools Command Prompt for VS 2017'
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
echo "-----------------------------------------------------------------------------"
echo "Build env. setup:"
echo "-----------------------------------------------------------------------------"
cmake --version
echo "-----------------------------------------------------------------------------"
qmake --version
echo "======================================================================="
echo " Preparing sandbox.."
echo "======================================================================="
REM rd /s /q build-host
if not exist build-host md build-host
echo "-----------------------------------------------------------------------------"
echo "Actual/local branch list.."
echo "-----------------------------------------------------------------------------"
git --no-pager branch
echo "======================================================================="
echo " Updating Git submodules.."
echo "======================================================================="
git submodule update --init --recursive
echo "======================================================================="
echo " Generating project.."
echo "======================================================================="
cd build-host
cmake -G "NMake Makefiles JOM" ^
-DCMAKE_BUILD_TYPE=Debug ^
..
REM cmake -G "Visual Studio 15 2017 Win64" ^
REM -T v141 ^
REM ..
echo "======================================================================="
echo " Compiling.."
echo "======================================================================="
cmake --build . -- -j %NUMBER_OF_PROCESSORS%
REM cmake --build . --config Debug
endlocal