Skip to content
Snippets Groups Projects
Commit 57bcc77d authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

first attempt at flatpak support

parent 0f55c89b
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ builds/ ...@@ -3,6 +3,7 @@ builds/
cmake-build-debug/ cmake-build-debug/
cmake-build-debug-coverage/ cmake-build-debug-coverage/
imgui.ini imgui.ini
.flatpak-builder/
# dotfiles # dotfiles
.idea/ .idea/
......
[submodule "build-aux/shared-modules"]
path = build-aux/shared-modules
url = https://github.com/flathub/shared-modules.git
app-id: com.fossgalaxy.fggl.demo
runtime: org.freedesktop.Platform.GL.default
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: fggl-demo
modules:
- name: glfw
buildsystem: cmake-ninja
builddir: true
sources:
- type: archive
url: https://github.com/glfw/glfw/releases/download/3.3.4/glfw-3.3.4.zip
sha256: bbd2c42c660b725e9755eb417e40b373f0d4c03138c9b2e210d02cd308bd99cd
cleanup:
- /include
- /lib/pkgconfig
- modules/glm-0.9.9.8.json
- shared-modules/glew/glew.json
- shared-modules/glu/glu-9.json
- modules/googletest.yml
- name: fggl
buildsystem: cmake
sources:
- type: dir
path: ../
{
"name": "glm",
"buildsystem": "simple",
"build-commands": [
"mkdir -p /app/include/",
"cp -vr glm /app/include/",
"rm -v /app/include/glm/CMakeLists.txt",
"mkdir -p /app/lib/",
"cp -vr cmake /app/lib/"
],
"sources": [
{
"type": "git",
"url": "https://github.com/g-truc/glm.git",
"tag": "0.9.9.8"
}
],
"cleanup": [
"/include",
"/lib/cmake"
]
}
name: googletest
buildsystem: cmake
sources:
- type: archive
url: https://github.com/google/googletest/archive/refs/tags/release-1.11.0.zip
sha256: 353571c2440176ded91c2de6d6cd88ddd41401d14692ec1f99e35d013feda55a
Subproject commit 0534d3276b3966e87abacd163f757454b6fcf724
configure_file(FgglConfig.h.in FgglConfig.h) configure_file(FgglConfig.h.in FgglConfig.h)
set(CMAKE_CXX_CLANG_TIDY clang-tidy -checks=*,-llvmlibc-*,-fuchsia-*,-cppcoreguidelines-*,-llvm-*) find_program(CLANG_TIDY_FOUND clang-tidy)
if ( CLANG_TIDY_FOUND )
set(CMAKE_CXX_CLANG_TIDY clang-tidy -checks=*,-llvmlibc-*,-fuchsia-*,-cppcoreguidelines-*,-llvm-*)
endif()
add_library(fggl fggl.cpp add_library(fggl fggl.cpp
ecs/ecs.cpp ecs/ecs.cpp
......
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
# GTest Dependency # GTest Dependency
find_package(GTest)
if ( NOT GTest_FOUND )
include(FetchContent) include(FetchContent)
FetchContent_Declare( FetchContent_Declare(
googletest googletest
...@@ -9,5 +11,6 @@ FetchContent_Declare( ...@@ -9,5 +11,6 @@ FetchContent_Declare(
# For Windows: Prevent overriding the parent project's compiler/linker settings # For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest) FetchContent_MakeAvailable(googletest)
endif ()
add_subdirectory(testfggl) add_subdirectory(testfggl)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment