File tree 2 files changed +32
-22
lines changed
2 files changed +32
-22
lines changed Original file line number Diff line number Diff line change
1
+ platforms :
2
+ mega2560 :
3
+ gcc :
4
+ warnings :
5
+ - no-unknown-attributes
6
+ - no-address-of-packed-member
7
+
1
8
unittest :
2
- platforms :
3
- - mega2560
4
- libraries :
5
- - " Adafruit BusIO"
6
- - " Adafruit MAX31865"
7
- - " Arduino-PID-Library"
8
- - " Ethernet"
9
- - " LiquidCrystal"
10
- - " RTClib"
11
- - " Keypad"
12
- - " SD"
9
+ platforms :
10
+ - mega2560
11
+ libraries :
12
+ - " Adafruit BusIO"
13
+ - " Adafruit MAX31865"
14
+ - " Arduino-PID-Library"
15
+ - " Ethernet"
16
+ - " LiquidCrystal"
17
+ - " RTClib"
18
+ - " Keypad"
19
+ - " SD"
13
20
14
21
compile :
15
- platforms :
16
- - mega2560
17
- libraries :
18
- - " Adafruit BusIO"
19
- - " Adafruit MAX31865"
20
- - " Arduino-PID-Library"
21
- - " Ethernet"
22
- - " LiquidCrystal"
23
- - " RTClib"
24
- - " Keypad"
25
- - " SD"
22
+ platforms :
23
+ - mega2560
24
+ libraries :
25
+ - " Adafruit BusIO"
26
+ - " Adafruit MAX31865"
27
+ - " Arduino-PID-Library"
28
+ - " Ethernet"
29
+ - " LiquidCrystal"
30
+ - " RTClib"
31
+ - " Keypad"
32
+ - " SD"
Original file line number Diff line number Diff line change 1
1
CC = g++ -std=c++17 -O3 -fPIC
2
2
DEFINES = -D__AVR__ -D__AVR_ATmega2560__ -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DARDUINO=100
3
+ WARNINGS = -Wno-unknown-attributes -Wno-address-of-packed-member
3
4
LIBRARIES = $(shell bundle exec arduino_library_location.rb)
4
5
PY_PATH = $(shell cd ../pybind11; python3 -m pybind11 --includes)
5
6
SUFFIX = $(shell python3-config --extension-suffix)
@@ -13,6 +14,7 @@ $(PY_LIB) : TankControllerLib.o ../pybind11/setup.py ../libTC.cpp
13
14
echo " ===== Compiling PY_LIB ($( PY_LIB) ) =====" > /dev/null
14
15
$(CC ) -shared -fPIC \
15
16
$(DEFINES ) \
17
+ $(WARNINGS ) \
16
18
-Wl,-undefined,dynamic_lookup \
17
19
$(PY_PATH ) \
18
20
-I$(TC_PATH ) \
@@ -37,6 +39,7 @@ TankControllerLib.o : Godmode.o
37
39
echo " ===== Compiling TankControllerLib =====" > /dev/null
38
40
$(CC ) -c \
39
41
$(DEFINES ) \
42
+ $(WARNINGS ) \
40
43
-I$(TC_PATH ) \
41
44
-I$(TC_PATH ) /Devices \
42
45
-I$(TC_PATH ) /UIState \
You can’t perform that action at this time.
0 commit comments