ctplt 0.0.1

A package manager + build system for C and C++
Documentation

mylib = add_static_library(
    name = "mylib",
    sources = ["mylib.cpp"],
    include_dirs_public = ["."],
    link_private = [my_depend.my_depend_lib],
)

print('--- ' + str(mylib))
print('=== Global: ' + str(GLOBAL))
print('=== Options: ' + str(GLOBAL.global_options))
print('=== C Standard: ' + str(GLOBAL.global_options.c_standard))
print('=== Toolchain: ' + str(GLOBAL.toolchain))

c_compiler = GLOBAL.toolchain.c_compiler
print('=== C Compiler: ' + str(c_compiler))
print('=== C Compiler ID: ' + str(c_compiler and c_compiler.id))
print('=== C Compiler Version string: ' + str(c_compiler and c_compiler.version.str))

myexe = add_executable(
    name = "myexe",
    sources = ["main.cpp"],
    link = [mylib, my_depend.my_depend_lib, blobject.blobject, nasmproj.nasmobjs, zstd.zstd],
    defines = ['MY_DEFINE="myexe defined"']
)

print('--- ' + str(myexe))