mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
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:
@@ -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 || \
|
||||
|
||||
@@ -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)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user