Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/emulators/es-de/files/patch-CMakeLists.txt
28316 views
1
--- CMakeLists.txt.orig 2025-11-07 15:20:22 UTC
2
+++ CMakeLists.txt
3
@@ -155,6 +155,8 @@ elseif(NOT EMSCRIPTEN AND NOT ANDROID AND NOT IOS)
4
find_package(Libgit2 REQUIRED)
5
find_package(Pugixml REQUIRED)
6
find_package(SDL2 REQUIRED)
7
+ find_package(rlottie REQUIRED)
8
+ use_pkgconfig(lunasvg lunasvg)
9
endif()
10
11
# Add libCEC support.
12
@@ -197,8 +199,7 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
13
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
14
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17 /Od /DEBUG:FULL")
15
else()
16
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -O0 -g3 -Wall -Wpedantic -Wsign-compare -Wnarrowing -Wmissing-field-initializers -Wunused-macros")
17
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O0")
18
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -Wpedantic -Wsign-compare -Wnarrowing -Wmissing-field-initializers -Wunused-macros")
19
endif()
20
# If using Clang, then add additional debug data needed by GDB.
21
# Comment this out if you're using LLDB for debugging as this flag makes the binary
22
@@ -221,11 +222,11 @@ else()
23
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
24
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG /std:c++17 /O2 /DEBUG:NONE")
25
else()
26
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -O2 -DNDEBUG -Wall -Wpedantic -Wsign-compare -Wnarrowing -Wmissing-field-initializers -Wunused-macros")
27
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -DNDEBUG -Wall -Wpedantic -Wsign-compare -Wnarrowing -Wmissing-field-initializers -Wunused-macros")
28
if(APPLE)
29
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O2")
30
else()
31
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O2 -s")
32
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s")
33
endif()
34
endif()
35
endif()
36
@@ -540,7 +541,8 @@ else()
37
${HarfBuzz_INCLUDE_DIRS}
38
${ICU_INCLUDE_DIRS}
39
${PUGIXML_INCLUDE_DIRS}
40
- ${SDL2_INCLUDE_DIR})
41
+ ${SDL2_INCLUDE_DIR}
42
+ ${lunasvg_INCLUDE_DIRS})
43
endif()
44
45
# Add libCEC include directory.
46
@@ -694,7 +696,9 @@ else()
47
${HarfBuzz_LIBRARIES}
48
${ICU_LIBRARIES}
49
${PUGIXML_LIBRARIES}
50
- ${SDL2_LIBRARY})
51
+ ${SDL2_LIBRARY}
52
+ ${lunasvg_LINK_LIBRARIES}
53
+ ${rlottie_LIBRARIES})
54
if(Intl_LIBRARY)
55
# On Unix systems where the gettext functions are not part of the C standard library
56
# we need to explicitly link with the libintl library.
57
@@ -710,9 +714,6 @@ if(NOT WIN32)
58
elseif(IOS)
59
set(COMMON_LIBRARIES ${COMMON_LIBRARIES} ${PROJECT_SOURCE_DIR}/${CMAKE_BUILD_TYPE}/liblunasvg.a)
60
set(COMMON_LIBRARIES ${COMMON_LIBRARIES} ${PROJECT_SOURCE_DIR}/${CMAKE_BUILD_TYPE}/librlottie.a)
61
- else()
62
- set(COMMON_LIBRARIES ${COMMON_LIBRARIES} ${PROJECT_SOURCE_DIR}/liblunasvg.a)
63
- set(COMMON_LIBRARIES ${COMMON_LIBRARIES} ${PROJECT_SOURCE_DIR}/librlottie.a)
64
endif()
65
endif()
66
67
@@ -766,18 +767,9 @@ add_subdirectory(es-pdf-converter)
68
endif()
69
70
add_subdirectory(es-pdf-converter)
71
-add_subdirectory(external)
72
add_subdirectory(es-core)
73
add_subdirectory(es-app)
74
75
-# Make sure that es-pdf-convert is built first, and then that rlottie is built before es-core.
76
-add_dependencies(lunasvg es-pdf-convert)
77
-
78
if(COMPILE_LOCALIZATIONS)
79
add_dependencies(es-pdf-convert localization)
80
endif()
81
-
82
-add_dependencies(es-core rlottie)
83
-
84
-# Set lottie2gif to not be built.
85
-set_target_properties(lottie2gif PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
86
87