#!/usr/bin/env python3 import licant licant.include("igris") licant.cxx_application("target", sources=["main.cpp"], mdepends=["igris", "igris.dprint"], cxxstd="gnu++17") licant.ex("target")
#!/usr/bin/env python3 import licant licant.include("ralgo") licant.include("igris") licant.include("nos") licant.include("crow") licant.cxx_application("simulator", sources=["simulator_main.cpp", "motor_shield.cpp"], mdepends=["ralgo", "igris", "nos"]) licant.ex("simulator")
#!/usr/bin/env python3 # coding: utf-8 import sys sys.path.insert(0, "../..") import licant licant.module("module_a", impl="a", sources=["a.cpp"]) licant.module("module_a", impl="b", sources=["b.cpp"]) licant.module("module_b", sources=["c.cpp"], mdepends=[("module_a", "a")]) licant.module_defimpl("module_a", "a") licant.cxx_application("target", sources=["main.cpp"], mdepends=["module_b", ("module_a", "a")]) licant.ex("target")
#!/usr/bin/env python3 import licant licant.include("ralgraph") licant.cxx_application( "target", sources=["main.cpp"], mdepends=["ralgraph"], libs=["glfw3", "vulkan", "dl", "pthread", "GLEW", "GL", "GLU"] # "glfw3", "vulkan", "dl", "pthread", "GLEW", "GL", "GLU" ) licant.ex("target")
#!/usr/bin/env python3 import licant import os licant.include("libc", "../../src/libc/libc.g.py") licant.cxx_application( "firmware.elf", toolchain=licant.cxx_make.toolchain_gcc("arm-none-eabi-"), sources=["main.c", "../../src/arch/arm/stm32/asm/stm32_start.c"], include_paths=[ "../../src/arch/arm/stm32/", "../../src/arch/arm/armv7-e/", "../../src/", "../../src/posix", "../../src/libc" ], cc_flags="-mthumb -mcpu=cortex-m4", ld_flags=" ".join([ "-nostdlib -nostdinc", "-T../../src/arch/arm/stm32/ldscripts/stm32f401re.ld", "-T../../src/arch/arm/stm32/ldscripts/stm32_common.ld" ]), mdepends=["compat.libc"]) @licant.routine(deps=["firmware.elf"]) def install(): os.system("arm-none-eabi-objcopy -O binary firmware.elf firmware.bin") os.system("st-flash write firmware.bin 0x8000000") def terminal(port="/dev/ttyACM0"):
#!/usr/bin/env python3 import licant licant.cxx_application("target", sources=["main.cpp"], libs=["nos", "igris"]) licant.ex("target")
#!/usr/bin/env python3 import licant licant.include("servoce") qt_inc = licant.attribute("qt_inc") occt_inc = licant.attribute("occt_inc") licant.cxx_application( "target", sources=["main.cpp"], mdepends=["servoce_sources", "servoce_display", "libqt"], libs=["X11", "nos", "igris"], include_paths=[qt_inc, occt_inc]) licant.ex("target")
#!/usr/bin/env python3 import licant licant.include("nos") licant.include("igris") licant.cxx_application( "target", sources=["main.cpp"], mdepends=["igris", "igris.dprint", "igris.protocols.msgtype", "nos"], cxxstd="gnu++17") licant.ex("target")
#!/usr/bin/env python3 import licant licant.include("igris") licant.include("nos") licant.cxx_application("target", sources=["main.cpp"], mdepends=["igris", "nos"], ) licant.ex("target")
import licant import os licant.include("igris") licant.include("nos") licant.include("crow") licant.include("ralgo") licant.include("linalg-v3") #os.environ["LD_LIBRARY_PATH"] = "/usr/lib/x86_64-linux-gnu/" licant.cxx_application( "crow-chart", mdepends=[ "crow", "crow.threads", "nos", "ralgo", "igris", "igris.syslock", "crow.udpgate", ("igris.ctrobj", "linux") ], sources=["src/main.cpp"], include_paths=[ ".", "src", "/usr/include/x86_64-linux-gnu/qt5/", "/usr/include/x86_64-linux-gnu/qt5/QtCore", "/usr/include/x86_64-linux-gnu/qt5/QtWidgets", "/usr/include/x86_64-linux-gnu/qt5/QtCharts" ], cxx_flags="-fPIC -Xlinker -Map=output.map", ld_flags="-fPIC -Xlinker -Map=output.map", moc=["src/DisplayWidget.h"], libs=["Qt5Core", "Qt5Gui", "Qt5Widgets", "Qt5Charts", "pthread"]) licant.ex("crow-chart")
licant.cxx_application("firmware.elf", toolchain = TOOLCHAIN, sources=[ "src/main.cpp", "src/blink_task.cpp", "src/motors.cpp", "src/crow-service.cpp", "src/command.cpp", ], mdepends= [ "genos.include", "igris.include", "zillot.include", "crow.include", "nos.include", "ralgo.include", # "crow.address", "crow.minimal", ("crow.allocator", "malloc"), "nos.print", "nos.fprint", ("nos.current_ostream", "nullptr"), "zillot", "genos", "zillot.chip.avr.atmega328p", "zillot.arduino.uno", "zillot.arduino.avr-systime", "zillot.drivers.avr", "zillot.arduino.Adafruit_MotorShield", "zillot.drivers.serial.avr", ("igris.syslock", "irqs"), "igris.util", "igris.utilxx", "igris.compat.std", "igris.cxx_support", ("igris.dprint", "diag"), ("crow.diagnostic", "stub"), ("crow.select", "stub"), ("igris.location", "stub") ], include_paths = ["src"], defines=["MEMORY_ECONOMY", "ADAFRUIT_MOTOR_SHIELD_NO_STEPPERS", "ADAFRUIT_MOTOR_SHIELD_NO_PWM"], cxx_flags = "-flto -ffunction-sections -fdata-sections -Wl,--gc-sections -Os -Werror=all -Werror=extra -fno-rtti -fno-exceptions", cc_flags = "-flto -ffunction-sections -fdata-sections -Wl,--gc-sections -Os -Werror=all -Werror=extra -fno-exceptions", ld_flags = "-flto -ffunction-sections -fdata-sections -Wl,--gc-sections -Os -Wall -Wextra -fno-rtti -fno-exceptions", cxxstd = "c++17", )
#!/usr/bin/env python3 #coding: utf-8 import licant licant.execute("../../cynematic.g.py") licant.libs.include("linalg-v3") licant.libs.include("nos") licant.libs.include("gxx") licant.libs.include("malgo") licant.cxx_application( "target", sources=["main.cpp"], mdepends=[ "cynematic", "linalg-v3", "nos", "malgo", "gxx", ("gxx.dprint", "__none__") ], ) licant.ex("target")