Skip to content

Commit 89954a2

Browse files
committed
fixes #286 - fix android termux build
1 parent 8a4368a commit 89954a2

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
3535
set(CMAKE_PREFIX_PATH /opt/local)
3636
message(STATUS "Ncurses cmake prefix '${CMAKE_PREFIX_PATH}' (default).")
3737
endif()
38+
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Android")
39+
add_compile_definitions(_XOPEN_SOURCE_EXTENDED)
3840
endif()
3941

4042
# Optional component - Dummy Protocol

lib/common/src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
#pragma once
99

10-
#define NCHAT_VERSION "5.1.29"
10+
#define NCHAT_VERSION "5.2.1"

lib/ncutil/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ find_path(MAGIC_INCLUDE_DIR magic.h
1818
)
1919
find_package(SQLite3 REQUIRED)
2020

21+
# Platform specifics
22+
if (${CMAKE_SYSTEM_NAME} MATCHES "Android")
23+
find_library(WORDEXP_LIBRARY android-wordexp)
24+
endif()
25+
2126
# Library
22-
add_library(ncutil SHARED
27+
add_library(ncutil SHARED
2328
src/appconfig.cpp
2429
src/appconfig.h
2530
src/apputil.cpp
@@ -85,4 +90,4 @@ set_target_properties(ncutil PROPERTIES COMPILE_FLAGS
8590
-Wcast-align")
8691

8792
# Linking
88-
target_link_libraries(ncutil PUBLIC ${MAGIC_LIBRARY} SQLite::SQLite3 clip)
93+
target_link_libraries(ncutil PUBLIC ${MAGIC_LIBRARY} SQLite::SQLite3 clip ${WORDEXP_LIBRARY})

src/nchat.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
2-
.TH NCHAT "1" "August 2024" "nchat 5.1.29" "User Commands"
2+
.TH NCHAT "1" "August 2024" "nchat 5.2.1" "User Commands"
33
.SH NAME
44
nchat \- ncurses chat
55
.SH SYNOPSIS

0 commit comments

Comments
 (0)