-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* readme & make * update * cloc update
- Loading branch information
Showing
9 changed files
with
79 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,45 @@ | ||
# how to build and run | ||
## gcc | ||
### build.sh | ||
**build & 1st run** | ||
|
||
requires | ||
- make | ||
- gcc | ||
|
||
call help | ||
## linux make / gcc | ||
### simple make | ||
````shell | ||
DSTW/make$> ./build.sh -h | ||
DSTW/make$> make clean | ||
DSTW/make$> make -j | ||
```` | ||
then call to build and run, e.g. | ||
- find binaries in build/linux/bin folder | ||
````shell | ||
DSTW/make$> ./build.sh -cr | ||
DSTW/make$> cd ../build/linux/bin | ||
DSTW/build/linux/bin$> ls | ||
```` | ||
### runGcov.sh | ||
**check coverage** | ||
|
||
requires | ||
- gcov | ||
- (coverage binary has run) | ||
|
||
call help | ||
### buildAndRun.sh | ||
````shell | ||
DSTW/make$> ./runGcov.sh -h | ||
DSTW/make$> ./buildAndRun.sh | ||
```` | ||
then call to check coverage, e.g. | ||
### run gcov | ||
````shell | ||
DSTW/make$> ./runGcov.sh -s | ||
DSTW/make$> ./runGcov.sh | ||
```` | ||
|
||
### runSystemTests.sh | ||
**run system tests** | ||
|
||
requires | ||
- gcov | ||
- binaries built | ||
|
||
### buid & run system tests | ||
````shell | ||
DSTW/make$> ./runSystemTests.sh | ||
```` | ||
## msbuild / visual studio | ||
- requires [premake5](https://premake.github.io/) | ||
|
||
## Visual Studio build | ||
### preconditions | ||
- [premake5](https://premake.github.io/) available | ||
- Visual Studio | ||
|
||
### 1) generate VS solution using premake5 | ||
#### 1.1) find out suitable VS version using premake5 --help | ||
|
||
### create solution for your VS version | ||
````shell | ||
D:\git\DSTW\make> premake5 --help | ||
Usage: premake5 [options] action [arguments] | ||
|
||
OPTIONS - General | ||
--file=FILE Read FILE as a Premake script; default is 'premake5.lua' | ||
|
||
ACTIONS | ||
vs2005 Generate Visual Studio 2005 project files | ||
... | ||
vs2022 Generate Visual Studio 2022 project files | ||
DSTW\make> premake5 --help | ||
DSTW\make> premake5 vsNNNN | ||
```` | ||
#### 1.2) generate solution with your VS version | ||
e.g. VS 2019 | ||
### just build | ||
````shell | ||
D:\git\DSTW\make> premake5 --file=premake5_vs.lua vs2019 | ||
Building configurations... | ||
Running action 'vs2019'... | ||
Generated tests.sln... | ||
... | ||
Done (143ms). | ||
DSTW\make> msbuild -m dstw.sln | ||
```` | ||
- find binaries in build/windows folder | ||
````shell | ||
DSTW\make> cd ../build/windows | ||
DSTW\build\windows> dir /B *.exe | ||
```` | ||
### build & run system tests | ||
````shell | ||
DSTW\make> ./runSystemTests.cmd | ||
```` | ||
### 2) build executables in VS | ||
#### 2.1) build and run module tests | ||
- open _tests.sln_ | ||
- build and run | ||
|
||
#### 2.2) build and run system tests | ||
- open _dstw_system.sln_ | ||
- build | ||
- run _runSystemTests.cmd_ e.g. from Powershell | ||
|
||
```powershell | ||
PS ...\DSTW\make> .\runSystemTests.cmd | ||
``` | ||
|
||
### 3) VS keyboard shortcuts | ||
- build: [CTRL] [shift] [B] | ||
- (build and) run: [CTRL] [F5] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.