Skip to content

Commit

Permalink
add option for terminfo packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut committed May 23, 2024
1 parent deb0c39 commit ff4702e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ jobs:
-DCONTOUR_QT_VERSION=${{ matrix.qt_version }} \
-DLIBUNICODE_UCD_BASE_DIR=$PWD/_ucd \
-DPEDANTIC_COMPILER_WERROR=OFF \
-DCONTOUR_PACKAGE_TERMINFO=OFF \
--preset linux-debug
- name: "build"
run: cmake --build --preset linux-debug -- -j3
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ option(CONTOUR_SANITIZE "Builds with Address sanitizer enabled [default: OFF]" "
option(CONTOUR_STACKTRACE_ADDR2LINE "Uses addr2line to pretty-print SEGV stacktrace." ${ADDR2LINE_DEFAULT})
option(CONTOUR_BUILD_WITH_MIMALLOC "Builds with mimalloc [default: OFF]" OFF)
option(CONTOUR_INSTALL_TOOLS "Installs tools, if built [default: OFF]" OFF)
option(CONTOUR_PACKAGE_TERMINFO "Package terminfo files" ON)

if(NOT WIN32 AND NOT CONTOUR_SANITIZE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CONTOUR_SANITIZE "OFF" CACHE STRING "Choose the sanitizer mode." FORCE)
Expand Down
2 changes: 1 addition & 1 deletion src/contour/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ endif()
# }}}

# {{{ Build terminfo file
if(NOT(WIN32))
if(NOT(WIN32) AND CONTOUR_PACKAGE_TERMINFO)
set(terminfo_file "contour.terminfo")
set(terminfo_basedir "${CMAKE_CURRENT_BINARY_DIR}/terminfo")
set_source_files_properties("${terminfo_file}" PROPERTIES GENERATED TRUE)
Expand Down

0 comments on commit ff4702e

Please sign in to comment.