package/proj: add an option to build and install apps

The proj package includes command line applications. Those have always
been disabled in Buildroot. Those applications can be useful for
scripting, and also for runtime testing the libraries.

This commit adds a package Kconfig option to enable those apps.

Tested-by: Zoltan Gyarmati <zgyarmati@zgyarmati.de>
Acked-by: Zoltan Gyarmati <zgyarmati@zgyarmati.de>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Julien Olivain
2024-11-09 18:55:08 +01:00
parent 635c5f8a7d
commit ed59c2b7aa
2 changed files with 13 additions and 1 deletions

View File

@@ -14,6 +14,18 @@ config BR2_PACKAGE_PROJ
http://proj4.org/
if BR2_PACKAGE_PROJ
config BR2_PACKAGE_PROJ_APPS
bool "build apps"
select BR2_PACKAGE_LIBCURL
help
Build and install proj command line apps. Those command line
applications are: cct, cs2cs, geod, gie, invgeod, invproj,
proj, projinfo, projsync.
endif
comment "proj needs a toolchain w/ C++, gcc >= 4.7, NPTL, wchar"
depends on !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || \

View File

@@ -20,7 +20,7 @@ PROJ_CXXFLAGS += -O0
endif
PROJ_CONF_OPTS = \
-DBUILD_APPS=OFF \
-DBUILD_APPS=$(if $(BR2_PACKAGE_PROJ_APPS),ON,OFF) \
-DCMAKE_C_FLAGS="$(PROJ_CFLAGS)" \
-DCMAKE_CXX_FLAGS="$(PROJ_CXXFLAGS)"