Esempio n. 1
0

	libs = ["gtest", "pthread",
        lib_prefix + "TKernel",
        lib_prefix + "TKMath",
        lib_prefix + "TKG2d",
        lib_prefix + "TKG3d",
        lib_prefix + "TKBRep",
        lib_prefix + "TKGeomBase",
        lib_prefix + "TKGeomAlgo",
        lib_prefix + "TKTopAlgo",
        lib_prefix + "TKPrim",
        lib_prefix + "TKBO",
        lib_prefix + "TKBool",
        lib_prefix + "TKOffset",
        lib_prefix + "TKService",
        lib_prefix + "TKV3d",
        lib_prefix + "TKOpenGl",
        lib_prefix + "TKFillet",
        lib_prefix + "TKSTL",
        lib_prefix + "TKBin",
        lib_prefix + "TKShHealing",
        lib_prefix + "TKMesh",
        lib_prefix + "TKHLR",
        "X11",
        "servoce"
    ]
)

licant.ex("runtests")
Esempio n. 2
0
#!/usr/bin/env python3

import sys

sys.path.insert(0, "../..")

import licant
from licant.cxx_modules import application
from licant.libs import include

include("gxx")

application(
    "main",
    target="target",
    sources=["main.cpp"],
    include_modules=[("gxx", "posix"), ("gxx.dprint", "stdout")],
)

licant.ex(default="main")
Esempio n. 3
0
#!/usr/bin/env python3

import licant.install
import licant

licant.source("a")
#tgtpath = licant.install.install_application("a")
headerstarget = licant.install.install_headers(tgtdir="testlicant",
                                               srcdir="headers")

libtgt = licant.install.install_library(libtgt="a",
                                        headers="headers",
                                        hroot="testlicant2")

licant.ex(libtgt)
Esempio n. 4
0
#!/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")
Esempio n. 5
0
#!/usr/bin/env python3
# coding: utf-8

import licant
import licant.libs
from licant.cxx_modules import application

licant.libs.include("servoce")

application(
    "target",
    sources=["main.cpp"],
    # libs = ["servoce"],
    include_modules=["servoce_sources"],
)

licant.ex(default="target")
Esempio n. 6
0
    "igris.dprint",
    "igris.protocols.gstuff",
    "igris.protocols.numcmd",
]

licant.cxx_library("shared",
                   target="libigris.so",
                   toolchain=toolchain,
                   mdepends=modules +
                   ["igris.syslock", ("igris.ctrobj", "linux")],
                   cxx_flags='-fPIC -Wall',
                   cc_flags='-fPIC -Wall',
                   shared=True)

licant.cxx_library("static",
                   target="libigris.a",
                   toolchain=toolchain,
                   mdepends=modules,
                   cxx_flags='-fPIC',
                   cc_flags='-fPIC',
                   ccstd="c11",
                   shared=False)

licant.install.install_library(tgt="install",
                               uninstall="uninstall",
                               libtgt="libigris.so",
                               hroot="igris",
                               headers="igris")

licant.ex("shared")
Esempio n. 7
0
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"):
    os.system(f"gtkterm -p {port} -s 115200 --parity none")


licant.ex("firmware.elf")
Esempio n. 8
0
	objdump="objdump",
)

application("g1-retransler",
	sources = ["main.cpp"],
	include_paths = ["../.."],
	include_modules = [
		("gxx", "posix"),
		("gxx.print", "cout"),
		("gxx.dprint", "cout"),
		("gxx.log2", "impl"),
		("gxx.inet", "posix"),
		("gxx.syslock", "mutex"),
		("gxx.serial"),

		("g1"),
		("g1.allocator", "malloc"),
		("g1.time", "chrono"),

		("g0"),
	],

	#binutils = bu,
	libs = ["pthread", "readline"]
)

licant.make.copy(src="g1-retransler", tgt="/usr/local/bin/g1-retransler")
licant.make.add_makefile_target("install", ["/usr/local/bin/g1-retransler"])

licant.ex("g1-retransler")
Esempio n. 9
0
#!/usr/bin/env python3
# coding: utf-8

import sys

sys.path.insert(0, "../..")

from licant.cxx_modules import application, shared_library, objects
import licant

aret = application("app", sources=["main.cpp", "ttt.cpp"], optimize="-O2")

licant.ex("app")
Esempio n. 10
0
import licant
from licant.cxx_modules import shared_library
from licant.modules import module

import licant.libs
import os

licant.execute("servoce_inc.py")
licant.include("nos")

install_lib_dir = "/usr/lib/"
install_inc_dir = "/usr/local/include/"

shared_library(
    "cxxbuild/libservoce.so",
    builddir='cxxbuild',
    mdepends=["servoce_sources", "nos"],
)


