mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
gui-apps/organicmaps: reduce clones
The code is from https://github.com/organicmaps/organicmaps/issues/2217#issuecomment-1868159186 Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
46
gui-apps/organicmaps/files/more-3party.patch
Normal file
46
gui-apps/organicmaps/files/more-3party.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
From b77c26e242945fe06be94059b87c3c2eebdb78eb Mon Sep 17 00:00:00 2001
|
||||
From: Gerion Entrup <gerion.entrup@flump.de>
|
||||
Date: Fri, 8 Dec 2023 23:45:56 +0100
|
||||
Subject: [PATCH] cmake: use some internal libraries without external
|
||||
alternative
|
||||
|
||||
---
|
||||
3party/CMakeLists.txt | 6 +++---
|
||||
base/CMakeLists.txt | 4 +---
|
||||
2 files changed, 4 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/3party/CMakeLists.txt b/3party/CMakeLists.txt
|
||||
index bd44e1b7b8..4f5cb99807 100644
|
||||
--- a/3party/CMakeLists.txt
|
||||
+++ b/3party/CMakeLists.txt
|
||||
@@ -34,11 +34,11 @@ else()
|
||||
|
||||
# Add pugixml library.
|
||||
add_subdirectory(pugixml)
|
||||
-
|
||||
- # Add protobuf library.
|
||||
- add_subdirectory(protobuf)
|
||||
endif()
|
||||
|
||||
+# Add protobuf library.
|
||||
+add_subdirectory(protobuf)
|
||||
+
|
||||
add_subdirectory(agg)
|
||||
add_subdirectory(bsdiff-courgette)
|
||||
|
||||
diff --git a/base/CMakeLists.txt b/base/CMakeLists.txt
|
||||
index 7e762b242a..0d7d6c5d10 100644
|
||||
--- a/base/CMakeLists.txt
|
||||
+++ b/base/CMakeLists.txt
|
||||
@@ -111,8 +111,6 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} INTERFACE Threads::Threads)
|
||||
|
||||
-if (NOT WITH_SYSTEM_PROVIDED_3PARTY)
|
||||
- target_include_directories(${PROJECT_NAME} PRIVATE "${OMIM_ROOT}/3party/fast_double_parser/include")
|
||||
-endif()
|
||||
+target_include_directories(${PROJECT_NAME} PRIVATE "${OMIM_ROOT}/3party/fast_double_parser/include")
|
||||
|
||||
omim_add_test_subdirectory(base_tests)
|
||||
--
|
||||
2.41.0
|
||||
15
gui-apps/organicmaps/files/no-dynamic-download.patch
Normal file
15
gui-apps/organicmaps/files/no-dynamic-download.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/transit/world_feed/world_feed_integration_tests/CMakeLists.txt b/transit/world_feed/world_feed_integration_tests/CMakeLists.txt
|
||||
index 9f945568d4..ec9755ab09 100644
|
||||
--- a/transit/world_feed/world_feed_integration_tests/CMakeLists.txt
|
||||
+++ b/transit/world_feed/world_feed_integration_tests/CMakeLists.txt
|
||||
@@ -10,7 +10,9 @@ target_link_libraries(${PROJECT_NAME}
|
||||
)
|
||||
|
||||
# This test requires additional data from the other repository
|
||||
-set(TEST_DATA_REPO_URL "https://github.com/organicmaps/world_feed_integration_tests_data.git")
|
||||
+if(NOT TEST_DATA_REPO_URL)
|
||||
+ set(TEST_DATA_REPO_URL "https://github.com/organicmaps/world_feed_integration_tests_data.git")
|
||||
+endif()
|
||||
set(DESTINATION_FOLDER "${OMIM_DATA_DIR}/world_feed_integration_tests_data/")
|
||||
|
||||
add_custom_command(
|
||||
Reference in New Issue
Block a user