generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
@ -0,0 +1,44 @@
|
||||
From 15ec267520efbe45193eb1df5361a4ab56164294 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 8 May 2022 17:54:42 +0200
|
||||
Subject: [PATCH] CMakeLists.txt: honour BUILD_TESTING
|
||||
|
||||
Allow the user to disable tests through the standard BUILD_TESTING
|
||||
option: https://cmake.org/cmake/help/latest/module/CTest.html
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Retrieved from:
|
||||
https://github.com/rafaelsteil/libcgi/commit/15ec267520efbe45193eb1df5361a4ab56164294]
|
||||
---
|
||||
CMakeLists.txt | 12 +++++++++---
|
||||
1 file changed, 9 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index cbf0d97..e3329a1 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -29,15 +29,21 @@ option(BUILD_SHARED_LIBS
|
||||
"Global flag to cause add_library to create shared libraries if on."
|
||||
ON
|
||||
)
|
||||
+option(BUILD_TESTING
|
||||
+ "Build tests."
|
||||
+ ON
|
||||
+)
|
||||
|
||||
# subdirectories
|
||||
add_subdirectory("include/libcgi")
|
||||
add_subdirectory("src")
|
||||
|
||||
# test
|
||||
-enable_testing()
|
||||
-include(CTest)
|
||||
-add_subdirectory("test")
|
||||
+if(BUILD_TESTING)
|
||||
+ enable_testing()
|
||||
+ include(CTest)
|
||||
+ add_subdirectory("test")
|
||||
+endif(BUILD_TESTING)
|
||||
|
||||
# cmake package stuff
|
||||
configure_package_config_file(${PROJECT_NAME_LC}-config.cmake.in
|
||||
11
package/libcgi/Config.in
Normal file
11
package/libcgi/Config.in
Normal file
@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_LIBCGI
|
||||
bool "libcgi"
|
||||
help
|
||||
LibCGI is a library written from scratch to easily make
|
||||
CGI applications in C.
|
||||
|
||||
There are a lot of functions like string manipulation,
|
||||
session and cookie support, GET and POST methods manipulation
|
||||
etc..., to help you to quickly write powerful CGI programs.
|
||||
|
||||
https://github.com/rafaelsteil/libcgi/
|
||||
8
package/libcgi/libcgi.hash
Normal file
8
package/libcgi/libcgi.hash
Normal file
@ -0,0 +1,8 @@
|
||||
# From https://github.com/rafaelsteil/libcgi/releases/download/v1.3.0/libcgi-1.3.0.tar.gz.md5
|
||||
md5 6efdc968bdf986832b7e220d1b914e57 libcgi-1.3.0.tar.gz
|
||||
# From https://github.com/rafaelsteil/libcgi/releases/download/v1.3.0/libcgi-1.3.0.tar.gz.sha256
|
||||
sha256 d932f380b1a5dbfbddffaa76fac71bf505a9585d441c9ae86bfbf76033d9d8df libcgi-1.3.0.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENSES/LGPL-2.1.txt
|
||||
sha256 f32c31e26ec840753a8cd47cd2681e48be4cee853212d16a4b1d85ac4d677669 LICENSES/MIT.txt
|
||||
14
package/libcgi/libcgi.mk
Normal file
14
package/libcgi/libcgi.mk
Normal file
@ -0,0 +1,14 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcgi
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCGI_VERSION = 1.3.0
|
||||
LIBCGI_SITE = https://github.com/rafaelsteil/libcgi/releases/download/v$(LIBCGI_VERSION)
|
||||
|
||||
LIBCGI_INSTALL_STAGING = YES
|
||||
LIBCGI_LICENSE = LGPL-2.1+, MIT (base64.c)
|
||||
LIBCGI_LICENSE_FILES = LICENSES/LGPL-2.1.txt LICENSES/MIT.txt
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user