File tree 2 files changed +4
-3
lines changed
deps/tools/multiCameraServer
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 17
17
DEPS_CFLAGS? =$(shell pkg-config --cflags cameraserver ntcore wpiutil)
18
18
DEPS_LIBS? =$(shell pkg-config --libs --static cameraserver ntcore wpiutil)
19
19
CXXFLAGS?=-std =c++20
20
+ FRC_JSON? =/boot/frc.json
20
21
21
22
.PHONY : all clean
22
23
26
27
rm -f multiCameraServer
27
28
28
29
multiCameraServer : src/multiCameraServer.cpp
29
- ${CXX} -pthread -g -o $@ ${CXXFLAGS} ${DEPS_CFLAGS} $^ ${DEPS_LIBS}
30
+ ${CXX} -pthread -g -o $@ ${CXXFLAGS} ${DEPS_CFLAGS} ' -DFRC_JSON="${FRC_JSON}" ' $^ ${DEPS_LIBS}
Original file line number Diff line number Diff line change 59
59
}
60
60
*/
61
61
62
- #ifdef __RASPBIAN__
63
- static const char * configFile = " /boot/frc.json " ;
62
+ #ifdef FRC_JSON
63
+ static const char * configFile = FRC_JSON ;
64
64
#else
65
65
static const char * configFile = " frc.json" ;
66
66
#endif
You can’t perform that action at this time.
0 commit comments