This commit is contained in:
朱子楚 2023-03-25 19:38:36 +08:00
parent fcdb05b7d1
commit e2d72d4510
3 changed files with 29 additions and 13 deletions

28
example/Info.plist Normal file
View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>example</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.example</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>LSMinimumSystemVersion</key>
<string>10.14</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
</dict>
</plist>

View File

@ -1,6 +1,6 @@
QT += quick concurrent network multimedia QT += quick concurrent network multimedia
CONFIG += c++11 CONFIG += c++11
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS QT_NO_WARNING_OUTPUT DEFINES += QT_DEPRECATED_WARNINGS QT_NO_WARNING_OUTPUT
SOURCES += \ SOURCES += \
@ -8,17 +8,8 @@ SOURCES += \
main.cpp main.cpp
RESOURCES += qml.qrc RESOURCES += qml.qrc
RC_ICONS = favicon.ico RC_ICONS = favicon.ico
#qnx: target.path = /tmp/$${TARGET}/bin
#else: unix:!android: target.path = /opt/$${TARGET}/bin
#!isEmpty(target.path): INSTALLS += target
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH = QML_IMPORT_PATH =
# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH = QML_DESIGNER_IMPORT_PATH =
CONFIG(debug,debug|release) { CONFIG(debug,debug|release) {
DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../bin/debug) DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../bin/debug)
@ -27,7 +18,6 @@ CONFIG(debug,debug|release) {
} }
win32 { win32 {
contains(QT_ARCH, i386) { contains(QT_ARCH, i386) {
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/*.dll) $$DESTDIR COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/*.dll) $$DESTDIR
contains(QMAKE_CC, cl) { contains(QMAKE_CC, cl) {
@ -43,9 +33,7 @@ contains(QT_ARCH, i386) {
QMAKE_PRE_LINK += $$QMAKE_COPY $$COPYDLL QMAKE_PRE_LINK += $$QMAKE_COPY $$COPYDLL
} }
} }
} }
HEADERS += \ HEADERS += \
ChatController.h ChatController.h

0
src/macos_install.sh Normal file → Executable file
View File