@licant.routine
def install():
    os.system("cp cxxbuild/libservoce.so {}".format(install_lib_dir +
                                                    "libservoce.so"))
    os.system("cp -r include/servoce {}".format(install_inc_dir))
    print("success install")


licant.ex(default="cxxbuild/libservoce.so", colorwrap=True)
Esempio n. 11
0
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")
Esempio n. 12
0
#!/usr/bin/env python3

import licant
import os

install_headers_path = "/usr/local/include/"
libname = "linalg"

hpath = os.path.join(install_headers_path, libname)

licant.source("linalg.h")
licant.copy(src="linalg.h", tgt=os.path.join(hpath, "linalg.h"))
licant.copy(src="linalg.h", tgt=os.path.join(".", "linalg/linalg.h"))

licant.fileset(
    "install",
    [os.path.join(hpath, "linalg.h"),
     os.path.join(".", "linalg/linalg.h")])

licant.ex("install")
Esempio n. 13
0
#coding: utf-8

import licant
import licant.install
from licant.cxx_modules import application
from licant.libs import include
import os

defines = ["NOTRACE=1"]

licant.libs.include("crow")

application("crowrequest",
            sources=["main.cpp"],
            mdepends=["crow", "crow.udpgate"],
            defines=defines,
            cxx_flags="-Wextra -Wall",
            libs=["pthread", "readline", "igris", "nos"],
            cxxstd="c++17")

licant.install.install_application(tgt="install_crowrequest",
                                   src="crowrequest",
                                   dst="crowrequest")

if __name__ == "__main__":
    licant.install.install_application(tgt="install",
                                       src="crowrequest",
                                       dst="crowrequest")

    licant.ex("crowrequest")
Esempio n. 14
0
File: make.py Progetto: mirmik/g0
#!/usr/bin/env python3
#coding: utf-8

import licant
from licant.cxx_modules import application
from licant.libs import include

licant.execute("../../g0.g.py")
licant.libs.include("g1")
licant.libs.include("gxx")

application("g0send",
            sources=["main.cpp"],
            include_modules=[
                ("g1"),
                ("g1.allocator", "malloc"),
                ("g1.time", "chrono"),
                ("g0"),
                ("gxx", "posix"),
                ("gxx.log2", "impl"),
                ("gxx.inet", "posix"),
                ("gxx.print", "cout"),
                ("gxx.dprint", "cout"),
                ("gxx.syslock", "mutex"),
                ("gxx.serial"),
            ],
            cxx_flags="",
            libs=["pthread"])

licant.ex("g0send")
Esempio n. 15
0
    javac="/home/mirmik/soft/android-studio/jre/bin/javac",
    dx="/home/mirmik/Android/Sdk/build-tools/30.0.3/dx")

joptions = licant.java_make.java_options(
    toolchain=jtools,
    javac_flags="-classpath {ANDROID_HOME}/platforms/android-26/android.jar".
    format(**VARS))

licant.java_make.javac(
    opts=joptions,
    tgt="src/main/java/com/makepad/hello_quest/MainActivity.class",
    srcs=["src/main/java/com/makepad/hello_quest/MainActivity.java"])

licant.java_make.dex(opts=joptions, tgt="classes.dex", src="src/main/java")

licant.copy(
    src="{OVR_HOME}/VrApi/Libs/Android/arm64-v8a/Debug/libvrapi.so".format(
        **VARS),
    tgt="libvrapi.so")

#licant.android_apk(
#	opts=joptions,
#	srcs=[
#		"classes.dex",
#		"libmain.so",
#		"libvrapi.so"
#	]
#)

licant.ex("hello_quest.apk")
Esempio n. 16
0
#!/usr/bin/env python3
#coding:utf-8

import os
import licant
import licant.install

licant.execute("ralgraph.g.py")

licant.cxx_shared_library("libralgraph.so",
                          mdepends=[
                              "ralgraph",
                          ],
                          cxx_flags="-fPIC",
                          cc_flags="-fPIC")

licant.install.install_library(tgt="install",
                               uninstall="uninstall",
                               libtgt="libralgraph.so",
                               hroot="ralgraph",
                               headers="ralgraph")

licant.ex("libralgraph.so")
Esempio n. 17
0
    libs=["igris", "nos"],
)

licant.fileset("apps",
               targets=["ctrans", "crowker", "crowcalc", "crowrequest"],
               deps=["libcrow.so"])

licant.fileset("all", targets=["apps", target])

licant.install.install_library(tgt="install_library",
                               libtgt=target,
                               headers="crow",
                               hroot="crow",
                               uninstall="uninstall")


@licant.routine(deps=["apps"])
def install_apps():
    licant.do(["install_crowker", "makefile"])
    licant.do(["install_ctrans", "makefile"])
    licant.do(["install_crowcalc", "makefile"])
    licant.do(["install_crowrequest", "makefile"])


