Skip to content

Commit

Permalink
scons: put targets in global SConscript (commaai#1180)
Browse files Browse the repository at this point in the history
* Revert "remove unused scons argument (commaai#1169)"

This reverts commit 702e528.

* try this

* clean up

* default true

* default true

* already built
  • Loading branch information
sshane authored Dec 1, 2022
1 parent a0b1d64 commit 2ae7b9a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
6 changes: 6 additions & 0 deletions SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# panda fw
SConscript('board/SConscript')

# test files
if GetOption('test'):
SConscript('tests/libpanda/SConscript')
10 changes: 6 additions & 4 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -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')
2 changes: 1 addition & 1 deletion tests/libpanda/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env = Environment(
'-fno-builtin',
'-std=gnu11',
],
CPPPATH=[".", "#board/"],
CPPPATH=[".", "../../board"],
)

env.SharedLibrary("libpanda.so", ["safety_helpers.c"])
11 changes: 0 additions & 11 deletions tests/safety/SConscript

This file was deleted.

0 comments on commit 2ae7b9a

Please sign in to comment.