aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* baremetal: Add support for GCC to msp430f5529 exampleDenis Shienkov2019-08-234-0/+21
| | | | | | Change-Id: I0cb4e24f42945b88ef2ff283d4809d47cf95e81d Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Add example for MSP-EXP430F5529LP boardDenis Shienkov2019-08-159-0/+518
| | | | | | | | This commit adds a simple example for the msp430-based microcontroller which blinking of the red LED and can be built for IAR EW toolchain. Change-Id: I5025130848020e71bef449f0ed15da1f68698e79 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* bare-metal: Remove target flag from the MCS51 example for SDCCDenis Shienkov2019-07-291-2/+1
| | | | | | | ... as this flag automatically sets inside of SDCC module. Change-Id: If670a3a67ed66f8fe9f2209e5259e57a1fb85f49 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* bare-metal: Add support for SDCC to stm8s103f exampleDenis Shienkov2019-07-292-6/+25
| | | | | Change-Id: I00b62a426e806bbb57526658f7a5d3cb9a210b48 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Merge 1.14 into masterChristian Kandeler2019-07-263-1/+42
|\ | | | | | | Change-Id: Ic632b377bf10e2b320956011e9a7d4eea99f560b
| * Add a complete example for a Rule in a ProductIvan Komissarov2019-07-103-1/+42
| | | | | | | | | | Change-Id: I4739440cb90f7ef5795f79da053246f8071aa57e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | bare-metal: Add example for STM8S103F3 boardDenis Shienkov2019-07-2611-4/+449
| | | | | | | | | | | | | | | | | | This commit adds a simple example for the stm8-based microcontroller which blinking of the red LED and can be built for IAR EW toolchain. Change-Id: I6df068b0a2104f7418ed01c6a8ca03b2f9aef3cf Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Install colliding-mice example into the correct locationRichard Weickelt2019-07-081-2/+2
|/ | | | | | | | This example was still using installPrefix instead of installDir. Change-Id: Ia493b2a9b7c6fded6fc90321996730bfc8cd22e9 Reviewed-by: Qbs CI Bot <travis-bot@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix compiling with project.withExamples:true on MacIvan Komissarov2019-07-011-1/+3
| | | | | | | | | | | | | | | First, if qbs.targetPlatform is set, it is desired to use a corresponding architecture (armv7 or arm64); otherwise x86_64 architecture is used. Second, when building in Qt Creator, xcode module can't be found (due to different profile settings) and sysroot is not set to point to the iPhoneOS.sdk which leads to unability to find some frameworks. Disable this example when using QtC. Change-Id: I9fe413e6feb8fe7cfc6ff2e58323b81d8bf06839 Reviewed-by: Qbs CI Bot <travis-bot@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Add support for gRPC to the protobuf.cpp moduleIvan Komissarov2019-06-275-0/+254
| | | | | | | | This implements support for the gRPC framework: https://www.grpc.io Change-Id: Ia85461b9618e73827114c137fce8615e5a8139e3 Reviewed-by: Qbs CI Bot <travis-bot@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Add example for SDCC toolchain for 8051 architectureDenis Shienkov2019-05-062-5/+19
| | | | | | Change-Id: I4a7dfadcefdca0b8c26167188c46fbc5cdd4766b Reviewed-by: Richard Weickelt <richard@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* bare-metal: Add example for CC2540 USB dongleDenis Shienkov2019-04-268-1/+468
| | | | | | | | | | | | This commit adds a simple example for the 8051-based microcontroller which blinking of the green LED and can be built for different toolchains: * IAR EW * KEIL uVision Change-Id: I8c35594884c60b0980f5c8310f87dd0528ab8799 Reviewed-by: Richard Weickelt <richard@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* bare-metal: Add example for OLIMEX AVR-CAN boardDenis Shienkov2019-04-177-1/+409
| | | | | | | | | | | This commit adds a simple example for the AVR-based microcontroller which blinking of the red LED and can be built for different toolchains: * GCC * IAR EW Change-Id: If2c1695f55cf5ed36dcc288f272e5972d4fab3c9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* bare-metal: Add example for STM32F4DISCOVERY boardDenis Shienkov2019-04-1515-0/+1526
| | | | | | | | | | | | This commit adds a simple example for the ARM-based microcontroller which blinking of the blue LED and can be built for different toolchains: * GCC * IAR EW * KEIL MDK Change-Id: Icf9f1bb20356f5ccc532e895754ec0a7928ecdbc Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Use 'const auto' keywords more at objects allocationsDenis Shienkov2019-02-231-1/+1
| | | | | | Change-Id: I592d433e7c473ae9f27ca08e701516efe53650ba Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Add protobuf.cpp and protobuf.objc modulesIvan Komissarov2018-11-228-0/+446
| | | | | | | | | | | These modules implement google protobuf support for QBS for c++ and objective-c languages [ChangeLog] Added protobuf support for C++ and Objective-C. Fixes: QBS-563 Change-Id: I4bb7e0bdfc1e09ea26c0cd3d3739a741ff834e5d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix the "colliding mice" example on non-Darwin platformsChristian Kandeler2018-11-161-2/+3
| | | | | | | | The bundle module is no longer pulled in unconditionally. This amends 67c0107214. Change-Id: I08dd40a4e007474a7737ed17f1a1db2cee633cef Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Merge 1.11 into masterChristian Kandeler2018-02-232-2/+4
|\ | | | | | | Change-Id: Ic3e40083dcec6421fb5b55e8a4ccba7b49298c54
| * Examples: explicitly set the target platform for the Apple onesJake Petroules2018-02-232-2/+4
| | | | | | | | | | Change-Id: I8b31fc682a04f4d577eb2713f6e2af8519148800 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Use 'auto' keywords more for the allocated variablesDenis Shienkov2018-01-231-1/+1
|/ | | | | Change-Id: I25ec97e64522d7fa486fcf408d8134cbbd8b24ea Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Replace 'foreach' macro with range-based 'for'Denis Shienkov2017-11-241-2/+2
| | | | | Change-Id: I34479bc9673d0202363aeba5c7919efc8f0d7287 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Rename CoreUtils in install-bundle exampleJake Petroules2017-11-131-3/+3
| | | | | | | That name conflicts with an Apple system framework. Change-Id: I9d8c1f3fdff813341e433578e4e48aac607a1e39 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Polish examples/collidingmiceJoerg Bornemann2017-10-171-8/+7
| | | | | | | | Use proper installation instead of destinationDirectory, and use a simpler style for the Qt.widgets dependency. Change-Id: I3dbed37c55e9064b0497c03933536ffcbc224cd7 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Polish examples/app-and-libJoerg Bornemann2017-10-173-4/+5
| | | | | | | | | Assign sensible names to the products, fix the style of the project files and add some more descriptive output. Change-Id: Icdca5e8c32cfef767aa18abc2dd9c4688880c2ba Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Merge 1.9 into masterChristian Kandeler2017-10-052-3/+3
|\ | | | | | | | | | | This is intended to be the last merge from 1.9. Change-Id: I7b9dec70a50726f4ed2d54152eab472f2c6b74ec
| * Increase the iOS example app's deployment target to 8.0Jake Petroules2017-10-042-3/+3
| | | | | | | | | | | | | | | | The latest verion of Xcode isn't even capable of building storyboards for iOS 6.1 anymore. Change-Id: I72efdf2558eb03394ce89efd8a95eb1a4eb706d7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Merge remote-tracking branch 'origin/1.9'Joerg Bornemann2017-09-264-3/+4
|\| | | | | | | Change-Id: I40c1ea23e7351deac715958783158c089e65a02d
| * Fix broken deployment target handling in install-bundle exampleJake Petroules2017-09-202-1/+2
| | | | | | | | | | | | | | This fixes a build error with Xcode 9, which is more strict. Change-Id: I10f67655ba525ffa909319b43c713947a55a9c7b Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * Fix Info.plist variable expansion warning in example projectsJake Petroules2017-09-202-2/+2
| | | | | | | | | | | | | | | | We match the minimum deployment target values of macOS 10.8 and iOS 6.1 from the corresponding Xcode projects present alongside each example. Change-Id: Ideacac6cc8b58cf70baa22d5246b282ae0686d33 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Make sure all files in the repository are shown in the Qbs project treeJake Petroules2017-08-165-0/+17
| | | | | | | | | | | | | | | | This is helpful when working with IDEs because it enables Find functions to work better, and avoids context switching to other editors. Change-Id: I419ab440bd2b43eaf712b2cc498cc6c2d6d9e21b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Merge 1.9 into masterChristian Kandeler2017-08-142-7/+9
|\| | | | | | | Change-Id: I6da76b0a53bf87105c4e7b48724d9760cb68e831
| * Do not access the bundle module unconditionallyChristian Kandeler2017-08-022-7/+9
| | | | | | | | | | | | | | | | | | | | It is a mistake that the NativeBinary item currently pulls in the bundle module unconditionally (and also that the module is enabled everywhere). We want to change that. Prepare for the change by removing all unconditional accesses to the module's properties. Change-Id: If57b8222c1a0e2b09c33520882446fa71401f1f1 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Update the license headers of examplesJoerg Bornemann2017-08-0334-275/+543
| | | | | | | | | | | | Change-Id: I29c6501e8afaa839beea94a44c03870ddd287367 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Add support for the Qt Quick compilerJoerg Bornemann2017-08-036-0/+264
|/ | | | | | | | | | | | | | | | | | | | | Detect the availability of the Qt Quick compiler in qbs-setup-qt. Add a property bool Qt.quick.compilerAvailable that is true if the Qt Quick compiler is available in this Qt build. If the compiler is available, create an extended Qt.quick module with Qt Quick compiler rules. Create a standard module otherwise. The rules pick up Qt resource files tagged with Qt.quick.qrc and compile the referenced QML files. The remaining files are put into a new QRC file that is then passed to rcc. A prioritized file tagger is provided that automatically tags *.qrc files as "qt.quick.qrc" if the Qt quick compiler is available. [ChangeLog] Added support for the Qt Quick compiler. Task-number: QBS-749 Change-Id: I44e490e09796afeb5455ec50abc1e798f7eaf01a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Add support for building macOS disk imagesJake Petroules2017-06-1228-32/+262
| | | | | | | | | | | | | | | | This allows users to build drag 'n' drop installers with custom backgrounds, volume icons, and icon layouts. Unlike other solutions, disk images with these features can be built without any reliance on AppleScript, Finder, or a graphical login session, making it (mostly) reproducible and CI-friendly. .DS_Store files and their contained alias and bookmark records (which control the mounted disk image's appearance in the Finder) are written on-demand based on qbs properties defined in the project file, as well as the Carbon LPic, TEXT, styl, and RTF resources used for embedding a license agreement prompt. Task-number: QBS-416 Change-Id: I95431e21becc3bea075a1468d5271a41c38bbd04 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix race condition in code-generator exampleChristian Kandeler2017-04-031-8/+2
| | | | | Change-Id: I2adade1855de34adbe9c0c9629427c706621936b Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Attach the bundle.content file tag to files that are part of a bundleJake Petroules2017-02-0811-31/+794
| | | | | | | | | | | | | This simplifies installation for end users, as they only ever have to use this one tag to install an entire bundle, rather than having to remember every possible file tag attached to the output artifacts of rules which install their output to a bundle. Refactor associated rules to handle this new internal workflow. This paves the way for other new functionality like bundle embedding. Change-Id: I76369383ae08d1ff5433b73d517a657dbd329b78 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix Cocoa examplesJake Petroules2016-12-123-4/+13
| | | | | | | | cpp.precompiledHeader no longer exists, and the iOS app was missing from the examples qbs file. Change-Id: I2e5f662fb28f6fcd0e4554866eb8828ca1be08ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Update license headersIikka Eklund2016-08-2912-98/+393
| | | | | | | | | | Patch-set 2 includes *.cpp *.c Every source file needs to have up-to-date license headers in order to pass ci. Change-Id: Ie6e493097af6f7dd6a8adff170eb856f496e689e Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Update license headersIikka Eklund2016-08-299-66/+271
| | | | | | | | | | Patch-set 1 includes *.h Every source file needs to have up-to-date license headers in order to pass ci. Change-Id: Ib6cf3ac47dfba6dff262fded44bc952aef3bda8b Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Merge 1.5 into 1.6Jake Petroules2016-06-281-1/+1
|\ | | | | | | Change-Id: If1a2c368170d89d5e6e11b08a32b37901d51eb1d
| * Do the OS X to macOS rename.v1.5.2Jake Petroules2016-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog] The "osx" value in qbs.hostOS and qbs.targetOS has been replaced with "macos". For backwards compatibility, qbs.hostOS will still contain "osx" in addition to "macos", and an error will be printed if qbs.targetOS contains "osx" but not "macos". Specifying "macos" without "osx" is allowed. These checks are subject to be removed in a future version of qbs, so update your hostOS and targetOS checks accordingly. [ChangeLog] cpp.minimumOsxVersion has been deprecated and replaced with cpp.minimumMacosVersion. cpp.minimumOsxVersion is subject to be removed in a future version of qbs, so update your projects accordingly. Change-Id: I479891829dff6eb6750cb2a04e1395f085896f63 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* | Merge remote-tracking branch 'origin/1.5'Joerg Bornemann2016-06-0833-33/+33
|\| | | | | | | | | | | | | | | Conflicts: doc/reference/items/transformer.qdoc share/qbs/modules/cpp/GenericGCC.qbs Change-Id: I45560834560019b18274c373c45651eb8aadd206
| * Replace 'the Qt build suite' with 'Qbs' in copyright notices.Jake Petroules2016-06-0633-33/+33
| | | | | | | | | | | | Change-Id: I885d94bb14b325dc36767a840ebdb0be1fb59dd2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Use Qt5-style connectsOrgad Shaneh2016-06-071-1/+1
| | | | | | | | | | | | | | The heavy lifting was done by clazy. Change-Id: Ibb13c517567b1b32bbda6d26225454d1b003934d Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* | Remove items scheduled for removal in 1.6.Jake Petroules2016-04-222-8/+2
|/ | | | | Change-Id: I4098b281ab9c1f5bc29fe23164dd3a3303759ce0 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Deprecate bundle.infoPlistFile and start tagging Info.plist files.Jake Petroules2015-11-023-2/+6
| | | | | | | | This ensures that artifacts will be appropriately rebuilt if the product's Info.plist file changes, which is currently ignored. Change-Id: I3adf7e74bd32f3bb8d3084061dd2793aa02b932c Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Merge branch 1.4 into master.Christian Kandeler2015-10-261-4/+3
|\ | | | | | | Change-Id: I45ee8897a07522c51833739afc8de374ec269e08
| * fix examples/code-generatorJoerg Bornemann2015-09-111-4/+3
| | | | | | | | | | | | | | This example did nothing since commit c91dcd35. Change-Id: I7aa440272b2499e26bc947e9b973682a82ca2b75 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
* | Use org.example instead of com.petroules in Info.plists.Jake Petroules2015-09-222-2/+2
|/ | | | | | | | This makes sure the Qbs and Xcode builds will generate the same CFBundleIdentifier, which will be important for code signing. Change-Id: Ic877e98b89d50f996e9a603791fa16646ca0f7d3 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>