Skip to content

CoreCDTL/coregen

Repository files navigation

Coregen Logo

Build Status License Status Version

Changelog: CHANGELOG.md

Coregen – CoreCDTL Bridge Generator

Coregen is a C++ tool that automates bridge generation for the CoreCDTL runtime, enabling plugins and external applications to connect seamlessly in C, C++, or Python.

It takes CoreCDTL's compiled binaries and libraries, prepares the target project, and generates the appropriate bridge code for the chosen language.


Key Features

  • Cross-Language Bridge Generation – Supports C, C++, and Python.
  • Automatic Runtime Integration – Copies CoreCDTL bin/lib files into the target project.
  • Plugin Connectivity – Ensures plugin bridges are correctly linked to the main runtime.
  • Easy CLI Usage – Single command to generate all required files and bridges.

Supported Languages

  • C
  • C++
  • Python

Installation & Usage

  1. Build coregen using your preferred C++ compiler.
  2. Run from the command line:
coregen <target_path> <lang>

This will:

  1. Prepare the CoreCDTL directory in your target project, creating the required folder structure.
  2. Copy necessary binaries and libraries from the CoreCDTL runtime into the target project.
  3. Generate the language-specific bridge code (C, C++, or Python) to interface with CoreCDTL and its plugins.
  4. Link plugin bridges automatically so your application can communicate with the CoreCDTL runtime seamlessly.

Unsupported languages will trigger an error message and stop execution.


How It Works

Coregen executes a series of well-defined steps to integrate the CoreCDTL runtime into your target project:

  1. Validate Target Pathvalidate_path(target_path) ensures the specified project path exists and is writable.
  2. Prepare CoreCDTL Directoryprepare_corecdtl_dir(target_path) creates the necessary CoreCDTL folder structure within your project.
  3. Move Required Filesmove_required_files(target_path, core_path) copies CoreCDTL binaries and libraries into the target project.
  4. Generate Language Bridgegenerate_<lang>(corecdtl_dir) produces the bridge code for the chosen language (C, C++, or Python).

Unsupported languages will trigger an error message and stop execution.


Contributing

Coregen follows the same contribution standards as CoreCDTL. To ensure quality and consistency:

  • Follow the CONTRIBUTING.md guide for coding standards, testing, and pull request procedures.
  • All contributions must include proper unit tests if applicable.
  • Maintain adherence to the Zero-Leak Rule and formatting standards.

License

Coregen is released under a Non-Commercial Open Source License, consistent with the CoreCDTL ecosystem.

  • Free to use, modify, and share for non-commercial purposes.
  • Commercial usage is not permitted without explicit permission.

For full details, see LICENSE.md.

Status

This project is currently in Beta. Expect frequent updates, API changes, and enhancements as the project evolves.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published