2022-12-30 17:50:12 -05:00
|
|
|
|
|
|
|
# Configuration file for the Flash C++ documentation generator.
|
|
|
|
# https://github.com/hjfod/flash
|
|
|
|
|
|
|
|
[project]
|
|
|
|
name = "Geode"
|
|
|
|
version = "v1.0.0-beta"
|
|
|
|
repository = "https://github.com/geode-sdk/geode"
|
2022-12-31 11:00:20 -05:00
|
|
|
tree = "https://github.com/geode-sdk/geode/tree/main"
|
2022-12-30 17:50:12 -05:00
|
|
|
|
2022-12-31 11:00:20 -05:00
|
|
|
[[sources]]
|
|
|
|
name = "Geode"
|
|
|
|
dir = "loader/include/Geode"
|
|
|
|
# todo: Make flash infer this from cmake
|
|
|
|
strip-include-prefix = "loader/include"
|
2022-12-30 17:50:12 -05:00
|
|
|
include = [
|
2022-12-31 11:00:20 -05:00
|
|
|
"**/*.hpp",
|
|
|
|
"**/*.h",
|
2022-12-30 17:50:12 -05:00
|
|
|
]
|
|
|
|
exclude = [
|
2022-12-31 11:00:20 -05:00
|
|
|
"modify/Comparer.hpp",
|
|
|
|
"platform/*.hpp",
|
|
|
|
"c++stl/*.hpp",
|
2022-12-30 17:50:12 -05:00
|
|
|
# All of the relevant cocos headers are included through Geode headers
|
2022-12-31 11:00:20 -05:00
|
|
|
"cocos/**/*.h"
|
2022-12-30 17:50:12 -05:00
|
|
|
]
|
|
|
|
|
2022-12-31 11:00:20 -05:00
|
|
|
[[sources]]
|
2022-12-30 17:50:12 -05:00
|
|
|
name = "Bindings"
|
2023-01-02 11:35:12 -05:00
|
|
|
dir = "build-docs/codegenned/Geode/binding"
|
|
|
|
strip-include-prefix = "build-docs/codegenned"
|
2022-12-31 11:00:20 -05:00
|
|
|
include = [
|
|
|
|
"*.hpp"
|
|
|
|
]
|
2023-01-02 11:35:12 -05:00
|
|
|
# Bindings are generated at compile time
|
|
|
|
exists-online = false
|
2022-12-31 11:00:20 -05:00
|
|
|
|
|
|
|
# CMake options
|
2022-12-30 17:50:12 -05:00
|
|
|
|
|
|
|
[cmake]
|
|
|
|
config-args = [
|
|
|
|
"-G", "Ninja",
|
|
|
|
"-DCMAKE_CXX_COMPILER=Clang",
|
|
|
|
"-DCMAKE_C_COMPILER=Clang",
|
|
|
|
"-DGEODE_DISABLE_CLI_CALLS=On",
|
|
|
|
"-DGEODE_PLATFORM_NAME=Win32",
|
|
|
|
"-DCMAKE_EXPORT_COMPILE_COMMANDS=On",
|
|
|
|
"-DGEODE_DISABLE_PRECOMPILED_HEADERS=On",
|
|
|
|
"-DGEODE_CODEGEN_CMAKE_ARGS=-DCMAKE_CXX_COMPILER=Clang;-DCMAKE_C_COMPILER=Clang",
|
|
|
|
"-DCMAKE_C_FLAGS=-m32",
|
|
|
|
"-DCMAKE_CXX_FLAGS=-m32",
|
|
|
|
"-DWIN32=On"
|
|
|
|
]
|
2022-12-31 11:00:20 -05:00
|
|
|
# We want to build codegen in order to get the bindings
|
2022-12-30 17:50:12 -05:00
|
|
|
build = true
|
2022-12-31 11:00:20 -05:00
|
|
|
build-dir = "build-docs"
|
2022-12-30 17:50:12 -05:00
|
|
|
build-args = [
|
|
|
|
"--target", "CodegenRun"
|
|
|
|
]
|
2022-12-31 11:00:20 -05:00
|
|
|
|
|
|
|
# The file we use to get all the include paths and such
|
2022-12-30 17:50:12 -05:00
|
|
|
infer-args-from = "loader/src/main.cpp"
|