mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
scons: put targets in global SConscript (#1180)
* Revert "remove unused scons argument (#1169)"
This reverts commit 702e5281d8.
* try this
* clean up
* default true
* default true
* already built
This commit is contained in:
6
SConscript
Normal file
6
SConscript
Normal file
@@ -0,0 +1,6 @@
|
||||
# panda fw
|
||||
SConscript('board/SConscript')
|
||||
|
||||
# test files
|
||||
if GetOption('test'):
|
||||
SConscript('tests/libpanda/SConscript')
|
||||
10
SConstruct
10
SConstruct
@@ -1,5 +1,7 @@
|
||||
# panda fw
|
||||
SConscript('board/SConscript')
|
||||
AddOption('--test',
|
||||
action='store_true',
|
||||
default=True,
|
||||
help='build test files')
|
||||
|
||||
# test files
|
||||
SConscript('tests/libpanda/SConscript')
|
||||
# panda fw & test files
|
||||
SConscript('SConscript')
|
||||
|
||||
@@ -5,7 +5,7 @@ env = Environment(
|
||||
'-fno-builtin',
|
||||
'-std=gnu11',
|
||||
],
|
||||
CPPPATH=[".", "#board/"],
|
||||
CPPPATH=[".", "../../board"],
|
||||
)
|
||||
|
||||
env.SharedLibrary("libpanda.so", ["safety_helpers.c"])
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
env = Environment(
|
||||
CC='gcc',
|
||||
CFLAGS=[
|
||||
'-nostdlib',
|
||||
'-fno-builtin',
|
||||
'-std=gnu11',
|
||||
],
|
||||
CPPPATH=[".", "../../board"],
|
||||
)
|
||||
|
||||
env.SharedLibrary("libpandasafety.so", ["test.c"])
|
||||
Reference in New Issue
Block a user