File: sudoku-solver.pro

package info (click to toggle)
sudoku-solver 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 232 kB
  • sloc: cpp: 520; xml: 20; makefile: 6
file content (97 lines) | stat: -rw-r--r-- 2,295 bytes parent folder | download
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
######################################################################
# Automatically generated by qmake (3.0) ?? ??? 3 05:18:05 2018
######################################################################

TEMPLATE = app
TARGET = sudoku-solver
INCLUDEPATH += .

QT += widgets

MOC_DIR = .build
OBJECTS_DIR = .build
UI_DIR = .build
RCC_DIR = .build
QMAKE_LINK_OBJECT_SCRIPT = .build/object_script

RESOURCES += sudoku-solver.qrc
win32:RC_FILE = sudoku-solver.rc

DESTDIR = Bin

gcc {
    QMAKE_CXXFLAGS += -std=gnu++11
    QMAKE_CXXFLAGS += -pedantic -pedantic-errors
    QMAKE_CXXFLAGS += -Wall -Wextra -Wformat -Wformat-security -Wno-unused-variable -Wno-unused-parameter
}


isEmpty(GLOBAL_PATH_USERDATA){
    win32: GLOBAL_PATH_USERDATA=.
    unix:  GLOBAL_PATH_USERDATA=/usr/share/sudoku-solver
}

message("Set GLOBAL_PATH_USERDATA:" $$GLOBAL_PATH_USERDATA)
DEFINES += GLOBAL_PATH_USERDATA="\\\""$$GLOBAL_PATH_USERDATA"\\\""


TRANSLATIONS = $$files(langs/sudoku-solver_*.ts)

### install ###

isEmpty(QMAKE_LRELEASE) {
    win32|os2:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
    else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
    unix {
        !exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt5 }
    } else {
        !exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
    }
}

!win32 {
  system($${QMAKE_LRELEASE} -silent $${_PRO_FILE_} 2> /dev/null)
}
win32 {
  system($${QMAKE_LRELEASE} $${_PRO_FILE_})
}

updateqm.input = TRANSLATIONS
updateqm.output = langs/${QMAKE_FILE_BASE}.qm
updateqm.commands = $$QMAKE_LRELEASE -silent ${QMAKE_FILE_IN} -qm langs/${QMAKE_FILE_BASE}.qm
updateqm.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += updateqm

data_bin.path = /usr/bin/
data_bin.files = Bin/sudoku-solver
INSTALLS += data_bin

data_app.path = /usr/share/applications/
data_app.files = pkg/sudoku-solver.desktop
INSTALLS += data_app

data_icons.path = /usr/share/icons/hicolor/
data_icons.files = pkg/icons/*
INSTALLS += data_icons

data_langs.path = /usr/share/sudoku-solver/langs/
data_langs.files = langs/*.qm
INSTALLS += data_langs



###  SOURCE ###

# Input
SOURCES += main.cpp  \
    FormAbout.cpp \
    mainwindow.cpp

FORMS += \
    FormAbout.ui \
    mainwindow.ui

HEADERS += \
    FormAbout.h \
    config_sudoku_solver.h \
    mainwindow.h