mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 06:34:00 +08:00
4f82d01e gitignore 5cb83454 Honda FCM: diagnostic signals d309cdce Added linter to opendbc (#203) d452706f add requirements.txt ec3b4595 deterministic dependency order a265d351 Azure pipelines ci (#202) bce9a2e1 packer depends on libdbc 5d5fdd6a no more python version of libdbc, everything through cython 541705bf move CANDefine to parser code da25c52a add test for can define 0ba7926b unify can packer and parser 25d88009 consistent naming a5c640a5 fix linter be210fef remove obsolete make file ffd9dca7 opendbc needs cereal b559f63d remove more make d0929496 seems to work now 41e80836 don't make 3254d1fc think scons works eb78f6aa scons sort of working 0ef1e35d fix gitignore e155e017 Can migration (#199) 3eded83a Honda: correct steering torque sensor sign to be consistent with standard convention (left+) 32f70e2f Fix outback endianness consistency (#196) a7da471f Update subaru_outback_2015_eyesight.dbc (#195) git-subtree-dir: opendbc git-subtree-split: 4f82d01ebc78109888954d9807d320e3c27896fd
58 lines
1.2 KiB
Python
58 lines
1.2 KiB
Python
import os
|
|
import subprocess
|
|
|
|
zmq = 'zmq'
|
|
arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
|
|
|
|
cereal_dir = Dir('.')
|
|
|
|
cpppath = [
|
|
'#',
|
|
'#cereal',
|
|
"#cereal/messaging",
|
|
"#opendbc/can",
|
|
'/usr/lib/include',
|
|
]
|
|
|
|
AddOption('--test',
|
|
action='store_true',
|
|
help='build test files')
|
|
|
|
AddOption('--asan',
|
|
action='store_true',
|
|
help='turn on ASAN')
|
|
|
|
ccflags_asan = ["-fsanitize=address", "-fno-omit-frame-pointer"] if GetOption('asan') else []
|
|
ldflags_asan = ["-fsanitize=address"] if GetOption('asan') else []
|
|
|
|
env = Environment(
|
|
ENV=os.environ,
|
|
CC='clang',
|
|
CXX='clang++',
|
|
CCFLAGS=[
|
|
"-g",
|
|
"-fPIC",
|
|
"-O2",
|
|
"-Werror=implicit-function-declaration",
|
|
"-Werror=incompatible-pointer-types",
|
|
"-Werror=int-conversion",
|
|
"-Werror=return-type",
|
|
"-Werror=format-extra-args",
|
|
] + ccflags_asan,
|
|
LDFLAGS=ldflags_asan,
|
|
LINKFLAGS=ldflags_asan,
|
|
|
|
CFLAGS="-std=gnu11",
|
|
CXXFLAGS="-std=c++14",
|
|
CPPPATH=cpppath,
|
|
)
|
|
|
|
Export('env', 'zmq', 'arch')
|
|
|
|
cereal = [File('#cereal/libcereal.a')]
|
|
messaging = [File('#cereal/libmessaging.a')]
|
|
Export('cereal', 'messaging')
|
|
|
|
SConscript(['cereal/SConscript'])
|
|
SConscript(['opendbc/can/SConscript'])
|