Make make install
work
This commit is contained in:
parent
cc4a33bb04
commit
446dc776b0
1
TODO.md
1
TODO.md
|
@ -11,7 +11,6 @@
|
||||||
- When qml syntax highlighting supports ES6 string interpolation, use them
|
- When qml syntax highlighting supports ES6 string interpolation, use them
|
||||||
|
|
||||||
- Fixes
|
- Fixes
|
||||||
- `make install`
|
|
||||||
- Make uvloop optional
|
- Make uvloop optional
|
||||||
- Backspace bug
|
- Backspace bug
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,8 @@
|
||||||
TEMPLATE = app
|
|
||||||
# widgets: Make native file dialogs available to QML (must use QApplication)
|
# widgets: Make native file dialogs available to QML (must use QApplication)
|
||||||
QT = quick widgets
|
QT = quick widgets
|
||||||
DEFINES += QT_DEPRECATED_WARNINGS
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
CONFIG += warn_off c++11 release
|
CONFIG += warn_off c++11 release
|
||||||
dev {
|
TEMPLATE = app
|
||||||
CONFIG -= warn_off release
|
|
||||||
CONFIG += debug qml_debug declarative_debug
|
|
||||||
}
|
|
||||||
|
|
||||||
BUILD_DIR = build
|
BUILD_DIR = build
|
||||||
MOC_DIR = $$BUILD_DIR/moc
|
MOC_DIR = $$BUILD_DIR/moc
|
||||||
|
@ -14,12 +10,30 @@ OBJECTS_DIR = $$BUILD_DIR/obj
|
||||||
RCC_DIR = $$BUILD_DIR/rcc
|
RCC_DIR = $$BUILD_DIR/rcc
|
||||||
|
|
||||||
QRC_FILE = $$BUILD_DIR/resources.qrc
|
QRC_FILE = $$BUILD_DIR/resources.qrc
|
||||||
|
|
||||||
|
SOURCES += src/main.cpp
|
||||||
|
TARGET = harmonyqml
|
||||||
|
|
||||||
|
|
||||||
|
# Custom CONFIG options
|
||||||
|
|
||||||
!no_embedded {
|
!no_embedded {
|
||||||
RESOURCES += $$QRC_FILE
|
RESOURCES += $$QRC_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
SOURCES += src/main.cpp
|
dev {
|
||||||
TARGET = harmonyqml
|
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
|
# Libraries includes
|
||||||
|
@ -62,7 +76,7 @@ write_file($$QRC_FILE, file_content)
|
||||||
|
|
||||||
# Allow cleaning folders instead of just files
|
# Allow cleaning folders instead of just files
|
||||||
win32:QMAKE_DEL_FILE = rmdir /q /s
|
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))) {
|
for(file, $$list($$glob_filenames(*.py))) {
|
||||||
PYCACHE_DIRS *= $$dirname(file)/__pycache__
|
PYCACHE_DIRS *= $$dirname(file)/__pycache__
|
||||||
|
|
Loading…
Reference in New Issue
Block a user