Skip to content

Commit

Permalink
ios: fix link and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Jan 27, 2016
1 parent 45ed316 commit 5e58cca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion qml/libQmlAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ RESOURCES +=
QML_FILES = $$PWD/Video.qml

qtav_qml.files = $$PWD/qmldir $$PWD/Video.qml $$PWD/plugins.qmltypes
!ios: plugin.files = $$DESTDIR/$$qtSharedLib($$NAME)
!static { #static lib copy error before ranlib. copy only in sdk_install
plugin.files = $$DESTDIR/$$qtSharedLib($$NAME)
}
plugin.path = $$BUILD_DIR/bin/QtAV/
mkpath($$plugin.path)
#plugin.depends = #makefile target
Expand Down
3 changes: 2 additions & 1 deletion src/libQtAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ config_gl: QT += opengl
}
CONFIG *= qtav-buildlib
staticlib: DEFINES += BUILD_QTAV_STATIC
static: CONFIG *= static_ffmpeg
INCLUDEPATH += $$[QT_INSTALL_HEADERS]
icon.files = $$PWD/$${TARGET}.svg
icon.path = /usr/share/icons/hicolor/64x64/apps
Expand Down Expand Up @@ -344,7 +345,7 @@ winrt {
glibc_compat: *linux*: LIBS += -lrt # do not use clock_gettime in libc, GLIBC_2.17 is not available on old system
static_ffmpeg {
# libs needed by mac static ffmpeg. corefoundation: vda, avdevice
mac: LIBS += -liconv -lbz2 -lz -framework CoreFoundation -Wl,-framework,Security
mac|ios: LIBS += -liconv -lbz2 -lz -framework CoreFoundation -Wl,-framework,Security
win32: LIBS *= -lws2_32 -lstrmiids -lvfw32 -luuid
!mac:*g++* {
LIBS *= -lz
Expand Down
2 changes: 2 additions & 0 deletions tools/install_sdk/install_sdk.pro
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ greaterThan(QT_MAJOR_VERSION, 4) {
} else {
sdk_qml_install.commands = $$quote($$COPY_DIR $$system_path($$BUILD_DIR/bin/QtAV) $$system_path($$[QT_INSTALL_QML]))
}
static: sdk_qml_install.commands += $$quote($$COPY $$system_path($$PROJECT_LIBDIR/$$ORIG_LIB/libQmlAV*) $$system_path($$[QT_INSTALL_QML]/QtAV/))
#static qml plugin is not copied to bin/QtAV. copy it and prl
sdk_qml_install.commands += $$quote($$COPY $$system_path($$PROJECTROOT/qml/plugins.qmltypes) $$system_path($$[QT_INSTALL_QML]/QtAV/))
sdk_qml_uninstall.commands = $$quote($$RM_DIR $$system_path($$[QT_INSTALL_QML]/QtAV))
write_file($$BUILD_DIR/sdk_install.$$SCRIPT_SUFFIX, sdk_qml_install.commands, append)
Expand Down

0 comments on commit 5e58cca

Please sign in to comment.