aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Rename .qbs files in examples to match catalog structureIvan Komissarov2020-05-1815-12/+11
| | | | | Change-Id: I66996ff2b3e8dcb50b24ad92dffd0651322653e9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Examples: Fix app_and_lib on Android multi-archRaphaƫl Cotty2020-05-122-4/+2
| | | | | | | | | | The lib.qbs was using the Product item and setting the type property to staticLibrary. This resulted in not inheriting from the NativeBinary item which sets the multiplex/aggregate properties on the android platform. Fixes: QBS-1545 Change-Id: I1448266dfb0ed94fdf114c110c10899bc1cf23d2 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix copyrightsIvan Komissarov2020-05-124-8/+8
| | | | | | | | In several places, mail was missing. In others, it was incorrectly placed on the 'Contact' line Change-Id: I462301555fe59140f54fd504b5beb37d7c6fca87 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Add GCC toolchain support to pca10040 exampleDenis Shienkov2020-04-284-1/+437
| | | | | | Change-Id: I7a482296ecbcddc91d6ab430155d6a45e32a2cc7 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Add GCC toolchain support to stm32f103 exampleDenis Shienkov2020-04-284-1/+380
| | | | | Change-Id: Ida327f4ef61de58040bd949ec71b2375cbe3f4b0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Add LED blink example for pca10040 board using Keil toolchainDenis Shienkov2020-04-2810-0/+893
| | | | | | | | | This development board based on Nordic nRF52832 ARM MCU: * https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK Change-Id: Ib29b2d9afcaf1d56c834557982363aa6e5493259 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Add LED blink example for stm32f103 MCU using Keil toolchainDenis Shienkov2020-04-2710-1/+702
| | | | | | Change-Id: Id52108a5e4397efb28e6e8319653fde87a256720 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Do not hardcode qbs.targetPlatform in CocoaTouchApplication.qbsIvan Komissarov2020-04-141-4/+1
| | | | | | | | | To be able to choose between ios and ios-simulator. Same applies to qbs.architecture, pick it from the given profile Change-Id: I695c87d187dc5fd01cb1ae52ec146f76ad2899f8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix helloworld-complex in "profiling" build on WindowsIvan Komissarov2020-04-062-3/+3
| | | | | | | | | _DEBUG macro is used by the MSVC compiler internally to enable/disable some features (like debug iterators) and defining it manually leads to obscure compilation errors Change-Id: I10e79ccbbfd40fe378fe9b754ecfc6066497eee5 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: fix greenblink example with old sdcc compilerIvan Komissarov2020-03-231-0/+3
| | | | | | | There is no NOP macro defined in mcs51/compiler.h, provide a fallback. Change-Id: Ifaeb8b54ec87e05f6bb4ba5060e1b18a2c94c78e Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* baremetal: Fix some typos in README files of examplesDenis Shienkov2020-03-172-2/+2
| | | | | | Change-Id: I5fac5a0a690b9302276acddb502c6be6b9492b60 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Fix target ARM architecture condition in an examplesDenis Shienkov2020-03-171-1/+1
| | | | | | | We need to use .startsWith("arm") instead of .contains("arm"). Change-Id: I521eea231313ce79132ff30a3a05eed629f33b06 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix GRPC exampleIvan Komissarov2020-03-061-1/+1
| | | | | Change-Id: I59a4655776d58ac1bb9ff19261cfdac94693e639 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Install some packages on Mac jobs to run more testsIvan Komissarov2020-02-061-0/+10
| | | | | Change-Id: I90865ba6908df1550c2646a57d348dcb82e244ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* clang-cl: Fix build warningsIvan Komissarov2020-01-281-0/+4
| | | | | | | Those are treated as errors and fail build on Travis Change-Id: I6ce46434cb37af936f25836dc857ed65f0b5cd1b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* travis: Add XCode 9.4 jobIvan Komissarov2020-01-201-0/+1
| | | | | | | | | | | This is still the default one on Travis and Qbs should support it Also, only build XCode10 variant on master to avoid extra job for gerrit builds Change-Id: I100e7e4560aeca3c2c3d77d81ecc9097853e0a2d Reviewed-by: Richard Weickelt <richard@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix 'performance-unnecessary-value-param' warningsIvan Komissarov2020-01-071-1/+1
| | | | | | | | | | Use more pass-by-const-ref since there is no point in passing objects by value in these cases Also, treat this warning as error Change-Id: I5382dcd56639f535cf240205cc5c3ac667c4ece3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Adapt source code to Qt 6Christian Kandeler2019-12-171-1/+3
| | | | | | Change-Id: If84e3e4c832c2b3dc39e40be13e989996ab764d1 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Apply 'modernize-deprecated-headers' fix-itIvan Komissarov2019-11-265-5/+5
| | | | | | | | C++ standard library provides "modern" headers for the functions from the C standard library Change-Id: I51ac83c1f072773c6a5909a2025e737be539e906 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Apply 'readability-container-size-empty' fix-itIvan Komissarov2019-11-251-1/+1
| | | | | Change-Id: I4693b9a2c941b63e8b60bbe5d188031e648354f6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Apply 'modernize-return-braced-init-list' fix-itIvan Komissarov2019-11-251-2/+1
| | | | | Change-Id: Idbf3ad63c2f8cda295ea40f529a07129c2d979e7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Apply 'modernize-use-override' fix-itIvan Komissarov2019-11-251-4/+4
| | | | | Change-Id: I1e31b2983568848db8af7139244fe96821ac3b1e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix compiler warnings on macOSIvan Komissarov2019-11-201-1/+1
| | | | | | Change-Id: I865357bf74bdaf88eabae5681c70a6e5032e274d Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Suppress warnings for the protobuf addressbook exampleIvan Komissarov2019-11-181-0/+1
| | | | | Change-Id: I33fb2e7d16c8f6a31426b9b3f4e0c7ecb1583600 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Add USB HID gamepads example for MSP430f5529 chipDenis Shienkov2019-11-0220-1/+3149
| | | | | | | | | This example demonstrates how to create the USB HID device on MSP430f5529 chip (based on MSP430 architecture) using the different toolchains (IAR EW, GCC). Change-Id: Ic4d6a17d3e75e7ccb9b1f3eeaaef9abdf2da896b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Add USB HID gamepads example for CY7C68013A chipDenis Shienkov2019-10-2919-0/+3286
| | | | | | | | | | | This example demonstrates how to create the USB HID device on CY7C68013A chip (based on 8051 architecture) using the different toolchains (SDCC, IAR EW, KEIL). Change-Id: I2678c680245c1b969466b2e91fe04850635cc09b Reviewed-by: Richard Weickelt <richard@weickelt.de> Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* 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>