Skip to content

Add CMake shared-library (DLL) integration example for TSLANG - #319

Merged
ASDAlexander77 merged 2 commits into
mainfrom
docs-cmake-dll-example
Sep 13, 2026
Merged

ASDAlexander77 merged 2 commits into
mainfrom
docs-cmake-dll-example

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/how/cmake_dll/ — a worked example showing how to register TSLANG as a first-class CMake language and build a .ts-based shared library (DLL), alongside a C++ source, using CMake's compiler-detection modules.
  • Documents the per-memory-model defaultlib linkage (gc/rc/none) so the compiled program and linked defaultlib always agree.

Test plan

  • Follow the README steps to configure and build the example locally with cmake --preset default && cmake --build --preset default
  • Verify the resulting shared library builds and links against the correct defaultlib model

🤖 Generated with Claude Code

ASDAlexander77 and others added 2 commits September 13, 2026 23:27
Documents how to register TSLANG as a first-class CMake language for
building a .ts-based shared library, including per-memory-model
defaultlib linkage.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit 218b57c into main Sep 13, 2026
2 checks passed
@ASDAlexander77
ASDAlexander77 deleted the docs-cmake-dll-example branch September 13, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant