Skip to content

Minimalistic cmake python script for cl.exe (visual studio)

Notifications You must be signed in to change notification settings

4Bruno/py_cl_make

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple python script to create dlls using cl.exe (Visual studio)

It requires running vcvars64.bat (visual studio script to setup environ variables) before running python script (as it expects all the system paths where .exe can be found)

The build system is intended to be hardcoded in the script itself.

All the compiler flags are custom for the projects I work with.

It has minimal "last modified" check to avoid compiling dlls without changes.

Folder structure:

py_cl_make.py
src\
    main.cpp
    test.cpp
    debug\
    release\

In script setup your build as follows:

Test = Dll(['test.cpp'])
Main = Dll(['main.cpp'],['test.obj'],executable=True)

# global list with all dlls to create
DLLS_SOLUTION = [Test, Exe]

Flags:

  • /D Debug build (will set optimizations and full debugging exports)
  • /F Force build. Do not use cache

About

Minimalistic cmake python script for cl.exe (visual studio)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published