mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: update the file
This commit is contained in:
parent
2e0e063621
commit
1d2315747b
@ -297,6 +297,8 @@ if(WIN32)
|
||||
endif()
|
||||
|
||||
x_add_executable(xTools ${X_SOURCES})
|
||||
target_link_libraries(xTools PRIVATE ${X_LIBS})
|
||||
|
||||
x_generate_translations(xTools)
|
||||
x_output_env(xTools)
|
||||
x_deploy_qt(xTools)
|
||||
@ -305,14 +307,19 @@ x_install_qxlsx(xTools)
|
||||
x_install_qmdns(xTools)
|
||||
x_install_qrencode(xTools)
|
||||
|
||||
set(x_android_source ${CMAKE_SOURCE_DIR}/res/android/6.8)
|
||||
target_link_libraries(xTools PRIVATE ${X_LIBS})
|
||||
set_target_properties(xTools PROPERTIES QT_ANDROID_APP_NAME "xTools")
|
||||
set_target_properties(xTools PROPERTIES QT_ANDROID_PACKAGE_NAME "com.xtools.xtools")
|
||||
set_target_properties(xTools PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "com.xtools.xtools")
|
||||
set_target_properties(xTools PROPERTIES QT_ANDROID_PACKAGE_SOURCE_DIR ${x_android_source})
|
||||
set_target_properties(xTools PROPERTIES QT_ANDROID_PACKAGE_VERSION_NAME "${X_LATEST_GIT_TAG}")
|
||||
set_target_properties(xTools PROPERTIES QT_ANDROID_PACKAGE_DISPLAY_NAME "xTools")
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# Android specific settings
|
||||
if(ANDROID)
|
||||
set(x_android_source ${CMAKE_SOURCE_DIR}/res/android/6.8)
|
||||
target_link_libraries(xTools PRIVATE ${X_LIBS})
|
||||
set_target_properties(xTools PROPERTIES QT_ANDROID_PACKAGE_SOURCE_DIR ${x_android_source})
|
||||
endif()
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# MacOS specific settings
|
||||
if(APPLE AND NOT IOS)
|
||||
set_target_properties(xTools PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "com.xtools.xtools")
|
||||
endif()
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# Make installer for Windows
|
||||
@ -338,9 +345,3 @@ if(APPLE)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/dmg/dmg.cmake)
|
||||
x_generate_dmg(xTools ${X_LATEST_GIT_TAG})
|
||||
endif()
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# ???
|
||||
if(QT_VERSION_MAJOR EQUAL 6)
|
||||
qt_finalize_target(xTools)
|
||||
endif()
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" android:versionCode="-- %%INSERT_VERSION_CODE%% --" android:versionName="-- %%INSERT_VERSION_NAME%% --">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" android:versionCode="-- %%INSERT_VERSION_CODE%% --" android:versionName="-- %%INSERT_VERSION_NAME%% --" package="com.xtools.xtools">
|
||||
<!-- %%INSERT_PERMISSIONS -->
|
||||
<!-- %%INSERT_FEATURES -->
|
||||
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
|
||||
<application android:name="org.qtproject.qt.android.bindings.QtApplication" android:hardwareAccelerated="true" android:label="-- %%INSERT_APP_NAME%% --" android:requestLegacyExternalStorage="true" android:allowBackup="true" android:fullBackupOnly="false" android:icon="@drawable/icon">
|
||||
<activity android:name="org.qtproject.qt.android.bindings.QtActivity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:launchMode="singleTop" android:screenOrientation="unspecified" android:exported="true" android:label="">
|
||||
<application android:name="org.qtproject.qt.android.bindings.QtApplication" android:hardwareAccelerated="true" android:label="xTools" android:requestLegacyExternalStorage="true" android:allowBackup="true" android:fullBackupOnly="false" android:icon="@drawable/icon">
|
||||
<activity android:name="org.qtproject.qt.android.bindings.QtActivity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:launchMode="singleTop" android:screenOrientation="unspecified" android:exported="true" android:label="xTools">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user