diff --git a/mea.pro b/mea.pro index b2687ea0..ad60e239 100644 --- a/mea.pro +++ b/mea.pro @@ -59,8 +59,8 @@ QMAKE_EXTRA_TARGETS += osxbundle # Translations support -TRANSLATIONS += $$files(mea/translations/*.ts, true) -lrelease.commands = lrelease $$_FILE_ -lrelease-qmake_all.commands = lrelease $$_FILE_ +TRANSLATIONS += $$files($$absolute_path(mea)/translations/*.ts, true) +lrelease.commands = lrelease $$TRANSLATIONS +lrelease-qmake_all.commands = lrelease $$TRANSLATIONS QMAKE_EXTRA_TARGETS += lrelease lrelease-make_first lrelease-qmake_all lrelease-install_subtargets mea.depends += lrelease diff --git a/mea/mea.pro b/mea/mea.pro index afc223ff..03ce7ec2 100644 --- a/mea/mea.pro +++ b/mea/mea.pro @@ -54,6 +54,19 @@ macx: { ICON = ../packaging/osx/icon.icns } +ios: { + message("iOS build") + QMAKE_TARGET_BUNDLE_PREFIX = io.guh + QMAKE_BUNDLE = mea + # Configure generated xcode project to have our bundle id + xcode_product_bundle_identifier_setting.value = $${QMAKE_TARGET_BUNDLE_PREFIX}.$${QMAKE_BUNDLE} + plist.input = ../packaging/ios/Info.plist.in + plist.output = $$OUT_PWD/Info.plist + QMAKE_SUBSTITUTES += plist + QMAKE_INFO_PLIST = $$OUT_PWD/Info.plist + OTHER_FILES += ../packaging/ios/Info.plist.in +} + BR=$$BRANDING !equals(BR, "") { DEFINES += BRANDING=\\\"$${BR}\\\" diff --git a/packaging/ios/Info.plist.in b/packaging/ios/Info.plist.in new file mode 100644 index 00000000..95107be6 --- /dev/null +++ b/packaging/ios/Info.plist.in @@ -0,0 +1,41 @@ + + + + + CFBundleDisplayName + mea + CFBundleExecutable + mea + CFBundleGetInfoString + Created by Qt/QMake + CFBundleIconFile + ${ASSETCATALOG_COMPILER_APPICON_NAME} + CFBundleIdentifier + io.guh.mea + CFBundleName + mea + CFBundlePackageType + APPL + CFBundleShortVersionString + $$MEA_VERSION + CFBundleSignature + ${QMAKE_PKGINFO_TYPEINFO} + CFBundleVersion + 1 + LSRequiresIPhoneOS + + MinimumOSVersion + 10 + NOTE + This file was generated by Qt/QMake. + UILaunchStoryboardName + LaunchScreen + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + +