Initial Commit
- initial default booting image
This commit is contained in:
78
package/leveldb/0002-CMake-install-libmemenv.a.patch
Normal file
78
package/leveldb/0002-CMake-install-libmemenv.a.patch
Normal file
@@ -0,0 +1,78 @@
|
||||
From ef03beb64f5e8028f6b5d65f75ee60e8b2eec594 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Sat, 12 Oct 2019 14:43:46 +0200
|
||||
Subject: [PATCH] CMake: install libmemenv.a
|
||||
|
||||
Needed for qt5webkit
|
||||
https://git.busybox.net/buildroot/commit/?id=8a10d9ce311c6cb0490d76921cae55618c258354
|
||||
https://git.busybox.net/buildroot/commit/?id=16f847340d07dce620e4c3fc0a099aa79898d86a
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
[Fabrice : updated for 1.23]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Dario: make the patch to be applied with fuzz factor 0]
|
||||
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
||||
---
|
||||
CMakeLists.txt | 32 +++++++++++++++++++++++++++++++-
|
||||
1 file changed, 31 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f8285b82c6a4..ffce93b01ed6 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -209,6 +209,30 @@ target_sources(leveldb
|
||||
"${LEVELDB_PUBLIC_INCLUDE_DIR}/write_batch.h"
|
||||
)
|
||||
|
||||
+set(libmemenv_a_sources
|
||||
+ "${PROJECT_SOURCE_DIR}/helpers/memenv/memenv.cc"
|
||||
+ "${PROJECT_SOURCE_DIR}/helpers/memenv/memenv.h"
|
||||
+ )
|
||||
+add_library(memenv STATIC ${libmemenv_a_sources})
|
||||
+target_compile_definitions(memenv
|
||||
+ PRIVATE
|
||||
+ # Used by include/export.h when building shared libraries.
|
||||
+ LEVELDB_COMPILE_LIBRARY
|
||||
+ # Used by port/port.h.
|
||||
+ ${LEVELDB_PLATFORM_NAME}=1
|
||||
+)
|
||||
+if (NOT HAVE_CXX17_HAS_INCLUDE)
|
||||
+ target_compile_definitions(memenv
|
||||
+ PRIVATE
|
||||
+ LEVELDB_HAS_PORT_CONFIG_H=1
|
||||
+ )
|
||||
+endif(NOT HAVE_CXX17_HAS_INCLUDE)
|
||||
+target_include_directories(memenv
|
||||
+ PUBLIC
|
||||
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
+)
|
||||
+
|
||||
if (WIN32)
|
||||
target_sources(leveldb
|
||||
PRIVATE
|
||||
@@ -445,7 +469,7 @@ int main() {
|
||||
endif(LEVELDB_BUILD_BENCHMARKS)
|
||||
|
||||
if(LEVELDB_INSTALL)
|
||||
- install(TARGETS leveldb
|
||||
+ install(TARGETS leveldb memenv
|
||||
EXPORT leveldbTargets
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
@@ -471,6 +495,12 @@ if(LEVELDB_INSTALL)
|
||||
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/leveldb"
|
||||
)
|
||||
|
||||
+ install(
|
||||
+ FILES
|
||||
+ "${PROJECT_SOURCE_DIR}/helpers/memenv/memenv.h"
|
||||
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/helpers/memenv
|
||||
+ )
|
||||
+
|
||||
include(CMakePackageConfigHelpers)
|
||||
configure_package_config_file(
|
||||
"cmake/${PROJECT_NAME}Config.cmake.in"
|
||||
--
|
||||
2.43.0
|
||||
|
||||
Reference in New Issue
Block a user