#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('serial/libserial') build.generate([ 'proto/cpp/DeviceConfig.pb.cc', 'proto/cpp/DeviceConfig.pb.h', 'proto/python/DeviceConfig_pb2.py' ], 'serial/libserial/build_proto.sh', ['proto/DeviceConfig.proto']) build.build_shared_static( 'auv-serial', [ 'Variable.cpp', 'DeviceInfo.cpp', 'Manager.cpp', 'Packet.cpp', 'Register.cpp', 'Talker.cpp', 'UnixFilePort.cpp', 'SerialPort.cpp', 'Log.cpp', 'packet_types/Hello.cpp', 'packet_types/Reset.cpp', 'packet_types/Heartbeat.cpp', 'packet_types/ReadRange.cpp', 'packet_types/WriteRange.cpp', 'packet_types/ReadIndexed.cpp', 'packet_types/WriteIndexed.cpp', 'packet_types/Disconnect.cpp', 'packet_types/Error.cpp',
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('fishbowl/cw-he-calc') build.install('auv-cw-he-calc', f='fishbowl/cw-he-calc/main.py')
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('sensors') build.build_shared('auvserial', ['serial/serial.cpp']) # build.build_cmd('auv-podd', # ['power/podd/main.cpp'], # auv_deps=['auvserial', 'shm']) # build.build_cmd('auv-hydrod-ui', # ['hydrod2/hydro_ui.cpp'], # auv_deps=['shm'], # deps=['ncurses']) build.install('auv-linearizerd', 'sensors/linearizer/auv-linearizerd.py') build.install('auv-kalmand', 'sensors/kalman/auv-kalmand.py') build.install('auv-zero-heading', 'sensors/kalman/set_zero_heading.py')
#!/usr/bin/python from build import ninja_common build = ninja_common.Build('control') build.install('auv-controld3', f='control/auv_controld3.py')
#!/usr/bin/env python from build import ninja_common build = ninja_common.Build("fishbowl") build.install("auv-fishbowl-unpause", "fishbowl/unpause") build.install("auv-fishbowl-pause", "fishbowl/pause") build.install("auv-fishbowl-reset", "fishbowl/reset") build.build_cmd("auv-fishbowl", ["main.cpp"], auv_deps=["shm", "conf", "fishbowl"], pkg_confs=["eigen3"], lflags=[], cflags=["-Ifishbowl/lib", "-pthread"]) build.build_shared("fishbowl", [ "entity.cpp", "passive.cpp", "physics.cpp", "pid.cpp", "screw.cpp", "server.cpp", "simulator.cpp", "thrusters.cpp", "vision.cpp", "world.cpp", "bits.cpp", "bitreader.cpp",
#!/usr/bin/env python from build import ninja_common build = ninja_common.Build("json") build.build_shared("json", [ "jsoncpp.cpp", ], lflags=[])
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build("peacock") build.generate(["regroup"], "peacock/build-regroup.sh", ["regroup.c"]) build.chicken_lib("fishbowl", [ "fishbowl/queue.scm", "fishbowl/fishbowl.scm", ], where="peacock/fishbowl") build.chicken_lib("peacock", [ "peacock.scm", "peacock-internal.scm", "peacock-util.scm", "peacock-misc.scm" ], where="peacock", chicken_deps=["cuauv-shm", "fishbowl"]) build.chicken_exe("peck", [ "peck.scm", ], chicken_deps=["peacock"])
#!/usr/bin/python from build import ninja_common build = ninja_common.Build('cave') build.install('auv-cave', f='cave/main.py') build.install('auv-cave-merge', f='cave/merge.py')
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('auv_math') build.build_shared('math', ['camera.cpp'], pkg_confs=['eigen3'], cflags=['-Wno-deprecated-declarations'])
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('vehicle-scripts') build.install("auv-env-set", "vehicle-scripts/auv-env/auv-env-set.sh")
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('sensors/dvld') build.build_cmd('auv-dvld', [ 'main.cpp', 'dvlSerial.cpp', 'pd5Com.cpp', 'dvld.cpp', ], auv_deps=['shm'])
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build("meow") build.webpack("meow", "meow")
#!/usr/bin/env python from build import ninja_common build = ninja_common.Build('healthdash') build.build_cmd('auv-health-dash', [ 'main.cpp', 'common-funcs.cpp', 'power.cpp', 'computer.cpp', 'other.cpp', 'temperature.cpp', ], auv_deps = ['shm'], deps = ['ncurses']) build.install('auv-batteryalert.py')
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('shm_tools/shm-cli') build.install('auv-shm-cli', f='shm_tools/shm-cli/shm-cli.py')
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('pooltest') if build.stack('pooltest/bin/pooltest', 'pooltest', ['shm']): build.generate(['pooltest.cabal', 'stack.yaml'], 'pooltest/gen.sh', ['gen.sh']) build.install('auv-pooltest', f='pooltest/bin/pooltest')
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build("auv_math/libquat") build.build_c_shared('quat', ['quat.c'])
#!/usr/bin/python from build import ninja_common build = ninja_common.Build('self_test') build.install('auv-self-test', f='self_test/auv-self-test.py') build.install('auv-actuator-test', f='self_test/actuator_test.py') build.install('auv-thruster-test', f='self_test/thruster_test.py') build.install('auv-thruster-test-random', f='self_test/thruster-test-random.py') build.install('auv-stress-thruster', f='self_test/thruster_stress.py')
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('control/control_helm2') build.install('auv-control-helm2', f='control/control_helm2/control_helm2.py')
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('serial/debugger') import subprocess # Check for a pkg-config of gtkmm-3.0 HAVE_GTKMM = subprocess.call(['pkg-config', 'gtkmm-3.0']) == 0 if HAVE_GTKMM: build.build_cmd_with_static( 'auv-serial-debugger', [ 'main.cpp', 'DebuggerWindow.cpp', 'StatusFlagWidget.cpp', 'VariableWidget.cpp', ], cflags=['-Wall', '-Wextra', '-Werror', '-Iserial/libserial'], auv_deps=['auv-serial'], pkg_confs=['gtkmm-3.0'], static_extra_deps=['protobuf-lite']) else: print( "Could not build serial debugger because you are missing libgtkmm-3.0")
#!/usr/bin/env python from build import ninja_common build = ninja_common.Build('misc/killbutton') build.build_cmd('auv-killer', [ 'killer.c', 'killsubmarine.cpp', 'findpowermate.c', ], auv_deps=['auvstate-cpp', 'auvstate'], pkg_confs=['glib-2.0', 'gthread-2.0'])
#!/usr/bin/python from build import ninja_common build = ninja_common.Build('deadman') build.build_cmd('auv-deadman', [ 'deadman.cpp', ], auv_deps=['shm'])
#!/usr/bin/python from build import ninja_common build = ninja_common.Build('build') # build.install('trogdor')
#!/usr/bin/python from build import ninja_common build = ninja_common.Build('control/controlhelm') build.build_cmd('auv-control-helm', [ 'battery.cpp', 'new_pid_panel.cpp', 'row1.cpp', 'row3.cpp', 'display.cpp', 'controlhelm.cpp' ], auv_deps=['shm'], pkg_confs=['ncurses'])
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('mission/opt') build.build_shared('opt', [ 'src/run.cpp' ], deps = ['nanomsg'], auv_deps = ['shm', 'conf', 'auvlog', 'optmath'], pkg_confs = ['python3'], lflags = ['-lboost_python'], cflags = ['-Wno-deprecated-declarations'] ) build.build_shared('optmath', [ 'src/opt.cpp' ], auv_deps = ['shm'], pkg_confs = [], lflags = [], cflags = ['-Wno-deprecated-declarations'] )
#!/usr/bin/env python3 import subprocess from build import ninja_common build = ninja_common.Build('libshm') scmfiles = [ 'shm.scm', ] ocamlfiles = ['CUAUV_shm.ml', 'CUAUV_shm.mli'] pyfiles = ['group.py', 'watchers.py', 'base.py'] files = [ 'shm.c', 'shm.h', 'log.cpp', 'log.h', 'serialize.cpp', 'serialize.h', 'shm_diagnose.cpp', 'vars.h', 'vars.c', 'watcher.h', 'watcher.c', 'dynamic.h', 'dynamic.cpp', ]
#!/usr/bin/env python from build import ninja_common build = ninja_common.Build("conf") def decomment(name): build.generate(["%s.json" % name], "conf/decomment.sh", ["%s.conf" % name], depends=['link-stage/auv-json-decomment']) # Vehicles decomment("castor") decomment("pollux") decomment("simple") # Simulator configs (unused) decomment("simulator") # Locales (for ASLAM) decomment("teagle") decomment("buoyland") build.build_shared("conf", ["vehicle.cpp", "simulator.cpp", "map.cpp"], auv_deps=["json"], pkg_confs=["eigen3"], lflags=[], cflags=[])
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build("visualizer") # Only build if all dependencies are present. # TODO Create a better means of dependency checking. import os sources = [ 'gl_utils.cpp', 'graphics_engine.cpp', 'material.cpp', 'obj_builder.cpp', 'render_buffer.cpp', 'renderable.cpp', 'renderer.cpp', 'scene_object.cpp', 'shadow_map.cpp', 'skybox.cpp', 'stl_builder.cpp', 'stl_read.cpp' ] build.build_shared( 'vis', [os.path.join('graphics_engine', source) for source in sources], pkg_confs=['gl'], cflags=['-DGL_GLEXT_PROTOTYPES', '-Wno-misleading-indentation']) # We compile this separately and link at RUNTIME to avoid # requiring OpenCV and Eigen for visualizer use. build.build_shared( 'vision_link', ['vision_link.cpp'], auv_deps=['auv-camera-message-framework', 'conf'], pkg_confs=['opencv', 'eigen3'], # XXX -Wno-deprecated-declarations is temporary, to deal with the following Eigen defect: # XXX The same is applied in .syntastic_cpp_config and in conf/configure.py. # XXX Remove as soon as the defect is resolved!
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('webserver') build.webpack('static/bundle.js', 'webpack.config.js', 'src', 'webserver/package.json') build.install('auv-webserver', f='webserver/auv-webserver.py')
#!/usr/bin/env python3 from build import ninja_common import os build = ninja_common.Build('vision') build.install('auv-poster', f='vision/modules/poster.py') build.build_shared('auv-camera-message-framework', ['c/camera_message_framework.cpp'], deps=['pthread'], auv_deps=['utils']) build.build_shared('auv-color-balance', ['framework/color_correction/color_balance.cpp'], cflags=[], pkg_confs=['opencv'], auv_deps=['utils']) build.build_shared('auv-camera-filters', ['c/camera_filters.cpp'], pkg_confs=['opencv'], auv_deps=['utils']) build.build_cmd('auv-firewire-daemon', ['c/firewire_camera.cpp'], deps=['dc1394'], auv_deps=['auv-camera-message-framework'], pkg_confs=['opencv']) build.build_cmd('auv-cams', ['gui/cams/cams.cpp'], pkg_confs=['opencv'], auv_deps=['auv-camera-message-framework']) build.install('auv-start-cameras', f='vision/camera_manager.py')
#!/usr/bin/python from build import ninja_common build = ninja_common.Build('auvlog') build.install('auv-lr', f='auvlog/reader.py') build.install('auv-ld', f='auvlog/daemon.py')