-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
421 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,56 @@ | ||
add_subdirectory(libevents) | ||
|
||
if(ANDROID) | ||
include(${CMAKE_CURRENT_SOURCE_DIR}/OpenSSL/android_openssl/android_openssl.cmake) | ||
add_subdirectory(qtandroidserialport) | ||
elseif(WIN32) | ||
add_subdirectory(sdl2) | ||
add_subdirectory(zlib) | ||
endif() | ||
|
||
option(QGC_ENABLE_VIDEOSTREAMING "Enable video streaming" ON) | ||
if(QGC_ENABLE_VIDEOSTREAMING) | ||
message(STATUS "Enabling video streaming support") | ||
add_subdirectory(qmlglsink) | ||
else() | ||
message(STATUS "Video streaming disabled") | ||
endif() | ||
add_subdirectory(OpenSSL) | ||
add_subdirectory(qtandroidserialport) | ||
add_subdirectory(sdl2) | ||
add_subdirectory(zlib) | ||
add_subdirectory(qmlglsink) | ||
|
||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Force qmdnsengine & shapelib to build as static" FORCE) | ||
add_subdirectory(shapelib) | ||
|
||
option(QGC_QT6_DISABLE_DNSENGINE "Disable DNS Engine" OFF) | ||
if(QGC_QT6_DISABLE_DNSENGINE) | ||
option(QGC_DISABLE_DNSENGINE "Disable DNS Engine" OFF) | ||
if(QGC_DISABLE_DNSENGINE) | ||
message(STATUS "DNS Engine disabled") | ||
add_compile_definitions(QT6_DISABLE_DNSENGINE=ON) | ||
add_compile_definitions(QGC_DISABLE_DNSENGINE) | ||
else() | ||
message(STATUS "DNS Engine enabled") | ||
add_subdirectory(qmdnsengine) | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | ||
endif() | ||
|
||
|
||
qt_add_library(xz STATIC | ||
xz-embedded/linux/include/linux/xz.h | ||
xz-embedded/linux/include/linux/decompress/unxz.h | ||
# xz-embedded/linux/lib/decompress_unxz.c | ||
xz-embedded/linux/lib/xz/xz_crc32.c | ||
xz-embedded/linux/lib/xz/xz_crc64.c | ||
xz-embedded/linux/lib/xz/xz_dec_bcj.c | ||
xz-embedded/linux/lib/xz/xz_dec_lzma2.c | ||
xz-embedded/linux/lib/xz/xz_dec_stream.c | ||
# xz-embedded/linux/lib/xz/xz_dec_syms.c | ||
# xz-embedded/linux/lib/xz/xz_dec_test.c | ||
xz-embedded/linux/lib/xz/xz_lzma2.h | ||
xz-embedded/linux/lib/xz/xz_private.h | ||
xz-embedded/linux/lib/xz/xz_stream.h | ||
# xz-embedded/userspace/boottest.c | ||
# xz-embedded/userspace/buftest.c | ||
# xz-embedded/userspace/bytetest.c | ||
xz-embedded/userspace/xz_config.h | ||
# xz-embedded/userspace/xzminidec.c | ||
) | ||
|
||
target_include_directories(xz | ||
PUBLIC | ||
xz-embedded/linux/include | ||
xz-embedded/linux/include/linux | ||
xz-embedded/linux/include/linux/decompress | ||
xz-embedded/linux/lib/xz | ||
xz-embedded/userspace | ||
) | ||
|
||
target_compile_definitions(xz | ||
PUBLIC | ||
XZ_DEC_ANY_CHECK | ||
XZ_USE_CRC64 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if(ANDROID) | ||
include(android_openssl/android_openssl.cmake) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,64 @@ | ||
find_package(Qt6 COMPONENTS Core REQUIRED) | ||
|
||
add_library(libevents_generated) | ||
target_include_directories(libevents_generated INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/libevents/libs/cpp/generated) | ||
|
||
add_library(libevents_parser | ||
definitions.cpp | ||
libevents/libs/cpp/parse/parser.cpp | ||
libevents/libs/cpp/protocol/receive.cpp | ||
) | ||
target_include_directories(libevents_parser PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) | ||
target_link_libraries(libevents_parser PUBLIC Qt6::Core) | ||
target_link_libraries(libevents_parser PUBLIC comm) | ||
|
||
add_library(libevents_health_and_arming_checks | ||
libevents/libs/cpp/parse/health_and_arming_checks.cpp) | ||
target_link_libraries(libevents_health_and_arming_checks PRIVATE comm) | ||
find_package(Qt6 REQUIRED COMPONENTS Core) | ||
|
||
qt_add_library(libevents_generated STATIC | ||
libevents/libs/cpp/generated/events_generated.h | ||
) | ||
|
||
target_include_directories(libevents_generated | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
libevents/libs/cpp/generated | ||
) | ||
|
||
|
||
qt_add_library(libevents_parser STATIC | ||
definitions.cpp | ||
libevents_definitions.h | ||
libevents/libs/cpp/parse/parser.cpp | ||
libevents/libs/cpp/parse/parser.h | ||
libevents/libs/cpp/protocol/receive.cpp | ||
libevents/libs/cpp/protocol/receive.h | ||
) | ||
|
||
add_subdirectory(libevents/libs/cpp/parse/nlohmann_json) | ||
|
||
target_include_directories(libevents_parser | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
libevents/libs/cpp/parse | ||
libevents/libs/cpp/protocol | ||
) | ||
|
||
target_link_libraries(libevents_parser | ||
PRIVATE | ||
qgc | ||
PUBLIC | ||
Qt6::Core | ||
comm | ||
) | ||
|
||
|
||
qt_add_library(libevents_health_and_arming_checks STATIC | ||
libevents/libs/cpp/parse/health_and_arming_checks.cpp | ||
libevents/libs/cpp/parse/health_and_arming_checks.h | ||
) | ||
|
||
target_include_directories(libevents_health_and_arming_checks | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
libevents/libs/cpp/parse | ||
) | ||
|
||
target_link_libraries(libevents_health_and_arming_checks | ||
PUBLIC | ||
libevents_parser | ||
) | ||
|
||
|
||
qt_add_library(libevents STATIC) | ||
|
||
target_link_libraries(libevents | ||
PUBLIC | ||
libevents_generated | ||
libevents_health_and_arming_checks | ||
) |
Oops, something went wrong.