build: initial Windows compatibility and CMake setup#20
Draft
vitalyster wants to merge 22 commits intoz-libs:mainfrom
Draft
build: initial Windows compatibility and CMake setup#20vitalyster wants to merge 22 commits intoz-libs:mainfrom
vitalyster wants to merge 22 commits intoz-libs:mainfrom
Conversation
9d17c55 to
4c54ca5
Compare
|
should the generated code compile before #7 is completed? what is needed further so generated code compiles? |
Zuhaitz-dev
reviewed
Jan 13, 2026
a6319ca to
9f3923f
Compare
Contributor
Author
0ab95d8 to
645f360
Compare
23573e7 to
497f946
Compare
42bdb72 to
9aeb99b
Compare
35f7f91 to
7174ae1
Compare
ffc4882 to
2cab673
Compare
Define PATH_MAX and implement the realpath function for Windows to ensure compatibility across platforms. These changes address the need for equivalent functionality on Windows, allowing the code to correctly resolve file paths when PATH_MAX or realpath are called.
Introduce a loop to create shared library targets for
each listed plugin ('befunge', 'brainfuck', 'forth',
'lisp', 'regex', 'sql') from their respective
source files in the 'plugins' directory.
Add `PLUGINAPI` macro in `zprep_plugin.h` to facilitate dynamic linking of plugins. This change allows the use of `__declspec(dllexport)` and `__declspec(dllimport)` for Windows, enhancing portability and enabling the `z_plugin_init` functions to be properly exported or imported in Windows DLLs. Additionally, apply this macro to each plugin's `z_plugin_init` function to ensure consistent use across different platforms.
TODO: implement directory scan in Win32 API
Change to capture test outputs into a temporary file, improving error handling and test result reporting. The script now displays test output upon failure, aiding diagnosis. Adjust increment logic for PASSED and FAILED counters for clarity. This enhances test feedback and maintains clean summaries after runs.
Modify the test runner script to exclude files whose names begin with an underscore from being executed. This is achieved by introducing a conditional check before test execution. This change ensures test files intended to be skipped, such as temporary or experimental ones, are not accidentally run. Clean up temporary files after each test execution to ensure no remnants are left behind.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #7