- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Helper Tools ‐ Compiling
        github-actions[bot] edited this page Aug 16, 2025 
        ·
        1 revision
      
    The project includes a PowerShell script (tool/compilerHelper.ps1) to automate building the C source files into DLLs for both x86 and x64 architectures.
- Automatically looks for .cfiles in the../src/directory
- Prompts the user to select which files to compile (with interactive selection)
- Supports command-line arguments for batch processing
- Cleans up old build artifacts
- Compiles each selected file for both x86 and x64 using Visual Studio's cl.exe
- Places the resulting DLLs in pyCTools/bin/x86andpyCTools/bin/x64
- Automatically detects Visual Studio installation paths
- Handles missing Visual Studio installations by prompting for the path
- Open PowerShell in the project root or tool directory
- Run:
tool\compilerHelper.ps1 
- For each .cfile found, answerYto compile orNto skip
- The script will build and place DLLs in the appropriate output folders
To compile all found files without prompting:
tool\compilerHelper.ps1 -yTo compile only specific files:
tool\compilerHelper.ps1 file1.c file2.c- DLL naming: [filename]_[architecture].dll(e.g.,hRng_x64.dll,hRng_x86.dll)
- Output folders: ../bin/x64/and../bin/x86/
- Build artifacts (.obj, .lib, .exp files) are also placed in the output folders
- If Visual Studio is not detected automatically, you will be prompted to enter the path manually
- The script requires the Visual Studio C++ build tools to be installed
- Set $debug = $trueat the top of the script to see more detailed error messages
This has been updated for version 0.2.0-beta (or 0.2.0b0 for python) on 13/08/2025