update flash.toml

This commit is contained in:
HJfod 2022-12-31 18:00:20 +02:00
parent 07e64c4dc9
commit af86221166
2 changed files with 28 additions and 22 deletions

1
.gitignore vendored
View file

@ -40,6 +40,7 @@
# Ignore build folders
**/build
build
build-docs/
bin
loader/src/internal/about.hpp

View file

@ -6,33 +6,34 @@
name = "Geode"
version = "v1.0.0-beta"
repository = "https://github.com/geode-sdk/geode"
[docs]
include = [
"loader/include/Geode/**/*.hpp",
"loader/include/Geode/**/*.h",
"build/codegenned/Geode/binding/*.hpp"
]
exclude = [
"loader/include/Geode/modify/Comparer.hpp",
"loader/include/Geode/platform/*.hpp",
"loader/include/Geode/c++stl/*.hpp",
# All of the relevant cocos headers are included through Geode headers
"loader/include/Geode/cocos/**/*.h"
]
tree = "https://github.com/geode-sdk/geode/tree/main"
# Root folders to show in the navigation browser
[[browser.roots]]
path = "loader/include/Geode"
include-prefix = "Geode"
[[sources]]
name = "Geode"
dir = "loader/include/Geode"
# todo: Make flash infer this from cmake
strip-include-prefix = "loader/include"
include = [
"**/*.hpp",
"**/*.h",
]
exclude = [
"modify/Comparer.hpp",
"platform/*.hpp",
"c++stl/*.hpp",
# All of the relevant cocos headers are included through Geode headers
"cocos/**/*.h"
]
[[browser.roots]]
path = "build/codegenned/Geode/binding"
include-prefix = "Geode/binding"
[[sources]]
name = "Bindings"
strip-include-prefix = "build/codegenned"
dir = "build/codegenned/Geode/binding"
include = [
"*.hpp"
]
# CMake options
[cmake]
config-args = [
@ -48,8 +49,12 @@ config-args = [
"-DCMAKE_CXX_FLAGS=-m32",
"-DWIN32=On"
]
# We want to build codegen in order to get the bindings
build = true
build-dir = "build-docs"
build-args = [
"--target", "CodegenRun"
]
# The file we use to get all the include paths and such
infer-args-from = "loader/src/main.cpp"