Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,6 @@ jobs:
sudo apt install cmake -y
echo Installing automake...
sudo apt install autoconf autoconf-archive automake libtool
echo Installing mono...
sudo apt install mono-complete
- uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: "${{ github.workspace }}/lib/vcpkg"
vcpkgJsonGlob: "**/vcpkg.json"
- name: "Setup NuGet Credentials"
run: |
mono `vcpkg fetch nuget | tail -n 1` \
sources add \
-source "https://nuget.pkg.github.com/team-gets/index.json" \
-storepasswordincleartext \
-name "GitHub" \
-username "team-gets" \
-password "${{ secrets.GITHUB_TOKEN }}"
mono `vcpkg fetch nuget | tail -n 1` \
setapikey "${{ secrets.GITHUB_TOKEN }}" \
-source "https://nuget.pkg.github.com/team-gets/index.json"
- name: Prepare CMake
run: |
cmake -S . -B build --preset=linux-gcc
Expand All @@ -81,23 +63,6 @@ jobs:
target: "desktop"
arch: "win64_msvc2022_64"
modules: "qtcharts"
- uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: "${{ github.workspace }}/lib/vcpkg"
vcpkgJsonGlob: "**/vcpkg.json"
- name: "Setup NuGet Credentials"
shell: "bash"
run: |
`./lib/vcpkg/vcpkg fetch nuget | tail -n 1` \
sources add \
-source "https://nuget.pkg.github.com/team-gets/index.json" \
-storepasswordincleartext \
-name "GitHub" \
-username "team-gets" \
-password "${{ secrets.GITHUB_TOKEN }}"
`./lib/vcpkg/vcpkg fetch nuget | tail -n 1` \
setapikey "${{ secrets.GITHUB_TOKEN }}" \
-source "https://nuget.pkg.github.com/team-gets/index.json"
- uses: ilammy/msvc-dev-cmd@v1.13.0
- name: Prepare CMake
run: |
Expand Down
6 changes: 0 additions & 6 deletions .gitmodules

This file was deleted.

30 changes: 2 additions & 28 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
cmake_minimum_required(VERSION 3.30...4.0)
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/lib/vcpkg/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "Vcpkg toolchain file" FORCE)

project(rig_gui
LANGUAGES CXX C
Expand All @@ -25,38 +23,14 @@ qt_standard_project_setup(REQUIRES 6.10)
#target_compile_warn_all(guidev)
#
#target_link_libraries(guidev PRIVATE ${STD_APP_QT6_DEPS})
#
## Ideally you would quickly iter on QML designs by using the dev gui app
#qt_add_qml_module(qml.a_circle
# URI qml.a_circle
# OUTPUT_DIRECTORY "qml/a_circle"
# QML_FILES
# "qml/circle.qml"
#)

# Plotting Interface
add_library(plotting_iface SHARED ${PLOTTING_SOURCES})
target_link_libraries(plotting_iface PRIVATE Qt6::Core Qt6::Widgets)
target_link_libraries(plotting_iface PUBLIC Qt6::Core Qt6::Widgets)
target_include_directories(plotting_iface PUBLIC ${PLOTTING_SRC_DIR})
target_compile_definitions(plotting_iface PRIVATE COMPILING_PLOT_API_DLL)
target_compile_warn_all(plotting_iface)

find_package(PNG REQUIRED)
add_library(Libpng::Libpng ALIAS PNG::PNG) # Why does the vcpkg version not do this/why does GR do this
add_subdirectory_silence_warnings("${CMAKE_SOURCE_DIR}/lib/gr")

# GR Backend Compilation
add_library(gr_backend SHARED ${GR_BKND_SOURCES})
get_target_property(QT6GR_INCLUDES GR::GR INTERFACE_INCLUDE_DIRECTORIES)
target_include_directories(gr_backend PUBLIC
${QT6GR_INCLUDES} "${CMAKE_SOURCE_DIR}/src")

target_link_libraries(gr_backend PUBLIC plotting_iface)
target_link_libraries(gr_backend PUBLIC Qt6::Core Qt6::Widgets)
target_link_libraries(gr_backend PUBLIC GR::qt6gr qt6plugin)
target_compile_definitions(gr_backend PRIVATE COMPILING_GR_BACKEND_DLL)
target_compile_warn_all(gr_backend)

# QChart Backend Compilation
add_library(qchart_backend SHARED ${QCHART_BKND_SOURCES})
target_include_directories(qchart_backend PUBLIC "${CMAKE_SOURCE_DIR}/src")
Expand All @@ -76,4 +50,4 @@ target_include_directories(widgets_recreation PRIVATE ${STD_APP_INCLUDES})
target_compile_warn_all(widgets_recreation)

target_link_libraries(widgets_recreation PRIVATE ${STD_APP_QT6_DEPS})
target_link_libraries(widgets_recreation PRIVATE gr_backend qchart_backend)
target_link_libraries(widgets_recreation PRIVATE qchart_backend)
8 changes: 2 additions & 6 deletions cmake/cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ set(WIDGET_SOURCES
${DISPLAYER_SOURCES})

set(PLOTTING_SOURCES
"${PLOTTING_SRC_DIR}/Plot2D.cpp"
"${PLOTTING_SRC_DIR}/Container.cpp")

set(GR_BKND_SOURCES
"${PLOTTING_SRC_DIR}/Backend/CoreGR.cpp")
"${PLOTTING_SRC_DIR}/Plot2D.cpp")

set(QCHART_BKND_SOURCES
"${PLOTTING_SRC_DIR}/Backend/CoreQChart.cpp")
Expand Down Expand Up @@ -76,4 +72,4 @@ function(add_subdirectory_silence_warnings IN_DIRECTORY)
add_subdirectory("${IN_DIRECTORY}" EXCLUDE_FROM_ALL)

set_directory_properties(PROPERTIES COMPILE_OPTIONS "${oldCompileOpts}")
endfunction(set_directory_compile_silence_warnings)
endfunction(add_subdirectory_silence_warnings IN_DIRECTORY)
1 change: 0 additions & 1 deletion lib/gr
Submodule gr deleted from 53ed71
1 change: 0 additions & 1 deletion lib/vcpkg
Submodule vcpkg deleted from 4bc3a4
13 changes: 0 additions & 13 deletions src/Plotting/Backend/APIGR.hpp

This file was deleted.

92 changes: 0 additions & 92 deletions src/Plotting/Backend/ColorGR.hpp

This file was deleted.

Loading