aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ecal/0002-fix-build.patch
blob: b2811b162cb7406640e2076c535d3a302bed3bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e82e353e0..19d8f2a93 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,8 @@ endif (POLICY CMP0077)
 
 list(APPEND CMAKE_MODULE_PATH
   ${CMAKE_CURRENT_SOURCE_DIR}/cmake
-  ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
+  # Removed project specific Module overrides
+)
   
 set(eCAL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
 
@@ -221,6 +222,8 @@ set(possible_subprojects
 set(ECAL_THIRDPARTY_BUILD_CMAKEFUNCTIONS ${ECAL_THIRDPARTY_BUILD_CMAKE_FUNCTIONS})
 
 # if a package does need to be build, include the cmake file with build instructions
+# Disable all submodules, except CMakeFunctions which isn't a submodule and required
+set(possible_subprojects "CMakeFunctions")
 foreach (dep IN LISTS possible_subprojects)
   string(TOUPPER ${dep} dep_upper)
   string(TOLOWER ${dep} dep_lower)
@@ -336,7 +339,9 @@ add_subdirectory(ecal/core)
 # custom libs
 # --------------------------------------------------------
 add_subdirectory(lib/ThreadingUtils)
-add_subdirectory(lib/CustomTclap)
+# Removed due to only being used by the apps, which are disabled, and for
+# publicly linking tclap::tclap which doesn't exist outside of eCAL
+# add_subdirectory(lib/CustomTclap)
 add_subdirectory(lib/ecal_utils)
 
 if(HAS_QT)
@@ -559,7 +564,9 @@ endif()
 # --------------------------------------------------------
 # create package
 # --------------------------------------------------------
+if(CPACK_PACK_WITH_INNOSETUP)
 include(cpack/cpack_variables.cmake)
+endif()
 
 message(STATUS "Build Options:")
 message(STATUS "--------------------------------------------------------------------------------")
diff --git a/contrib/ecalhdf5/CMakeLists.txt b/contrib/ecalhdf5/CMakeLists.txt
index d5285101c..3b7eb705a 100644
--- a/contrib/ecalhdf5/CMakeLists.txt
+++ b/contrib/ecalhdf5/CMakeLists.txt
@@ -55,7 +55,12 @@ set(ecalhdf5_header_base
     include/ecalhdf5/eh5_types.h
 )
 
+if (WIN32)
+# This library, ecal::hdf5 does not export any symbols on Windows. Must be static
+ecal_add_static_library(${PROJECT_NAME} ${ecalhdf5_src} ${ecalhdf5_header_base})
+else()
 ecal_add_library(${PROJECT_NAME} ${ecalhdf5_src} ${ecalhdf5_header_base})
+endif()
 add_library(eCAL::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
 
 target_include_directories(${PROJECT_NAME}
diff --git a/contrib/ecalproto/CMakeLists.txt b/contrib/ecalproto/CMakeLists.txt
index 04f1a1b9a..58df32705 100644
--- a/contrib/ecalproto/CMakeLists.txt
+++ b/contrib/ecalproto/CMakeLists.txt
@@ -37,7 +37,12 @@ set(ecal_protobuf_header
     include/ecal/protobuf/ecal_proto_visitor.h
 )
 
+if (WIN32)
+# This library, ecal::proto does not export any symbols on Windows. Must be static
+ecal_add_static_library(${PROJECT_NAME} ${ecal_protobuf_src} ${ecal_protobuf_header})
+else()
 ecal_add_library(${PROJECT_NAME} ${ecal_protobuf_src} ${ecal_protobuf_header})
+endif()
 add_library(eCAL::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
 target_include_directories(${PROJECT_NAME} PUBLIC 
   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
diff --git a/ecal/core/CMakeLists.txt b/ecal/core/CMakeLists.txt
index f18dd6291..8655d134a 100644
--- a/ecal/core/CMakeLists.txt
+++ b/ecal/core/CMakeLists.txt
@@ -20,8 +20,6 @@ project(core VERSION ${eCAL_VERSION_STRING})
 
 find_package(Threads      REQUIRED)
 find_package(asio         REQUIRED)
-find_package(tclap        REQUIRED)
-find_package(simpleini    REQUIRED)
 find_package(tcp_pubsub   REQUIRED)
 if (ECAL_NPCAP_SUPPORT)
   find_package(udpcap REQUIRED)
@@ -549,8 +547,6 @@ target_link_libraries(${PROJECT_NAME}
     $<$<BOOL:${WIN32}>:wsock32>
     $<$<BOOL:${QNXNTO}>:socket>
     asio::asio
-    tclap::tclap
-    simpleini::simpleini
     eCAL::core_pb
     Threads::Threads
     eCAL::ecal-utils
@@ -558,6 +554,14 @@ target_link_libraries(${PROJECT_NAME}
     ecal_service
 )
 
+# tclap is header only and only used for implementation
+find_path(TCLAP_INCLUDE_DIRS "tclap/Arg.h")
+target_include_directories(${PROJECT_NAME}  PRIVATE ${TCLAP_INCLUDE_DIRS})
+
+# simpleini is header only and only used for implementation
+find_path(SIMPLEINI_INCLUDE_DIRS "ConvertUTF.c")
+target_include_directories(${PROJECT_NAME} PRIVATE ${SIMPLEINI_INCLUDE_DIRS})
+
 set_property(TARGET ${PROJECT_NAME}   PROPERTY FOLDER ecal/core)
 set_property(TARGET ${PROJECT_NAME}_c PROPERTY FOLDER ecal/core)
 
diff --git a/ecal/service/ecal_service/CMakeLists.txt b/ecal/service/ecal_service/CMakeLists.txt
index 0ac70a214..6a565c726 100644
--- a/ecal/service/ecal_service/CMakeLists.txt
+++ b/ecal/service/ecal_service/CMakeLists.txt
@@ -99,6 +99,8 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
     FOLDER ecal/service
 )
 
+ecal_install_library(${PROJECT_NAME})
+
 ##################################
 
 source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES 
diff --git a/thirdparty/cmakefunctions/cmake_functions/CMakeLists.txt b/thirdparty/cmakefunctions/cmake_functions/CMakeLists.txt
index 8d13b791c..6ed0d1a14 100644
--- a/thirdparty/cmakefunctions/cmake_functions/CMakeLists.txt
+++ b/thirdparty/cmakefunctions/cmake_functions/CMakeLists.txt
@@ -40,4 +40,6 @@ foreach (f ${file_list})
   install( FILES ${f} DESTINATION "${cmake_functions_install_cmake_dir}/${dir}" )
 endforeach()
 
+if(CPACK_PACK_WITH_INNOSETUP)
 include(cmake/cpack_variables.cmake)
+endif()
diff --git a/thirdparty/cmakefunctions/cmake_functions/cmake_functions.cmake b/thirdparty/cmakefunctions/cmake_functions/cmake_functions.cmake
index a053b06e6..127eb14e6 100644
--- a/thirdparty/cmakefunctions/cmake_functions/cmake_functions.cmake
+++ b/thirdparty/cmakefunctions/cmake_functions/cmake_functions.cmake
@@ -5,22 +5,12 @@ set (file_list_include
   target_definitions/targets_protobuf.cmake
 )
 
-if(WIN32)
-  list(APPEND file_list_include
-    qt/qt_windeployqt.cmake
-  )
-endif()
 
 set(file_list_no_include
   protoc_functions/protoc_generate_cpp.cmake
   protoc_functions/protoc_generate_python.cmake
 )
 
-if(WIN32)
-  list(APPEND file_list_no_include
-    qt/qt_windeployqt_threadsafe_cmake.bat.in
-  )
-endif()
 
 # Set list of all files to be installed by CMake Script.
 set(file_list