Make make install work

This commit is contained in:
miruka 2019-08-30 20:13:38 -04:00
parent cc4a33bb04
commit 446dc776b0
2 changed files with 29 additions and 16 deletions

View File

@ -11,7 +11,6 @@
- When qml syntax highlighting supports ES6 string interpolation, use them
- Fixes
- `make install`
- Make uvloop optional
- Backspace bug

View File

@ -1,12 +1,8 @@
TEMPLATE = app
# widgets: Make native file dialogs available to QML (must use QApplication)
QT = quick widgets
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG += warn_off c++11 release
dev {
CONFIG -= warn_off release
CONFIG += debug qml_debug declarative_debug
}
TEMPLATE = app
BUILD_DIR = build
MOC_DIR = $$BUILD_DIR/moc
@ -14,12 +10,30 @@ OBJECTS_DIR = $$BUILD_DIR/obj
RCC_DIR = $$BUILD_DIR/rcc
QRC_FILE = $$BUILD_DIR/resources.qrc
SOURCES += src/main.cpp
TARGET = harmonyqml
# Custom CONFIG options
!no_embedded {
RESOURCES += $$QRC_FILE
}
SOURCES += src/main.cpp
TARGET = harmonyqml
dev {
CONFIG -= warn_off release
CONFIG += debug qml_debug declarative_debug
}
# Files to copy for `make install`
win32:executables.path = "C:/Program Files"
!win32:executables.path = /usr/local/bin
executables.files = $$TARGET
INSTALLS += executables
# Libraries includes
@ -62,7 +76,7 @@ write_file($$QRC_FILE, file_content)
# Allow cleaning folders instead of just files
win32:QMAKE_DEL_FILE = rmdir /q /s
unix:QMAKE_DEL_FILE = rm -rf
!win32:QMAKE_DEL_FILE = rm -rf
for(file, $$list($$glob_filenames(*.py))) {
PYCACHE_DIRS *= $$dirname(file)/__pycache__