@licant.routine(deps=["install_apps", "install_library"])
def install():
    pass


licant.ex("all")
Esempio n. 18
0
#!/usr/bin/env python3
#coding: utf-8

import licant
import licant.install
from licant.cxx_modules import application
from licant.libs import include
import os

licant.include("crow")

application("crowker",
            sources=["main.cpp", "control_node.cpp"],
            mdepends=["crow", "crow.crowker", "crow.udpgate"],
            optimize="-O2",
            cxx_flags="-Wextra -Wall",
            libs=["pthread", "readline", "nos", "igris"])

licant.install.install_application(tgt="install_crowker",
                                   src="crowker",
                                   dst="crowker")

if __name__ == "__main__":
    licant.install.install_application(tgt="install",
                                       src="crowker",
                                       dst="crowker")
    licant.ex("crowker")
Esempio n. 19
0
import os

licant.libs.include("g1")
licant.libs.include("gxx")

application("g1trans",
            sources=["main.cpp"],
            include_modules=[
                ("g1"),
                ("g1.allocator", "malloc"),
                ("g1.time", "chrono"),
                ("gxx", "posix"),
                ("gxx.log2", "impl"),
                ("gxx.inet", "posix"),
                ("gxx.print", "cout"),
                ("gxx.dprint", "cout"),
                ("gxx.syslock", "mutex"),
                ("gxx.serial"),
            ],
            cxx_flags="",
            libs=["pthread"])


@licant.routine
def install():
    licant.do("g1trans")
    os.system("cp g1trans /usr/local/bin")


licant.ex("g1trans")
Esempio n. 20
0
#!/usr/bin/env python3
#coding:utf-8

import licant
import licant.libs
from licant.cxx_modules import application

licant.libs.include("igris")

licant.libs.include("nos")

licant.libs.include("ralgo")
licant.libs.include("malgo")

licant.libs.include("crow")
licant.libs.include("linalg-v3")

application(
    "ahrs",
    sources=["main.cpp"],
    mdepends=["crow", "crow.udpgate", "ralgo", ("igris.ctrobj", "linux")],
    libs=["pthread"],
)

licant.ex("ahrs")
Esempio n. 21
0
#!/usr/bin/env python3

import licant

licant.include("heimer")

licant.cxx_shared_library(
    "heimer.so",
    mdepends=["heimer"],
)

licant.ex("heimer.so")
Esempio n. 22
0
File: make.py Progetto: mirmik/crow
application("ctrans",
            sources=["main.cpp"],
            mdepends=[
                "crow",
                "crow.crowker",
                "crow.udpgate",
                "crow.tcpgate",
                "crow.serial_gstuff",
            ],
            defines=defines,
            optimize="-O2",
            cxx_flags="-Wextra -Wall",
            libs=["pthread", "readline", "igris", "nos"],
            cxxstd="c++17")


@licant.routine
def doc():
    os.system("cd doc; ./make.sh")


licant.install.install_application(tgt="install_ctrans",
                                   src="ctrans",
                                   dst="ctrans")

if __name__ == "__main__":
    licant.install.install_application(tgt="install",
                                       src="ctrans",
                                       dst="ctrans")
    licant.ex("ctrans")
Esempio n. 23
0
#!/usr/bin/env python3

import sys

sys.path.insert(0, "../..")

import licant


@licant.routine
def routine1():
    print("1")


@licant.routine
def routine2():
    print("2")


@licant.routine(deps=["routine2"])
def routine3():
    print("3")


licant.ex("routine3")
Esempio n. 24
0
#!/usr/bin/env python3
# coding: utf-8

import sys

sys.path.insert(0, "../..")

import licant.make as lmake
import licant

lmake.source("a.txt")
lmake.copy(tgt="build/b.txt", src="a.txt")
lmake.copy(tgt="build/c.txt", src="build/b.txt")

licant.ex("build/c.txt")
Esempio n. 25
0
#!/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")
Esempio n. 26
0
File: make.py Progetto: mirmik/crow
#coding: utf-8

import licant
import licant.install
from licant.cxx_modules import application
from licant.libs import include
import os

licant.libs.include("crow")

defines = ["NOTRACE=1"]

application("crowcalc",
            sources=["main.cpp"],
            mdepends=["crow", "crow.udpgate"],
            defines=defines,
            cxx_flags="-Wextra -Wall -g",
            cc_flags="-Wextra -Wall -g",
            libs=["pthread", "readline", "igris", "nos"],
            cxxstd="c++17")

licant.install.install_application(tgt="install_crowcalc",
                                   src="crowcalc",
                                   dst="crowcalc")

if __name__ == "__main__":
    licant.install.install_application(tgt="install",
                                       src="crowcalc",
                                       dst="crowcalc")
    licant.ex("crowcalc")