######################################################################
# Automatically generated by qmake (3.1) Thu Mar 4 18:08:23 2021
######################################################################

TEMPLATE = app
TARGET = bluetoothService
INCLUDEPATH += .  \
               /usr/include/KF6/BluezQt  \
               /usr/include/x86_64-linux-gnu/qt6


include(../environment.pri)

QT       += core dbus
QT       -= gui

#greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11 \
          link_pkgconfig  x11extras

PKGCONFIG += gio-2.0 \
             kysdk-sysinfo
#exists(/usr/include/kysdk/kysdk-base/libkydiagnostics.h)
#{
#    PKGCONFIG += kysdk-diagnostics
#    DEFINES += EXISTS_KYSDK_DIAGNOSTICS
#}


LIBS += -lpthread \
        -lglib-2.0 \
        -lKF6BluezQt \
        -lQt6DBus
QMAKE_CFLAGS += -fPIC
QMAKE_CXXFLAGS += -fPIC

target.source += $$TARGET
target.path   = $$BIN_INSTALL_DIR
inst1.files += ../data/org.ukui.log4qt.bluetoothserver.gschema.xml
inst1.path = $$SCHEMAS_INSTALL_DIR
INSTALLS += target

# The following define makes your compiler warn you if you use any
# feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
#DEFINES += QT_DEPRECATED_WARNINGS
#DEFINES += QT_NO_INFO_OUTPUT
#DEFINES += QT_NO_DEBUG_OUTPUT

exists(/usr/include/KF6/BluezQt/bluezqt/battery.h){DEFINES += BATTERY}

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
SOURCES += main.cpp \
    adapter.cpp \
    app.cpp \
    bluetoothagent.cpp \
    bluetoothobexagent.cpp \
    buriedpointdata.cpp \
    common.cpp \
    config.cpp \
    daemon.cpp \
    device.cpp \
    filesess.cpp \
    sessiondbusregister.cpp \
    systemadapter.cpp \
    leavelock.cpp

HEADERS += \
    CSingleton.h \
    adapter.h \
    app.h \
    bluetoothagent.h \
    bluetoothobexagent.h \
    buriedpointdata.h \
    common.h \
    config.h \
    daemon.h \
    device.h \
    filesess.h \
    sessiondbusregister.h \
    systemadapter.h \
    leavelock.h

OBJECTS_DIR = ./obj/
MOC_DIR = ./moc/
#CONFIG+=force_debug_info
