set(PP_LEGACY_ENGINE_SOURCES
    src/hmd.cpp
    src/log.cpp
    src/mp4enc.cpp
    src/util.cpp
    src/wacom.cpp
)

set(PP_LEGACY_ASSETS_IO_SOURCES
    src/abr.cpp
    src/asset.cpp
    src/binary_stream.cpp
    src/image.cpp
    src/serializer.cpp
    src/settings.cpp
)

set(PP_LEGACY_PAINT_DOCUMENT_SOURCES
    src/action.cpp
    src/bezier.cpp
    src/brush.cpp
    src/canvas.cpp
    src/canvas_actions.cpp
    src/canvas_layer.cpp
    src/event.cpp
)

set(PP_LEGACY_RENDERER_GL_SOURCES
    src/font.cpp
    src/rtt.cpp
    src/shader.cpp
    src/shape.cpp
    src/texture.cpp
)

set(PP_LEGACY_UI_CORE_SOURCES
    src/layout.cpp
    src/node.cpp
    src/node_border.cpp
    src/node_button.cpp
    src/node_button_custom.cpp
    src/node_checkbox.cpp
    src/node_combobox.cpp
    src/node_icon.cpp
    src/node_image.cpp
    src/node_image_texture.cpp
    src/node_input_box.cpp
    src/node_popup_menu.cpp
    src/node_progress_bar.cpp
    src/node_remote_page.cpp
    src/node_scroll.cpp
    src/node_settings.cpp
    src/node_shorcuts.cpp
    src/node_slider.cpp
    src/node_text.cpp
    src/node_text_input.cpp
)

set(PP_LEGACY_APP_SOURCES
    src/canvas_modes.cpp
    src/legacy_app_shell_services.cpp
    src/legacy_app_shell_services.h
    src/legacy_canvas_tool_services.cpp
    src/legacy_canvas_tool_services.h
    src/legacy_document_canvas_services.cpp
    src/legacy_document_canvas_services.h
    src/legacy_document_layer_services.cpp
    src/legacy_document_layer_services.h
    src/legacy_history_services.cpp
    src/legacy_history_services.h
    src/legacy_recording_services.cpp
    src/legacy_recording_services.h
    src/pch.cpp
)

set(PP_PANOPAINTER_APP_SOURCES
    src/app.cpp
    src/app_cloud.cpp
    src/app_commands.cpp
    src/app_dialogs.cpp
    src/app_events.cpp
    src/app_layout.cpp
    src/app_shaders.cpp
    src/app_vr.cpp
    src/legacy_app_preference_services.cpp
    src/legacy_app_preference_services.h
    src/legacy_app_startup_services.cpp
    src/legacy_app_startup_services.h
    src/legacy_brush_package_import_services.cpp
    src/legacy_brush_package_import_services.h
    src/legacy_brush_package_export_services.cpp
    src/legacy_brush_package_export_services.h
    src/legacy_cloud_services.cpp
    src/legacy_cloud_services.h
    src/legacy_document_export_services.cpp
    src/legacy_document_export_services.h
    src/legacy_document_open_services.cpp
    src/legacy_document_open_services.h
    src/legacy_document_session_services.cpp
    src/legacy_document_session_services.h
    src/platform_legacy/legacy_platform_services.cpp
    src/platform_legacy/legacy_platform_services.h
    src/version.cpp
)

set(PP_PANOPAINTER_UI_SOURCES
    src/legacy_brush_ui_services.cpp
    src/legacy_brush_ui_services.h
    src/legacy_document_animation_services.cpp
    src/legacy_document_animation_services.h
    src/legacy_grid_ui_services.cpp
    src/legacy_grid_ui_services.h
    src/legacy_quick_ui_services.cpp
    src/legacy_quick_ui_services.h
    src/node_about.cpp
    src/node_canvas.cpp
    src/node_changelog.cpp
    src/node_color_quad.cpp
    src/node_colorwheel.cpp
    src/node_dialog_browse.cpp
    src/node_dialog_cloud.cpp
    src/node_dialog_export_ppbr.cpp
    src/node_dialog_layer_rename.cpp
    src/node_dialog_open.cpp
    src/node_dialog_picker.cpp
    src/node_dialog_resize.cpp
    src/node_message_box.cpp
    src/node_metadata.cpp
    src/node_panel_animation.cpp
    src/node_panel_brush.cpp
    src/node_panel_color.cpp
    src/node_panel_floating.cpp
    src/node_panel_grid.cpp
    src/node_panel_layer.cpp
    src/node_panel_quick.cpp
    src/node_panel_stroke.cpp
    src/node_stroke_preview.cpp
    src/node_tool_bucket.cpp
    src/node_usermanual.cpp
    src/node_viewport.cpp
)

set(PP_WINDOWS_PLATFORM_SOURCES
    src/main.cpp
    src/platform_windows/windows_platform_services.cpp
    src/platform_windows/windows_platform_services.h
)

set(PP_WINDOWS_APP_SOURCES
    PanoPainter.rc
)

set(PP_VENDOR_SOURCES
    libs/fmt/src/format.cc
    libs/fmt/src/posix.cc
    libs/glad/src/glad.c
    libs/glad/src/glad_wgl.c
    libs/hash-library/md5.cpp
    libs/jpeg/jpgd.cpp
    libs/jpeg/jpge.cpp
    libs/nanort/nanort.cc
    libs/poly2tri/poly2tri/common/shapes.cc
    libs/poly2tri/poly2tri/sweep/advancing_front.cc
    libs/poly2tri/poly2tri/sweep/cdt.cc
    libs/poly2tri/poly2tri/sweep/sweep.cc
    libs/poly2tri/poly2tri/sweep/sweep_context.cc
    libs/sqlite3/sqlite3.c
    libs/tinyxml2/tinyxml2.cpp
    libs/wacom/WinTab/Utils.cpp
    libs/yoga/yoga/event/event.cpp
    libs/yoga/yoga/internal/experiments.cpp
    libs/yoga/yoga/log.cpp
    libs/yoga/yoga/Utils.cpp
    libs/yoga/yoga/YGConfig.cpp
    libs/yoga/yoga/YGEnums.cpp
    libs/yoga/yoga/YGLayout.cpp
    libs/yoga/yoga/YGNode.cpp
    libs/yoga/yoga/YGNodePrint.cpp
    libs/yoga/yoga/YGStyle.cpp
    libs/yoga/yoga/YGValue.cpp
    libs/yoga/yoga/Yoga.cpp
)

set(PP_LEGACY_INCLUDE_DIRS
    "${CMAKE_CURRENT_SOURCE_DIR}/src"
    "${CMAKE_CURRENT_SOURCE_DIR}"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/base64"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/bugtrap-client/include"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/curl-win/include"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/fmt/include"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/glad/include"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/glm"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/hash-library"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/jpeg"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/libyuv/include"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/mp4v2/include"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/nanort"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/openh264/include"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/openvr/headers"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/poly2tri/poly2tri"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/sqlite3"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/stb"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/tinyxml2"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/wacom"
    "${CMAKE_CURRENT_SOURCE_DIR}/libs/yoga"
)
