2024-05-29 10:38:57 +02:00
|
|
|
cmake_minimum_required(VERSION 3.9...3.24 FATAL_ERROR)
|
2023-07-25 14:35:57 +02:00
|
|
|
|
2024-04-12 13:34:20 +02:00
|
|
|
########################################
|
2024-03-28 15:36:14 +01:00
|
|
|
|
2024-05-29 10:38:57 +02:00
|
|
|
if (TOMATO_MAIN_SO)
|
|
|
|
add_library(tomato MODULE)
|
|
|
|
target_compile_definitions(tomato PUBLIC TOMATO_MAIN_SO)
|
|
|
|
else()
|
|
|
|
add_executable(tomato)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_sources(tomato PUBLIC
|
2023-07-30 16:00:55 +02:00
|
|
|
./main.cpp
|
|
|
|
./icon.rc
|
2023-07-26 12:24:18 +02:00
|
|
|
|
2025-01-08 01:39:39 +01:00
|
|
|
./icon_generator.hpp
|
|
|
|
./icon_generator.cpp
|
|
|
|
|
2024-06-07 13:19:40 +02:00
|
|
|
./sys_check.hpp
|
|
|
|
./sys_check.cpp
|
|
|
|
|
2024-05-30 11:46:58 +02:00
|
|
|
./json_to_config.hpp
|
|
|
|
./json_to_config.cpp
|
|
|
|
|
2023-07-30 16:00:55 +02:00
|
|
|
./screen.hpp
|
|
|
|
./start_screen.hpp
|
|
|
|
./start_screen.cpp
|
|
|
|
./main_screen.hpp
|
|
|
|
./main_screen.cpp
|
2023-07-26 12:55:50 +02:00
|
|
|
|
2023-07-29 20:39:31 +02:00
|
|
|
./tox_client.hpp
|
|
|
|
./tox_client.cpp
|
|
|
|
./auto_dirty.hpp
|
|
|
|
./auto_dirty.cpp
|
2024-07-20 13:18:50 +02:00
|
|
|
./tox_private_impl.hpp
|
2023-07-26 20:09:57 +02:00
|
|
|
|
2023-08-02 19:24:51 +02:00
|
|
|
./theme.hpp
|
|
|
|
|
2023-07-30 16:00:55 +02:00
|
|
|
./image_loader.hpp
|
2023-10-09 21:17:00 +02:00
|
|
|
./image_loader.cpp
|
2023-07-30 16:00:55 +02:00
|
|
|
./image_loader_sdl_bmp.hpp
|
|
|
|
./image_loader_sdl_bmp.cpp
|
2023-08-01 20:17:38 +02:00
|
|
|
./image_loader_stb.hpp
|
|
|
|
./image_loader_stb.cpp
|
2023-08-02 15:06:19 +02:00
|
|
|
./image_loader_webp.hpp
|
|
|
|
./image_loader_webp.cpp
|
2024-03-04 13:38:55 +01:00
|
|
|
./image_loader_qoi.hpp
|
|
|
|
./image_loader_qoi.cpp
|
2024-04-16 00:45:12 +02:00
|
|
|
./image_loader_sdl_image.hpp
|
|
|
|
./image_loader_sdl_image.cpp
|
2023-07-30 16:00:55 +02:00
|
|
|
|
|
|
|
./texture_uploader.hpp
|
2023-07-26 20:09:57 +02:00
|
|
|
./sdlrenderer_texture_uploader.hpp
|
|
|
|
./sdlrenderer_texture_uploader.cpp
|
2023-08-02 19:24:51 +02:00
|
|
|
|
2023-07-31 20:47:22 +02:00
|
|
|
./texture_cache.hpp
|
|
|
|
./texture_cache.cpp
|
2023-08-01 13:21:16 +02:00
|
|
|
./tox_avatar_loader.hpp
|
|
|
|
./tox_avatar_loader.cpp
|
2023-08-02 16:36:34 +02:00
|
|
|
./message_image_loader.hpp
|
|
|
|
./message_image_loader.cpp
|
2024-12-13 00:53:48 +01:00
|
|
|
./bitset_image_loader.hpp
|
|
|
|
./bitset_image_loader.cpp
|
2023-08-02 19:24:51 +02:00
|
|
|
|
2023-10-14 15:59:32 +02:00
|
|
|
./tox_avatar_manager.hpp
|
|
|
|
./tox_avatar_manager.cpp
|
|
|
|
|
2023-08-02 19:24:51 +02:00
|
|
|
./media_meta_info_loader.hpp
|
|
|
|
./media_meta_info_loader.cpp
|
|
|
|
|
2023-07-30 15:10:26 +02:00
|
|
|
./sdl_clipboard_utils.hpp
|
|
|
|
./sdl_clipboard_utils.cpp
|
2023-08-02 19:24:51 +02:00
|
|
|
|
2024-12-25 17:21:07 +01:00
|
|
|
./sys_tray.hpp
|
|
|
|
./sys_tray.cpp
|
|
|
|
|
2024-04-21 14:17:50 +02:00
|
|
|
./chat_gui/theme.hpp
|
|
|
|
./chat_gui/theme.cpp
|
2024-06-19 14:25:09 +02:00
|
|
|
./chat_gui/icons/direct.hpp
|
|
|
|
./chat_gui/icons/direct.cpp
|
|
|
|
./chat_gui/icons/cloud.hpp
|
|
|
|
./chat_gui/icons/cloud.cpp
|
|
|
|
./chat_gui/icons/mail.hpp
|
|
|
|
./chat_gui/icons/mail.cpp
|
2024-06-19 16:10:03 +02:00
|
|
|
./chat_gui/icons/person.hpp
|
|
|
|
./chat_gui/icons/person.cpp
|
|
|
|
./chat_gui/icons/group.hpp
|
|
|
|
./chat_gui/icons/group.cpp
|
2024-04-21 14:17:50 +02:00
|
|
|
./chat_gui/contact_list.hpp
|
|
|
|
./chat_gui/contact_list.cpp
|
2024-04-20 17:57:11 +02:00
|
|
|
./chat_gui/file_selector.hpp
|
|
|
|
./chat_gui/file_selector.cpp
|
|
|
|
./chat_gui/send_image_popup.hpp
|
|
|
|
./chat_gui/send_image_popup.cpp
|
|
|
|
./chat_gui/settings_window.hpp
|
|
|
|
./chat_gui/settings_window.cpp
|
2023-10-19 17:21:45 +02:00
|
|
|
|
2024-07-16 15:02:52 +02:00
|
|
|
./imgui_entt_entity_editor.hpp
|
|
|
|
./object_store_ui.hpp
|
|
|
|
./object_store_ui.cpp
|
|
|
|
|
2023-10-20 21:40:45 +02:00
|
|
|
./tox_ui_utils.hpp
|
|
|
|
./tox_ui_utils.cpp
|
|
|
|
|
2023-11-13 16:23:49 +01:00
|
|
|
./tox_dht_cap_histo.hpp
|
|
|
|
./tox_dht_cap_histo.cpp
|
|
|
|
|
2024-09-23 16:21:01 +02:00
|
|
|
./tox_netprof_ui.hpp
|
|
|
|
./tox_netprof_ui.cpp
|
|
|
|
|
2024-02-02 20:26:50 +01:00
|
|
|
./tox_friend_faux_offline_messaging.hpp
|
|
|
|
./tox_friend_faux_offline_messaging.cpp
|
|
|
|
|
2025-01-09 16:24:59 +01:00
|
|
|
./status_indicator.hpp
|
|
|
|
./status_indicator.cpp
|
|
|
|
|
2023-07-28 18:03:45 +02:00
|
|
|
./chat_gui4.hpp
|
|
|
|
./chat_gui4.cpp
|
2024-09-27 13:26:18 +02:00
|
|
|
|
|
|
|
./frame_streams/frame_stream2.hpp
|
|
|
|
./frame_streams/audio_stream2.hpp
|
|
|
|
./frame_streams/stream_manager.hpp
|
|
|
|
./frame_streams/stream_manager.cpp
|
2024-09-29 18:23:17 +02:00
|
|
|
./frame_streams/locked_frame_stream.hpp
|
2024-09-30 00:07:33 +02:00
|
|
|
./frame_streams/multi_source.hpp
|
2024-09-29 18:23:17 +02:00
|
|
|
|
|
|
|
./frame_streams/voip_model.hpp
|
2024-09-27 16:05:16 +02:00
|
|
|
|
2024-09-27 17:38:14 +02:00
|
|
|
./frame_streams/sdl/sdl_audio2_frame_stream2.hpp
|
|
|
|
./frame_streams/sdl/sdl_audio2_frame_stream2.cpp
|
2024-09-28 11:56:47 +02:00
|
|
|
./frame_streams/sdl/video.hpp
|
2024-10-02 12:42:17 +02:00
|
|
|
./frame_streams/sdl/video_push_converter.hpp
|
2024-10-02 18:44:25 +02:00
|
|
|
./frame_streams/sdl/sdl_video_frame_stream2.hpp
|
|
|
|
./frame_streams/sdl/sdl_video_frame_stream2.cpp
|
2024-09-27 17:38:14 +02:00
|
|
|
|
2024-09-27 16:05:16 +02:00
|
|
|
./stream_manager_ui.hpp
|
|
|
|
./stream_manager_ui.cpp
|
2024-09-28 11:56:47 +02:00
|
|
|
|
|
|
|
./debug_video_tap.hpp
|
|
|
|
./debug_video_tap.cpp
|
2023-07-25 14:56:22 +02:00
|
|
|
)
|
|
|
|
|
2024-11-12 12:53:39 +01:00
|
|
|
if (TOMATO_BREAKPAD)
|
|
|
|
target_sources(tomato PUBLIC
|
|
|
|
./breakpad_client.hpp
|
|
|
|
./breakpad_client.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(tomato PUBLIC breakpad_client)
|
|
|
|
target_compile_definitions(tomato PUBLIC TOMATO_BREAKPAD)
|
|
|
|
endif()
|
|
|
|
|
2024-07-20 13:46:41 +02:00
|
|
|
if (TOMATO_TOX_AV)
|
|
|
|
target_sources(tomato PUBLIC
|
|
|
|
./tox_av.hpp
|
|
|
|
./tox_av.cpp
|
2024-09-29 18:23:17 +02:00
|
|
|
|
|
|
|
./tox_av_voip_model.hpp
|
|
|
|
./tox_av_voip_model.cpp
|
2024-07-20 13:46:41 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(tomato PUBLIC TOMATO_TOX_AV)
|
|
|
|
endif()
|
|
|
|
|
2023-07-25 14:56:22 +02:00
|
|
|
target_compile_features(tomato PUBLIC cxx_std_17)
|
|
|
|
target_link_libraries(tomato PUBLIC
|
|
|
|
solanaceae_util
|
|
|
|
solanaceae_contact
|
|
|
|
solanaceae_message3
|
2024-04-14 13:58:31 +02:00
|
|
|
solanaceae_message_serializer
|
2023-07-25 14:56:22 +02:00
|
|
|
|
2023-07-26 12:55:50 +02:00
|
|
|
solanaceae_plugin
|
2023-07-25 14:56:22 +02:00
|
|
|
|
|
|
|
solanaceae_toxcore
|
|
|
|
solanaceae_tox_contacts
|
|
|
|
solanaceae_tox_messages
|
|
|
|
|
2024-04-12 13:34:20 +02:00
|
|
|
solanaceae_object_store
|
2024-02-13 12:30:29 +01:00
|
|
|
|
2023-07-25 22:47:22 +02:00
|
|
|
SDL3::SDL3
|
|
|
|
|
2023-07-26 01:11:17 +02:00
|
|
|
imgui
|
|
|
|
imgui_backend_sdl3
|
|
|
|
imgui_backend_sdlrenderer3
|
2023-08-01 20:17:38 +02:00
|
|
|
|
|
|
|
stb_image
|
2023-10-06 13:16:45 +02:00
|
|
|
stb_image_write
|
2023-08-02 15:06:19 +02:00
|
|
|
webpdemux
|
2023-10-04 20:17:53 +02:00
|
|
|
libwebpmux # the f why (needed for anim encode)
|
2024-03-04 13:38:55 +01:00
|
|
|
qoi
|
2024-04-16 00:45:12 +02:00
|
|
|
SDL3_image::SDL3_image
|
2023-07-25 14:56:22 +02:00
|
|
|
)
|
|
|
|
|
2024-05-18 12:28:33 +02:00
|
|
|
set_target_properties(tomato PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
2024-10-01 12:05:08 +02:00
|
|
|
########################################
|
|
|
|
|
|
|
|
add_executable(test_frame_stream2_pop_reframer EXCLUDE_FROM_ALL
|
|
|
|
./frame_streams/frame_stream2.hpp
|
|
|
|
./frame_streams/audio_stream2.hpp
|
|
|
|
./frame_streams/locked_frame_stream.hpp
|
|
|
|
./frame_streams/multi_source.hpp
|
|
|
|
|
|
|
|
./frame_streams/test_pop_reframer.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(test_frame_stream2_pop_reframer
|
|
|
|
solanaceae_util
|
|
|
|
)
|
|
|
|
|