-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHomeAssistant.pro
62 lines (51 loc) · 1.59 KB
/
HomeAssistant.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
QT += core gui network widgets
TARGET = "HA Light Sync"
TEMPLATE = lib
DEFINES += HOMEASSISTANT_LIBRARY
CONFIG += c++11 plugin qt
# Include the common plugin stuff
include(../OpenRGB.plugins.pri)
HEADERS += \
../../RGBController/RGBController.h \
../../Colors.h \
include/HomeAssistantPlugin.h \
include/HomeAssistantController.h \
include/HALightDevice.h \
include/ConfigurationDialog.h \
include/SecureSettings.h
SOURCES += \
../../RGBController/RGBController.cpp \
src/HomeAssistantPlugin.cpp \
src/HomeAssistantController.cpp \
src/HALightDevice.cpp \
src/ConfigurationDialog.cpp \
src/SecureSettings.cpp
FORMS += \
forms/ConfigurationDialog.ui
INCLUDEPATH += \
. \
include \
../../ \
../../qt/ \
../../hidapi_wrapper \
../../SPDAccessor \
../../Controllers \
../../RGBController \
../../dependencies/hidapi \
../../dependencies/hidapi-win/include \
../../dependencies/json \
../../i2c_smbus \
../../i2c_tools \
../../net_port \
generated_files
# Set the output directory to OpenRGB's plugins folder
PLUGIN_OUTPUT_DIR = $$shell_path($$(APPDATA)/OpenRGB/plugins)
DESTDIR = $$PLUGIN_OUTPUT_DIR
# If APPDATA environment variable is not set, try a default path
isEmpty(PLUGIN_OUTPUT_DIR) {
DESTDIR = $$shell_path($$(USERPROFILE)/AppData/Roaming/OpenRGB/plugins)
}
# For debugging, print the destination directory
message("Plugin will be installed to: $$DESTDIR")
# Ignore warning about possible data loss
QMAKE_CXXFLAGS += -wd4267