AeThex-Engine-Core/engine/tests/test_builders.py
MrPiglr 9dddce666d
🚀 AeThex Engine v1.0 - Complete Fork
- Forked from Godot Engine 4.7-dev (MIT License)
- Rebranded to AeThex Engine with cyan/purple theme
- Added AI-powered development assistant module
- Integrated Claude API for code completion & error fixing
- Custom hexagon logo and branding
- Multi-platform CI/CD (Windows, Linux, macOS)
- Built Linux editor binary (151MB)
- Complete source code with all customizations

Tech Stack:
- C++ game engine core
- AI Module: Claude 3.5 Sonnet integration
- Build: SCons, 14K+ source files
- License: MIT (Godot) + Custom (AeThex features)

Ready for Windows build via GitHub Actions!
2026-02-23 05:01:56 +00:00

38 lines
952 B
Python

"""Functions used to generate source files during build time"""
import re
import methods
RE_PATH_SPLIT = re.compile(r"[^/\\]+?(?=\.)")
TEMPLATE = """\
#ifndef _WIN32
#define TEST_DLL_PRIVATE __attribute__((visibility("hidden")))
#else
#define TEST_DLL_PRIVATE
#endif // _WIN32
namespace ForceLink {{
TEST_DLL_PRIVATE void force_link_tests();
{TESTS_DECLARE}
}} // namespace ForceLink
void ForceLink::force_link_tests() {{
{TESTS_CALL}
}}
"""
def force_link_builder(target, source, env):
names = [RE_PATH_SPLIT.search(str(path)).group() for path in source[0].read()]
declares = [f"TEST_DLL_PRIVATE void force_link_{name}();" for name in names]
calls = [f"force_link_{name}();" for name in names]
with methods.generated_wrapper(str(target[0])) as file:
file.write(
TEMPLATE.format(
TESTS_DECLARE="\n\t".join(declares),
TESTS_CALL="\n\t".join(calls),
)
)