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,25 +1,39 @@
|
||||||
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
|
||||||
|
TEMPLATE = app
|
||||||
|
|
||||||
|
BUILD_DIR = build
|
||||||
|
MOC_DIR = $$BUILD_DIR/moc
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
dev {
|
dev {
|
||||||
CONFIG -= warn_off release
|
CONFIG -= warn_off release
|
||||||
CONFIG += debug qml_debug declarative_debug
|
CONFIG += debug qml_debug declarative_debug
|
||||||
}
|
}
|
||||||
|
|
||||||
BUILD_DIR = build
|
|
||||||
MOC_DIR = $$BUILD_DIR/moc
|
|
||||||
OBJECTS_DIR = $$BUILD_DIR/obj
|
|
||||||
RCC_DIR = $$BUILD_DIR/rcc
|
|
||||||
|
|
||||||
QRC_FILE = $$BUILD_DIR/resources.qrc
|
# Files to copy for `make install`
|
||||||
!no_embedded {
|
|
||||||
RESOURCES += $$QRC_FILE
|
|
||||||
}
|
|
||||||
|
|
||||||
SOURCES += src/main.cpp
|
win32:executables.path = "C:/Program Files"
|
||||||
TARGET = harmonyqml
|
!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