from dogebuild_c.c_plugin import CPlugin, BinaryType CPlugin( binary_type=BinaryType.DYNAMIC_LIBRARY, out_name="helloworlder", src=[ "helloworlder.c", ], headers=[ "helloworlder.h", ], test_src=[ "test.c", ], src_dir=".", )
from pathlib import Path from dogebuild_c.c_plugin import CPlugin, BinaryType CPlugin( binary_type=BinaryType.STATIC_LIBRARY, out_name="greeter", src=Path("src").glob('**/*.c'), headers=Path("src").glob('**/*.h'), )
from pathlib import Path from dogebuild import dependencies, directory, doge from dogebuild_c.c_plugin import CPlugin, BinaryType dependencies(doge(directory("../library"))) CPlugin( binary_type=BinaryType.EXECUTABLE, out_name="hello-worlder", src=Path("src").glob('**/*.c'), headers=Path("src").glob('**/*.h'), )
from dogebuild_c.c_plugin import CPlugin CPlugin( out_name="helloworlder", src=[ "helloworlder.c", ], headers=[ "helloworlder.h", ], test_src=[ "test.c", ], src_dir=".", )
def get(**kwargs): return CPlugin(**kwargs)
from pathlib import Path from dogebuild_c.c_plugin import CPlugin, BinaryType CPlugin( binary_type=BinaryType.EXECUTABLE, out_name="helloworlder", src=[Path("helloworlder.c"), Path("main.c"),], headers=[Path("helloworlder.h"),], test_src=[Path("test.c"),], test_src_exclude=[Path("main.c"),], src_dir=".", )
from pathlib import Path from dogebuild_c.c_plugin import CPlugin CPlugin( out_name="helloworlder", src=[ Path("helloworlder.c"), ], src_dir=".", headers=[ Path("helloworlder.h"), ], test_src=[ Path("test.c"), ], )
from dogebuild_c.c_plugin import CPlugin, BinaryType from dogebuild import dependencies, directory, doge dependencies(doge(directory("../dependency"))) CPlugin( binary_type=BinaryType.EXECUTABLE, out_name="hello", src=[ "main.c", ], src_dir=".", )
from pathlib import Path from dogebuild_c.c_plugin import CPlugin, BinaryType CPlugin( binary_type=BinaryType.EXECUTABLE, out_name="{{executable_name}}", src=Path("src").glob('**/*.c'), headers=Path("src").glob('**/*.h'), )