

If warn_off is also specified, the last one takes effect. The compiler should output as many warnings as possible. Specify dependencies as described in the SUBDIRS variable documentation.Įnables support for the use of precompiled headers in projects.Įnables support for the use of precompiled headers for C files. Note: The use of this option is discouraged. When using the subdirs template, this option specifies that the directories listed should be processed in the order in which they are given. cpp file that includes the precompiled header file specified in the. If debug_and_release is specified, the project is built in both debug and release modes by default.Īutomatically generates a. If debug_and_release is also set, the debug and release builds end up in separate debug and release directories.

The project is prepared to be built in both debug and release modes. The project is to be built in debug mode.

If debug is also specified, the last one takes effect. The project is to be built in release mode.
MINGW YACC ANDROID
Note: This variable applies only to Android modules. For instance, you can make a custom AndroidManifest.xml for your application, then place this directly into the directory specified by this variable.
MINGW YACC FOR ANDROID
By default, the androiddeployqt tool copies the application template from the Qt for Android installation path into your project's build directory, then it copies the contents of the path specified by this variable on top of that, overwriting any existing files. The path specified by this variable can contain custom Java classes under src directory. Specifies the path for a custom Android package template. By default, this variable is set to API level 21. Specifies the minimum Android API level for the project. Plugins/libplugins_platforms_qtforandroid.so ANDROID_MIN_SDK_VERSION To include external libraries for multiple ABIs, where each ABIs has its own directory, use the following: For more information, see Adding OpenSSL Support for Android. This can be used, for instance, to enable OpenSSL in your application. ANDROID_EXTRA_LIBSĪ list of external libraries that will be copied into your application's libs folder and loaded on start-up. This overrides the path to the settings file generated by qmake, thus you have to make sure to provide a valid settings file. Specifies the path to the android-deployment-settings.json file needed by androiddeployqt and androidtestrunner. This variable provides a way to override the automatic detection entirely, so if a library is listed before its dependencies, it will fail to load on some devices. It's also important to make sure the files are listed in the correct loading order. Failing to include all the correct files can result in crashes. Note: Only the Qt files specified with this variable are included.
MINGW YACC INSTALL
This should contain a list of all Qt files which need to be included, with paths relative to the Qt install root. If you want to minimize the size of your APK, it's possible to override the automatic detection using the this variable. However, since run-time usage of plugins cannot be detected, there could be false positives, as your application might depend on any plugin that is a potential dependency. You can provide the ABIs as a qmake argument:ĪNDROID_BUNDLED_JAR_DEPENDENCIES += jar/QtAndroid.jar ANDROID_DEPLOYMENT_DEPENDENCIESīy default, androiddeployqt will detect the dependencies of your application. Note: This variable applies only to Android targets. For example, a makespec may use QMAKE_LIBS to specify a list of libraries that each project needs to link against, and QMAKE_LIBS_X11 would be used to extend this list. Platform-specific variables follow the naming pattern of the variables which they extend or modify, but include the name of the relevant platform in their name. Others are used to customize the behavior of compilers and linkers on specific platforms. Some of these declare resources, such as headers and source files, that are common to each platform. The fundamental behavior of qmake is influenced by variable declarations that define the build process of each project.
