summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Field <dennisf@radiosound.com>2020-03-24 14:09:05 -0400
committerJan-Simon Möller <dl9pf@gmx.de>2020-04-07 15:30:01 +0200
commitfec9f6a77b3193eb159dd78ba659a4d51c309f1d (patch)
treef8ea7a7a9f59dfea4c41373faa3dbb37f1daa03f
parente91f62e70e7596756b3f38a4b80ec25f5c215f68 (diff)
app-workflow-build-app: Add info about linux-oe-* for qmake
When building a Qt qmake project on desktop or AGL, this can be used to do something different when compiling outside of the AGL environment vs. when building for AGL through bitbake. Unsure what happens when building the application through the SDK, may be necessary to adjust this tip to work under more scenarios. I found this QMAKE_SPEC by running a devshell for the app recipe, then running `qmake -query`
-rw-r--r--docs/getting-started/app-workflow-build-app.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/getting-started/app-workflow-build-app.md b/docs/getting-started/app-workflow-build-app.md
index 85364b7..943e63d 100644
--- a/docs/getting-started/app-workflow-build-app.md
+++ b/docs/getting-started/app-workflow-build-app.md
@@ -56,6 +56,25 @@ The following list describes several:
section in the Yocto Project Application Development and Extensible
Software Development Kit (eSDK) Manual.
+ * Using Qt Creator / qmake and want to use the same .pro / .pri file to build for desktop or AGL? Put AGL-specific definitions inside a `linux-oe-*` block in your .pro and .pri files, e.g.:
+ ```
+ linux-oe-* {
+ PKGCONFIG += qlibwindowmanager qtappfw
+ DEFINES += AGL
+ QMAKE_LFLAGS += "-Wl,--hash-style=gnu -Wl,--as-needed"
+ load(configure)
+ qtCompileTest(libhomescreen)
+
+ config_libhomescreen {
+ CONFIG += link_pkgconfig
+ PKGCONFIG += homescreen
+ DEFINES += HAVE_LIBHOMESCREEN
+ }
+
+ DESTDIR = $${OUT_PWD}/../package/root/bin
+ }
+ ```
+
* **Build the Application Using Your Own Methodology:**
Use any method you are familiar with to create your application.
Many development tools and workflows exist that allow you to