Пример #1
0
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=".",
)
Пример #2
0
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'),
)
Пример #3
0
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'),
)
Пример #4
0
from dogebuild_c.c_plugin import CPlugin

CPlugin(
    out_name="helloworlder",
    src=[
        "helloworlder.c",
    ],
    headers=[
        "helloworlder.h",
    ],
    test_src=[
        "test.c",
    ],
    src_dir=".",
)
Пример #5
0
def get(**kwargs):
    return CPlugin(**kwargs)
Пример #6
0
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=".",
)
Пример #7
0
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"),
    ],
)
Пример #8
0
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'),
)