Skip to content

Commit

Permalink
Merge pull request #5 from TAServers/tidy-interface
Browse files Browse the repository at this point in the history
Drag MDLParser into the modern day
  • Loading branch information
Derpius authored Jul 28, 2024
2 parents 1916489 + bcf52f0 commit b632f32
Show file tree
Hide file tree
Showing 35 changed files with 5,028 additions and 1,131 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Doxygen
run-name: "Build and deploy documentation"
on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build documentation
uses: mattnotmitt/[email protected]

- name: Upload artefact
uses: actions/upload-pages-artifact@v3
with:
path: docs/html

deploy:
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
id: deployment
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@

# Build Directory
out

# Docs
docs
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "doxygen-awesome-css"]
path = doxygen-awesome-css
url = https://github.com/jothepro/doxygen-awesome-css.git
32 changes: 23 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
cmake_minimum_required (VERSION 3.20)
cmake_minimum_required(VERSION 3.20)

project("MDLParser" CXX)
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 20)

add_library(
${PROJECT_NAME}
"source/MDLParser.cpp"
"source/VVDParser.cpp"
"source/VTXParser.cpp"
add_library(MDLParser
source/vvd.cpp
source/vtx.cpp
source/enums.hpp
source/errors.hpp
source/limits.hpp
source/structs/common.hpp
source/structs/vvd.hpp
source/structs/vtx.hpp
source/structs/mdl.hpp
source/vvd.hpp
source/vtx.hpp
source/helpers/check-bounds.hpp
source/helpers/offset-data-view.cpp
source/helpers/offset-data-view.hpp
source/mdl.cpp
source/mdl.hpp
source/accessors.hpp
source/accessors.cpp
)

target_include_directories(
${PROJECT_NAME} PRIVATE
"source"
MDLParser PRIVATE
"source"
)
Loading

0 comments on commit b632f32

Please sign in to comment.