generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
45
package/gli/0001-Optional-building-tests.patch
Normal file
45
package/gli/0001-Optional-building-tests.patch
Normal file
@ -0,0 +1,45 @@
|
||||
From 629fc81ce73114a5925484937df796467adbe8c7 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= <pereira.john94@gmail.com>
|
||||
Date: Fri, 22 Mar 2019 22:58:17 +0000
|
||||
Subject: [PATCH] Optional building tests
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/g-truc/gli/commit/629fc81ce73114a5925484937df796467adbe8c7]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 1 +
|
||||
test/CMakeLists.txt | 8 +++++---
|
||||
2 files changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 6eb1a68b..bcff7ef0 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -13,6 +13,7 @@ include(GNUInstallDirs)
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
enable_testing()
|
||||
+option(GLI_TEST_ENABLE "Build unit tests" ON)
|
||||
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
|
||||
index 6b1d4826..e51a3181 100644
|
||||
--- a/test/CMakeLists.txt
|
||||
+++ b/test/CMakeLists.txt
|
||||
@@ -19,10 +19,12 @@ function(glmCreateTestGTC NAME)
|
||||
set(SAMPLE_NAME test-${NAME})
|
||||
add_executable(${SAMPLE_NAME} ${NAME}.cpp)
|
||||
target_link_libraries(${SAMPLE_NAME} gli)
|
||||
- add_test(
|
||||
+ add_test(
|
||||
NAME ${SAMPLE_NAME}
|
||||
COMMAND $<TARGET_FILE:${SAMPLE_NAME}> )
|
||||
endfunction()
|
||||
|
||||
-add_subdirectory(bug)
|
||||
-add_subdirectory(core)
|
||||
+if(GLI_TEST_ENABLE)
|
||||
+ add_subdirectory(bug)
|
||||
+ add_subdirectory(core)
|
||||
+endif()
|
||||
10
package/gli/Config.in
Normal file
10
package/gli/Config.in
Normal file
@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_GLI
|
||||
bool "gli"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
OpenGL Image (GLI)
|
||||
|
||||
http://gli.g-truc.net
|
||||
|
||||
comment "gli needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
3
package/gli/gli.hash
Normal file
3
package/gli/gli.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 9374f3cf6441dac0154f7e5ae9ad9ae99f4c4a36f8eb6de23f54a1996b9f2769 gli-559cbe1ec38878e182507d331e0780fbae5baf15.tar.gz
|
||||
sha256 e26459f62353e631d18379668c82b85f9fd2fd993f2818277e4fce21e957f87a manual.md
|
||||
19
package/gli/gli.mk
Normal file
19
package/gli/gli.mk
Normal file
@ -0,0 +1,19 @@
|
||||
################################################################################
|
||||
#
|
||||
# gli
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GLI_VERSION = 559cbe1ec38878e182507d331e0780fbae5baf15
|
||||
GLI_SITE = $(call github,g-truc,gli,$(GLI_VERSION))
|
||||
GLI_LICENSE = MIT
|
||||
GLI_LICENSE_FILES = manual.md
|
||||
|
||||
# GLI is a header-only library, it only makes sense
|
||||
# to have it installed into the staging directory.
|
||||
GLI_INSTALL_STAGING = YES
|
||||
GLI_INSTALL_TARGET = NO
|
||||
|
||||
GLI_CONF_OPTS = -DGLI_TEST_ENABLE=OFF
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user