Skip to content
Draft
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
75 changes: 0 additions & 75 deletions .github/workflows/build/osx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ inputs:
default: true
osxTargetDeploymentVersion:
default: 13.3
freeTypeArchive:
default: https://download.savannah.gnu.org/releases/freetype/freetype-2.12.1.tar.gz
ftglRepo:
default: https://github.com/disorderedmaterials/ftgl-2.4.0
cacheOnly:
type: boolean
default: false
Expand Down Expand Up @@ -37,7 +33,6 @@ runs:
set -ex
brew update-reset
brew install gsl
brew uninstall --ignore-dependencies freetype

- name: Get ANTLR
working-directory: ${{ runner.temp }}
Expand All @@ -57,74 +52,6 @@ runs:
export PATH="$(python3 -m site --user-base)/bin:$PATH"
aqt install-qt --outputdir ${{ runner.temp }}/qt mac desktop ${{ inputs.qtVersion }} -m all

#
# Build / Retrieve Freetype
#

- name: Retrieve FreeType Cache
id: cache-freetype
uses: actions/cache@v4
with:
key: osx-freetype
path: |
${{ runner.temp }}/freetype-latest
${{ runner.temp }}/freetype-install

- name: Download FreeType
if: ${{ steps.cache-freetype.outputs.cache-hit != 'true' }}
working-directory: ${{ runner.temp }}
shell: bash
run: |
set -ex
wget ${{ inputs.freeTypeArchive }} -Ofreetype.tgz
tar -zxvf freetype.tgz
rm freetype.tgz
mv freetype-* freetype-latest

- name: Build FreeType
if: ${{ steps.cache-freetype.outputs.cache-hit != 'true' }}
working-directory: ${{ runner.temp }}
shell: bash
run: |
set -ex
mkdir freetype-build && cd freetype-build
cmake ../freetype-latest -G Ninja -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz:bool=true -DCMAKE_DISABLE_FIND_PACKAGE_BZip2:bool=true -DCMAKE_DISABLE_FIND_PACKAGE_PNG:bool=true -DCMAKE_DISABLE_FIND_PACKAGE_ZLIB:bool=true -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec:bool=true -DCMAKE_INSTALL_PREFIX:path=../freetype-install -DBUILD_SHARED_LIBS:bool=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=${{ inputs.osxTargetDeploymentVersion }}
cmake --build . --target install --config Release

#
# Build / Retrieve FTGL
#

- name: Retrieve FTGL Cache
id: cache-ftgl
uses: actions/cache@v4
with:
key: osx-ftgl
path: |
${{ runner.temp }}/ftgl-latest
${{ runner.temp }}/ftgl-install

- name: Download FTGL
if: ${{ steps.cache-ftgl.outputs.cache-hit != 'true' }}
working-directory: ${{ runner.temp }}
shell: bash
run: |
set -ex
git clone ${{ inputs.ftglRepo }} ftgl-latest

- name: Build FTGL
if: ${{ steps.cache-ftgl.outputs.cache-hit != 'true' }}
working-directory: ${{ runner.temp }}
shell: bash
run: |
set -ex
mkdir ftgl-build && cd ftgl-build
INCLUDE="${RUNNER_TEMP}/freetype-latest;$INCLUDE"
LIB="${RUNNER_TEMP}/freetype-install/lib;${RUNNER_TEMP}/freetype-install/bin;$LIB"
export FREETYPE_DIR="${RUNNER_TEMP}/freetype-install"
cmake ../ftgl-latest -G Ninja -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_INSTALL_PREFIX:path=../ftgl-install -DBUILD_SHARED_LIBS:bool=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=${{ inputs.osxTargetDeploymentVersion }}
cmake --build . --target install --config Release

#
# Main Build
#
Expand Down Expand Up @@ -155,8 +82,6 @@ runs:
export PATH="$(python3 -m site --user-base)/bin:$PATH"
Qt6_DIR=${{ runner.temp }}/qt/${{ inputs.qtVersion }}/macos/lib/cmake/Qt6
QT_BASE_DIR=${{ runner.temp }}/qt/${{ inputs.qtVersion }}/macos
export FTGL_DIR="${RUNNER_TEMP}/ftgl-install"
export FREETYPE_DIR="${RUNNER_TEMP}/freetype-install"

# Find ANTLR4
ANTLR_EXE="${{ runner.temp }}/antlr-${{ inputs.antlrVersion }}-complete.jar"
Expand Down
80 changes: 0 additions & 80 deletions .github/workflows/build/windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ description: Build on Windows
inputs:
threading:
default: true
freeTypeArchive:
default: https://download.savannah.gnu.org/releases/freetype/freetype-2.12.1.tar.gz
ftglRepo:
default: https://github.com/disorderedmaterials/ftgl-2.4.0
cacheOnly:
type: boolean
default: false
Expand Down Expand Up @@ -58,82 +54,6 @@ runs:
- name: Setup MSVC Compiler
uses: ilammy/msvc-dev-cmd@v1

#
# Build / Retrieve Freetype
#

- name: Retrieve FreeType Cache
id: cache-freetype
uses: actions/cache@v4
with:
key: windows-freetype
path: |
${{ runner.temp }}\freetype-latest
${{ runner.temp }}\freetype-install

- name: Download FreeType
if: ${{ steps.cache-freetype.outputs.cache-hit != 'true' }}
working-directory: ${{ runner.temp }}
shell: bash
run: |
set -ex
wget ${{ inputs.freeTypeArchive }} -Ofreetype.tgz
tar -zxvf freetype.tgz
rm freetype.tgz
mv freetype-* freetype-latest

