Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Usage in client cmake: ```cmake set(FLECS_M0DULE ON CACHE BOOL "Build flecs module" FORCE) add_subdirectory(path/to/flecs) target_compile_features(flecs-module PUBLIC cxx_std_23) target_link_libraries( someProjectName PRIVATE flecs-module ) ``` In the code, it is then possible to use `import flecs;` to import all the flecs symbols. Still investigating why reflection seems to break, disabled in the module for now. Maintainance: - structs exposed by flecs must be tagged with `FLECS_API_STRUCT` - code within the c++ addon tagged with `FLECS_API` are exposed - globals must be tagged with `FLECS_API_GLOBAL`, which becomes `static` in headers, and export in the module.
- Loading branch information