-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* preparing for v0.3.0 * rebase * add clearLine method. fix #42 * update readme. fix #121 * for loop refactor in a C++ way * refactor _setCharAtCursorPosition name * refactor clearLine * add fill method. Fix #113 * decouple VgaTerminal drawing functionality to Window. Fix #122 * cursor blinking flag. Fix #39 * cursor speed from enum class, partially fix #38 * [cmake] macro to generate example. Fix #126 * update version string to 0.3.0 fixes #129 * build switch for precise timer,fixes #131 cursor blinking test macOS * replace -fPIC with CMAKE_POSITION_INDEPENDENT_CODE flag. fix #132 * [appveyor | macOS] disable precise timer fix #131 * [TuiTerminal] phase 1 ver 0.1-showcase and example. Fixes #133 * [cmake] using GoogleTest module and macro for test. Fixes#128 * TODOs review * define specific runtime_error exception. Fixes # 139 * fixes #91 * [wont fix] snapshot testing on CI. Fixes #141 * publish test report and code coverage on analysis pipeline. Fixes #143 * publish test reports even if test task failed. Fixes #130 * add .gittribute * [lint] line ending LF * [lint] replace TABS with SPACES * [lint] end line LF. [azure-pipelines] cpplint analisys * [azure-pipelines] add cpplint job. Fixes #140 * compilers warning fixes #146 * Apply suggestions from code review
- Loading branch information
Showing
49 changed files
with
3,944 additions
and
2,796 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* text=auto | ||
|
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,5 +1,5 @@ | ||
/out/ | ||
/.vs/ | ||
/CmakeSettings.json | ||
/build | ||
.vscode/ | ||
/out/ | ||
/.vs/ | ||
/CmakeSettings.json | ||
/build | ||
.vscode/ |
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,39 +1,40 @@ | ||
cmake_minimum_required (VERSION 3.16) | ||
|
||
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE) | ||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "") | ||
endif() | ||
|
||
project ("sdl2-vga-terminal" VERSION 0.2.2 DESCRIPTION "Vga Terminal on SDL2") | ||
|
||
|
||
################################ Packages #################################### | ||
set (CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}) | ||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||
if(CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
set(CPACK_SYSTEM_NAME win64) | ||
else() | ||
set(CPACK_SYSTEM_NAME win32) | ||
endif() | ||
endif() | ||
set(CPACK_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${CPACK_SYSTEM_NAME}-${CMAKE_BUILD_TYPE}) | ||
set(CPACK_SOURCE_GENERATOR "ZIP") | ||
set(CPACK_GENERATOR "ZIP") | ||
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CMAKE_PROJECT_DESCRIPTION}) | ||
include(CPack) | ||
|
||
|
||
################################# Options #################################### | ||
option(BUILD_SHARED_LIBS "build shared libs with C inteface" ON) | ||
option(BUILD_EXAMPLES "build examples" ON) | ||
include(CTest) | ||
option(ENABLE_CODE_COVERAGE "compile Debug with code coverage" OFF) | ||
option(BUILD_SNAPSHOT "build snapshot test" OFF) | ||
include(CMakeDependentOption) | ||
CMAKE_DEPENDENT_OPTION(TEST_DUMP_SNAPSHOT "build test to dump the expected output instead of verifing it" OFF | ||
"BUILD_SNAPSHOT" OFF) | ||
option(WITH_SDL2_STATIC "linking STATIC LIB with SDL2 STATIC" OFF) | ||
|
||
enable_testing() | ||
add_subdirectory ("sdl2-vga-terminal") | ||
cmake_minimum_required (VERSION 3.16) | ||
|
||
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE) | ||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "") | ||
endif() | ||
|
||
project ("sdl2-vga-terminal" VERSION 0.3.0 DESCRIPTION "Vga Terminal on SDL2") | ||
|
||
|
||
################################ Packages #################################### | ||
set (CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}) | ||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||
if(CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
set(CPACK_SYSTEM_NAME win64) | ||
else() | ||
set(CPACK_SYSTEM_NAME win32) | ||
endif() | ||
endif() | ||
set(CPACK_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${CPACK_SYSTEM_NAME}-${CMAKE_BUILD_TYPE}) | ||
set(CPACK_SOURCE_GENERATOR "ZIP") | ||
set(CPACK_GENERATOR "ZIP") | ||
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CMAKE_PROJECT_DESCRIPTION}) | ||
include(CPack) | ||
|
||
|
||
################################# Options #################################### | ||
option(BUILD_SHARED_LIBS "build shared libs with C inteface" ON) | ||
option(BUILD_EXAMPLES "build examples" ON) | ||
include(CTest) | ||
option(ENABLE_CODE_COVERAGE "compile Debug with code coverage" OFF) | ||
option(BUILD_SNAPSHOT "build snapshot test" OFF) | ||
include(CMakeDependentOption) | ||
CMAKE_DEPENDENT_OPTION(TEST_DUMP_SNAPSHOT "build test to dump the expected output instead of verifing it" OFF | ||
"BUILD_SNAPSHOT" OFF) | ||
option(WITH_SDL2_STATIC "linking STATIC LIB with SDL2 STATIC" OFF) | ||
option(HAVE_PRECISE_TIMER "if SDL2 timers are precise" ON) | ||
|
||
enable_testing() | ||
add_subdirectory ("sdl2-vga-terminal") |
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,21 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Raffaello Bertini | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
MIT License | ||
Copyright (c) 2020 Raffaello Bertini | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
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 |
---|---|---|
|
@@ -43,6 +43,8 @@ stages: | |
- stage: CI | ||
jobs: | ||
- job: macOS | ||
variables: | ||
HAVE_PRECISE_TIMER: OFF | ||
strategy: | ||
matrix: | ||
Debug: | ||
|
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
parameters: | ||
- name: build_type | ||
displayName: Build Type | ||
type: string | ||
|
||
steps: | ||
- script: ctest -C ${{ parameters.build_type }} -v -V -T Test | ||
displayName: cmake test (ctest) | ||
workingDirectory: build | ||
- task: PublishTestResults@2 | ||
condition: succeededOrFailed() | ||
inputs: | ||
testResultsFormat: 'cTest' # Options: JUnit, NUnit, VSTest, xUnit, cTest | ||
testResultsFiles: '**/Test.xml' | ||
searchFolder: build # Optional | ||
#mergeTestResults: false # Optional | ||
#failTaskOnFailedTests: false # Optional | ||
#testRunTitle: # Optional | ||
#buildPlatform: # Optional | ||
#buildConfiguration: # Optional | ||
#publishRunAttachments: true # Optional |
Oops, something went wrong.