Skip to content
Snippets Groups Projects
bitmask.pro 1.23 KiB
Newer Older
  • Learn to ignore specific revisions
  • #TARGET = $$BINARY_NAME
    
    CONFIG += qt staticlib
    
    Kali Kaneko's avatar
    Kali Kaneko committed
    windows:CONFIG += console
    unix:DEBUG:CONFIG += debug
    lessThan(QT_MAJOR_VERSION, 5): error("requires Qt 5")
    
    Kali Kaneko's avatar
    Kali Kaneko committed
    QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11
    
    Kali Kaneko's avatar
    Kali Kaneko committed
    
    
    macx {
        LIBS += -framework Security
    
        # TODO -- pass the vendor icon here from Makefile.
    
        ICON = branding/assets/riseup/icon.icns
    
    kali's avatar
    kali committed
    win32 {
        RC_ICONS = branding/assets/riseup/icon.ico
    }
    
    Kali Kaneko's avatar
    Kali Kaneko committed
    QT += qml quick widgets
    
    Kali Kaneko's avatar
    Kali Kaneko committed
    
    SOURCES += \
        gui/main.cpp \
        gui/qjsonmodel.cpp \
        gui/handlers.cpp
    
    
    HEADERS += \
        gui/handlers.h \
        gui/qjsonmodel.h \
        lib/libgoshim.h
    
    
    # we build from build/qt
    LIBS += -L../../lib -lgoshim -lpthread
    
    Kali Kaneko's avatar
    Kali Kaneko committed
    
    
    RESOURCES += gui/gui.qrc
    
    RESOURCES += providers/riseup/vendor.qrc
    
    Kali Kaneko's avatar
    Kali Kaneko committed
    DESTDIR = release
    OBJECTS_DIR = release/.obj
    MOC_DIR = release/.moc
    RCC_DIR = release/.rcc
    UI_DIR = release/.ui
    
    Release:DESTDIR = release
    Release:OBJECTS_DIR = release/.obj
    Release:MOC_DIR = release/.moc
    Release:RCC_DIR = release/.rcc
    Release:UI_DIR = release/.ui
    
    Debug:DESTDIR = debug
    Debug:OBJECTS_DIR = debug/.obj
    Debug:MOC_DIR = debug/.moc
    Debug:RCC_DIR = debug/.rcc
    Debug:UI_DIR = debug/.ui
    
    DISTFILES += \
        README.md
    
    
    CONFIG += lrelease embed_translations
    
    TRANSLATIONS += $$files(gui/i18n/*.ts, true)
    RESOURCES += $$files(gui/i18n/*.qm, true)