Skip to content

Commit

Permalink
Remove COREDOC addon, move logic to meta/doc addons
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Mar 13, 2024
1 parent 41fc385 commit bc933e6
Show file tree
Hide file tree
Showing 22 changed files with 699 additions and 723 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,6 @@ jobs:
bake rebuild --strict -D FLECS_CUSTOM_BUILD -D FLECS_DOC
bake rebuild --strict --cfg release -D FLECS_CUSTOM_BUILD -D FLECS_DOC
- name: FLECS_COREDOC
run: |
bake rebuild --strict -D FLECS_CUSTOM_BUILD -D FLECS_COREDOC
bake rebuild --strict --cfg release -D FLECS_CUSTOM_BUILD -D FLECS_COREDOC
- name: FLECS_LOG
run: |
bake rebuild --strict -D FLECS_CUSTOM_BUILD -D FLECS_LOG
Expand Down
1 change: 0 additions & 1 deletion docs/Quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ Addon | Description | Define
[Expr](/flecs/group__c__addons__expr.html) | String format optimized for ECS data | FLECS_EXPR |
[JSON](/flecs/group__c__addons__json.html) | JSON format | FLECS_JSON |
[Doc](/flecs/group__c__addons__doc.html) | Add documentation to components, systems & more | FLECS_DOC |
[Coredoc](/flecs/group__c__addons__coredoc.html) | Documentation for builtin components & modules | FLECS_COREDOC |
[Http](/flecs/group__c__addons__http.html) | Tiny HTTP server for processing simple requests | FLECS_HTTP |
[Rest](/flecs/group__c__addons__rest.html) | REST API for showing entities in the browser | FLECS_REST |
[Parser](/flecs/group__c__addons__parser.html) | Create entities & queries from strings | FLECS_PARSER |
Expand Down
1 change: 0 additions & 1 deletion docs/cfg/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,6 @@ INCLUDE_FILE_PATTERNS =
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

PREDEFINED = FLECS_APP \
FLECS_COREDOC \
FLECS_DOC \
FLECS_EXPR \
FLECS_HTTP \
Expand Down
645 changes: 347 additions & 298 deletions flecs.c

Large diffs are not rendered by default.

62 changes: 2 additions & 60 deletions flecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
#define FLECS_VERSION_MAJOR 3
#define FLECS_VERSION_MINOR 2
#define FLECS_VERSION_PATCH 12
#define FLECS_VERSION_(major, minor, patch) #major "." #minor "." #patch
#define FLECS_VERSION__(major, minor, patch) #major "." #minor "." #patch
#define FLECS_VERSION_(major, minor, patch) FLECS_VERSION__(major, minor, patch)
#define FLECS_VERSION FLECS_VERSION_(FLECS_VERSION_MAJOR, FLECS_VERSION_MINOR, FLECS_VERSION_PATCH)

/** @def FLECS_CONFIG_HEADER
Expand Down Expand Up @@ -191,7 +192,6 @@
#define FLECS_EXPR /**< Parsing strings to/from component values */
#define FLECS_JSON /**< Parsing JSON to/from component values */
#define FLECS_DOC /**< Document entities & components */
#define FLECS_COREDOC /**< Documentation for core entities & components */
#define FLECS_LOG /**< When enabled ECS provides more detailed logs */
#define FLECS_APP /**< Application addon */
#define FLECS_OS_API_IMPL /**< Default implementation for OS API */
Expand Down Expand Up @@ -9617,9 +9617,6 @@ int ecs_value_move_ctor(
#ifdef FLECS_NO_DOC
#undef FLECS_DOC
#endif
#ifdef FLECS_NO_COREDOC
#undef FLECS_COREDOC
#endif
#ifdef FLECS_NO_LOG
#undef FLECS_LOG
#endif
Expand Down Expand Up @@ -12519,61 +12516,6 @@ void FlecsMonitorImport(

#endif

#ifdef FLECS_COREDOC
#ifdef FLECS_NO_COREDOC
#error "FLECS_NO_COREDOC failed: COREDOC is required by other addons"
#endif
/**
* @file addons/coredoc.h
* @brief Core doc module.
*
* The core doc module imports documentation and reflection data for core
* components, tags and systems.
*/

#ifdef FLECS_COREDOC

#ifndef FLECS_DOC
#define FLECS_DOC
#endif

#ifndef FLECS_META
#define FLECS_META
#endif

#ifndef FLECS_COREDOC_H
#define FLECS_COREDOC_H

#ifdef __cplusplus
extern "C" {
#endif

/**
* @defgroup c_addons_coredoc Coredoc
* @ingroup c_addons
* Module that adds documentation and reflection to core entities.
*
* @{
*/

/* Module import */

FLECS_API
void FlecsCoreDocImport(
ecs_world_t *world);

/** @} */

#ifdef __cplusplus
}
#endif

#endif

#endif

#endif

#ifdef FLECS_DOC
#ifdef FLECS_NO_DOC
#error "FLECS_NO_DOC failed: DOC is required by other addons"
Expand Down
4 changes: 2 additions & 2 deletions include/flecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
#define FLECS_VERSION_MAJOR 3
#define FLECS_VERSION_MINOR 2
#define FLECS_VERSION_PATCH 12
#define FLECS_VERSION_(major, minor, patch) #major "." #minor "." #patch
#define FLECS_VERSION__(major, minor, patch) #major "." #minor "." #patch
#define FLECS_VERSION_(major, minor, patch) FLECS_VERSION__(major, minor, patch)
#define FLECS_VERSION FLECS_VERSION_(FLECS_VERSION_MAJOR, FLECS_VERSION_MINOR, FLECS_VERSION_PATCH)

/** @def FLECS_CONFIG_HEADER
Expand Down Expand Up @@ -189,7 +190,6 @@
#define FLECS_EXPR /**< Parsing strings to/from component values */
#define FLECS_JSON /**< Parsing JSON to/from component values */
#define FLECS_DOC /**< Document entities & components */
#define FLECS_COREDOC /**< Documentation for core entities & components */
#define FLECS_LOG /**< When enabled ECS provides more detailed logs */
#define FLECS_APP /**< Application addon */
#define FLECS_OS_API_IMPL /**< Default implementation for OS API */
Expand Down
48 changes: 0 additions & 48 deletions include/flecs/addons/coredoc.h

This file was deleted.

10 changes: 0 additions & 10 deletions include/flecs/private/addons.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@
#ifdef FLECS_NO_DOC
#undef FLECS_DOC
#endif
#ifdef FLECS_NO_COREDOC
#undef FLECS_COREDOC
#endif
#ifdef FLECS_NO_LOG
#undef FLECS_LOG
#endif
Expand Down Expand Up @@ -177,13 +174,6 @@
#include "../addons/monitor.h"
#endif

#ifdef FLECS_COREDOC
#ifdef FLECS_NO_COREDOC
#error "FLECS_NO_COREDOC failed: COREDOC is required by other addons"
#endif
#include "../addons/coredoc.h"
#endif

#ifdef FLECS_DOC
#ifdef FLECS_NO_DOC
#error "FLECS_NO_DOC failed: DOC is required by other addons"
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ flecs_src = files(
'src/addons/json/json.c',
'src/addons/log.c',
'src/addons/meta/api.c',
'src/addons/meta/definitions.c',
'src/addons/meta/meta.c',
'src/addons/meta/serialized.c',
'src/addons/meta/cursor.c',
Expand Down
153 changes: 0 additions & 153 deletions src/addons/coredoc.c

This file was deleted.

Loading

0 comments on commit bc933e6

Please sign in to comment.