-
Notifications
You must be signed in to change notification settings - Fork 0
/
qutipi-cpp.pro
72 lines (61 loc) · 1.73 KB
/
qutipi-cpp.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# We need Qt core for the library
QT += core
# We dont need a gui for library
QT -= gui
# Define the params for the library
TARGET = qutipi-cpp
TEMPLATE = lib
DEFINES += QUTIPI_CPP
CONFIG += staticlib exceptions
# Disable unused warning parameter
QMAKE_CXXFLAGS_WARN_OFF -= -Wunused-parameter -Wall
QMAKE_CFLAGS_WARN_OFF -= -Wunused-parameter -Wall
# Include the confiruation file
include($$PWD/../../config.pri)
# Select the target for the framework
INCLUDEPATH += $$PWD/Targets/$${TARGETSOC} \
SUBDIRS += $$PWD/Targets/$${TARGETSOC}
include(Targets/$${TARGETSOC}/$${TARGETSOC}.pri)
# Warnings for deprecated Qt features
DEFINES += QT_DEPRECATED_WARNINGS
# Include all the source files
SOURCES += \
Hardware/ADC/MCP3424.cpp \
Drivers/I2C.cpp \
Drivers/InterruptIn.cpp \
Hardware/GPIO/MCP23008.cpp
# Include all the header files
HEADERS += $$PWD/Global.h \
Drivers/DigitalIn.h \
Hal/pin_map.h \
Hal/gpio_api.h \
Hal/gpclk_api.h \
Hal/dma_api.h \
Hal/delay_api.h \
Hal/pcm_api.h \
Hal/pwm_api.h \
Hal/gpio_irq_api.h \
Hal/port_api.h \
Hal/time_api.h \
Hardware/ADC/MCP3424.h \
Drivers/I2C.h \
Drivers/DigitalOut.h \
QutiPi.h \
Drivers/InterruptIn.h \
Platform/Platform.h \
Platform/Callback.h \
Platform/NonCopyable.h \
Drivers/DigitalInOut.h \
Hal/i2c_api.h \
Drivers/Exceptions/I2CError.h \
Drivers/Exceptions/I2CReadError.h \
Drivers/Exceptions/I2CWriteError.h \
Drivers/Exceptions/I2COpenError.h \
Drivers/Exceptions/I2CAddressError.h \
Hardware/GPIO/MCP23008.h
# Ensure the targets are not included
#SOURCES -= Targets/*/*.cpp
#HEADERS -= Targets/*/*.h
# Include the read me files and licensing files
DISTFILES += \
README.md