2019-08-17 12:33:27 -04:00
|
|
|
TARGET = "pic_fw_flash_tool"
|
2019-08-14 21:26:27 -04:00
|
|
|
TEMPLATE = app
|
|
|
|
|
QT += sql
|
|
|
|
|
QT += widgets
|
|
|
|
|
QMAKE_CXXFLAGS_RELEASE = -Os
|
|
|
|
|
INCLUDEPATH += ../
|
|
|
|
|
SOURCES += \
|
|
|
|
|
Settings.cpp \
|
|
|
|
|
MainWindow.cpp \
|
|
|
|
|
main.cpp \
|
|
|
|
|
DeviceData.cpp \
|
|
|
|
|
Device.cpp \
|
|
|
|
|
Comm.cpp \
|
|
|
|
|
ImportExportHex.cpp
|
|
|
|
|
HEADERS += \
|
|
|
|
|
Settings.h \
|
|
|
|
|
MainWindow.h \
|
|
|
|
|
DeviceData.h \
|
|
|
|
|
Device.h \
|
|
|
|
|
Comm.h \
|
|
|
|
|
ImportExportHex.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FORMS += MainWindow.ui \
|
|
|
|
|
Settings.ui
|
|
|
|
|
RESOURCES += resources.qrc
|
|
|
|
|
OTHER_FILES += windows.rc
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
# Add the correct HIDAPI library according to what
|
|
|
|
|
# OS is being used
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
win32: LIBS += -L../HIDAPI/windows
|
|
|
|
|
macx: LIBS += -L../HIDAPI/mac
|
|
|
|
|
unix: !macx: LIBS += -L../HIDAPI/linux
|
|
|
|
|
LIBS += -lHIDAPI
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
# Make sure to add the required libraries or
|
|
|
|
|
# frameoworks for the hidapi to work depending on
|
|
|
|
|
# what OS is being used
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
macx: LIBS += -framework CoreFoundation -framework IOkit
|
|
|
|
|
win32: LIBS += -lSetupAPI
|
|
|
|
|
unix: !macx: LIBS += -lusb-1.0
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
# Make sure output directory for object file and
|
|
|
|
|
# executable is in the correct subdirectory
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
macx {
|
|
|
|
|
DESTDIR = mac
|
|
|
|
|
OBJECTS_DIR = mac
|
|
|
|
|
MOC_DIR = mac
|
|
|
|
|
UI_DIR = mac
|
|
|
|
|
RCC_DIR = mac
|
|
|
|
|
}
|
|
|
|
|
unix: !macx {
|
|
|
|
|
DESTDIR = linux
|
|
|
|
|
OBJECTS_DIR = linux
|
|
|
|
|
MOC_DIR = linux
|
|
|
|
|
UI_DIR = linux
|
|
|
|
|
RCC_DIR = linux
|
|
|
|
|
}
|
|
|
|
|
win32 {
|
|
|
|
|
DESTDIR = windows
|
|
|
|
|
OBJECTS_DIR = windows
|
|
|
|
|
MOC_DIR = windows
|
|
|
|
|
UI_DIR = windows
|
|
|
|
|
RCC_DIR = windows
|
|
|
|
|
}
|
2019-08-19 16:56:38 -04:00
|
|
|
|
|
|
|
|
DISTFILES +=
|