- name: Build FreeType
if: ${{ steps.cache-freetype.outputs.cache-hit != 'true' }}
working-directory: ${{ runner.temp }}
shell: bash
run: |
set -ex
mkdir freetype-build && cd freetype-build
cmake ../freetype-latest -G Ninja -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_C_COMPILER=cl -DBUILD_SHARED_LIBS:STRING=ON -DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz:bool=true -DCMAKE_DISABLE_FIND_PACKAGE_BZip2:bool=true -DCMAKE_DISABLE_FIND_PACKAGE_PNG:bool=true -DCMAKE_DISABLE_FIND_PACKAGE_ZLIB:bool=true -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec:bool=true -DCMAKE_INSTALL_PREFIX:path=../freetype-install
cmake --build . --target install --config Release

#
# Build / Retrieve FTGL
#

- name: Retrieve FTGL Cache
id: cache-ftgl
uses: actions/cache@v4
with:
key: windows-ftgl
path: |
${{ runner.temp }}\ftgl-latest
${{ runner.temp }}\ftgl-install

- name: Download FTGL
if: ${{ steps.cache-ftgl.outputs.cache-hit != 'true' }}
working-directory: ${{ runner.temp }}
shell: bash
run: |
set -ex
git clone ${{ inputs.ftglRepo }} ftgl-latest

- name: Build FTGL
if: ${{ steps.cache-ftgl.outputs.cache-hit != 'true' }}
working-directory: ${{ runner.temp }}
shell: bash
run: |
set -ex
mkdir ftgl-build && cd ftgl-build
INCLUDE="${RUNNER_TEMP}\freetype-latest;$INCLUDE"
LIB="${RUNNER_TEMP}\freetype-install\lib;${RUNNER_TEMP}\freetype-install\bin;$LIB"
cmake ../ftgl-latest -G Ninja -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_INSTALL_PREFIX:path=../ftgl-install
cmake --build . --target install --config Release

- name: Get ANTLR and Java
working-directory: ${{ runner.temp }}
shell: bash
run: |
set -ex
wget https://www.antlr.org/download/antlr-${{ inputs.antlrVersion }}-complete.jar -Oantlr-${{ inputs.antlrVersion }}-complete.jar
wget https://download.oracle.com/java/21/latest/jdk-21_windows-x64_bin.zip -Ojava.zip
unzip java.zip

#
# Main Build
#
Expand Down
20 changes: 0 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,13 @@ if(MULTI_THREADING)
endif(MULTI_THREADING)

if(GUI)
find_package(Freetype REQUIRED)
find_package(FTGL REQUIRED)

list(APPEND CMAKE_PREFIX_PATH "${QT_BASE_DIR}")
find_package(OpenGL REQUIRED)
find_package(
Qt6
COMPONENTS Core
DBusTools
Gui
Widgets
OpenGL
OpenGLWidgets
Qml
QmlModels
QmlTools
Expand Down Expand Up @@ -153,11 +147,6 @@ if(WIN32)
set(gui_target_name Dissolve-GUI)
set(qmlgui_target_name Dissolve-GUI-QML)

# Adjust external include directories for GUI
if(GUI)
include_directories(${FTGL_INCLUDE_DIRS})
endif(GUI)

# Format requires on MSVC std:c++latest, so we have to ask for C++23, despite the fact it's part of the C++20 standard.
set(CMAKE_CXX_STANDARD 23)

Expand Down Expand Up @@ -195,15 +184,6 @@ if(APPLE)
set(qmlgui_target_name dissolve-gui-qml)

add_definitions(-D_MAC)

if(GUI)
# Find GLUT
find_package(GLUT REQUIRED)

# Adjust external include directories for GUI
include_directories(${FTGL_INCLUDE_DIRS})
include_directories(${FREETYPE_INCLUDE_DIRS})
endif(GUI)
endif(APPLE)

set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
Expand Down
3 changes: 0 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
gbenchmark
cmake
cli11
freetype
gsl
inetutils # for rsh
ninja
Expand All @@ -56,8 +55,6 @@
];
gui_libs = system: pkgs: qt: [
pkgs.glib
pkgs.freetype
pkgs.ftgl
pkgs.libGL.dev
pkgs.libglvnd
pkgs.libglvnd.dev
Expand Down
6 changes: 0 additions & 6 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ target_include_directories(
gui
PRIVATE ${PROJECT_SOURCE_DIR}/src
${PROJECT_BINARY_DIR}/src
${FREETYPE_INCLUDE_DIRS}
${Qt6Core_INCLUDE_DIRS}
${Qt6OpenGL_INCLUDE_DIRS}
${Qt6OpenGLWidgets_INCLUDE_DIRS}
${Qt6Widgets_INCLUDE_DIRS}
)

Expand All @@ -29,8 +26,6 @@ target_link_libraries(
widgets
models
base
Qt6::OpenGL
Qt6::OpenGLWidgets
Qt6::Quick
Qt6::QuickControls2
Qt6::Core
Expand All @@ -42,7 +37,6 @@ target_link_libraries(

# Subdirectories
add_subdirectory(delegates)
add_subdirectory(render)
add_subdirectory(widgets)
add_subdirectory(models)
add_subdirectory(icons)
107 changes: 0 additions & 107 deletions src/gui/render/CMakeLists.txt

This file was deleted.

Loading
Loading