aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* GitHub actions: fix macOS 14.2 jobIvan Komissarov2024-04-302-3/+3
| | | | | | | ...by bumping minimum macOS version. Change-Id: I3097cacb6782d262e623bb16851f5d5cec616ee0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Add CMake Exporter moduleRaphael Cotty2024-02-292-0/+12
| | | | | | | | The module allows to generate a cmake package for Qbs libraries. Change-Id: I4405899ad73e87aeb63bd8471596e89770591b38 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* examples: add Exporters exampleIvan Komissarov2024-01-318-0/+502
| | | | | | | | This example contains two libs that are exported using multiple exporters (both qbs and pkgconfig). Change-Id: I67a4a2461d81be7931767e8cc0b968d05cbdf48c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* examples: install app in app-and-libIvan Komissarov2024-01-291-0/+1
| | | | | Change-Id: I4c52ae7b9c255b23028d1cd6c77ff4fdf4c00e42 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove project.withExamplesIvan Komissarov2024-01-291-20/+2
| | | | | | | | | | | We have a dedicated test that checks that examples are built. It makes little sense to build examples as a part of Qbs since it prevents us from installing example binaries which makes examples incomplete. Change-Id: Ie14ba8bf12daa05f6de12d8a8873a704020852c2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Do not compare hostOS and targetOS using ===Ivan Komissarov2023-07-212-3/+3
| | | | | Change-Id: I5e5ff2a3f657461f82fe0e60547174d79ff86443 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* GitHub actions: fix macOS jobv2.1.0Ivan Komissarov2023-07-072-0/+2
| | | | | | | | | Use qbspkgconfig in proto examples. Pass additional libs to proto/grpc tests. Change-Id: Ic3018fcb5b2350610a4ab70b97efad1abaac9252 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Export cxxLanguageVersion from protobuf modulesIvan Komissarov2023-06-281-1/+0
| | | | | | | This amends eb008eac0535ac8265cbacb449fac6806204ebe3. Change-Id: Iab410d81c9f708aa1363bc9ca969cb219fe797b5 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Bump c++ ver for protobufIvan Komissarov2023-06-191-1/+1
| | | | | | | ... to c++17, otherwise tests fail on mac Change-Id: Iaf2f14d67c65b3beb679225f77aeb6f20039e39b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Cocoa Touch Application: add example of code signing settingsAndrey Filipenkov2023-06-181-0/+5
| | | | | Change-Id: I625adee1d6fc9bc720c76b72d624a36f879ded39 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Use Host and FileInfo serviceRaphael Cotty2022-01-312-3/+7
| | | | | | | | Replace all the possible use of the qbs module that can be replaced by the Host and FileInfo services. Change-Id: I0d6f820bb2577eacd9081ec2df1eb53adf94d50e Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Add missing std:: namespace for all functions from <cstdio> libraryDenis Shienkov2021-12-012-7/+7
| | | | | Change-Id: Ia5c14b86e5e0952dbebf103c5355f49e41158cba Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix descriptions for JS commandsDenis Shienkov2021-11-151-1/+1
| | | | | | | | | | | * All descriptions start with a small letter. * Trailing dots have been removed from all descriptions. * For all static library rules replaced 'linking' with 'creating' in descriptions. * Added 'ing' ending to all descriptions where it was missing. Change-Id: I2a4cb9dd53980d33628e097efaae53a68573af42 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* examples: Add missing std::puts namespace in 'app-and-lib' exampleDenis Shienkov2021-11-062-2/+2
| | | | | Change-Id: I7ae06def0cd51ff73e04c11c0b681489654af698 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Implement eager pkg-config providerIvan Komissarov2021-10-142-0/+197
| | | | | | | | | | This implements provider that generates modules based on all .pc files present in system. This allows to get rid of the multi-shot providers such as fallback provider. Fixes: QBS-1614 Change-Id: Icf87ac609bc34bd26e8ed94ae547a7e649835a3a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove `import qbs` from all project filesDenis Shienkov2021-08-0439-75/+0
| | | | | | | | | | | | | | ... because we don't need in this inclusion at all. But for some cases it is impossible to remove that inclusions (and even to move on next lines) because then the some tests are failed by unknown reason. For those tests were added the following comments on the inclusion lines: `// FIXME: Don't remove this import because then the test fails!` Change-Id: I9153fd0e38b94af08168e499ee46a23889ee4d73 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Replace "product" variable by "exportingProduct" in Export itemsRaphael Cotty2021-05-071-1/+1
| | | | | | | | | | | | "product" variable in an Export item will point to the "importingProduct" in 1.21. This patch prepares the change by replacing "product" by "importingProduct" when necessary. Task-number: QBS-1576 Change-Id: I215d46484754e76771039a750dc4beb33d8a0c9c Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Implement codesign moduleJake Petroules2021-02-181-1/+8
| | | | | | | | | | | | | | | This moves code signing functionality into a dedicated module, and also implements automatic provisioning for Apple platforms, which automatically selects appropriate signing identities and provisioning profiles based on the product being built. This also results in a significant performance improvement since all code signing setup information is retrieved in process instead of forking off the openssl and security command line tools. Task-number: QBS-899 Change-Id: I60d0aeaeb2d1004929505bcb1e0bc77512fe77bc Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* protobuf/addressbook_objc: convert to ARCAndrey Filipenkov2021-01-152-55/+48
| | | | | | | also improve code style Change-Id: I90742f01ba8ebc9933c49e30940103990a4391a1 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Cocoa Touch Application: use launch storyboardAndrey Filipenkov2020-12-147-15/+57
| | | | | | | replace legacy static launch images with launch storyboard Change-Id: I16c5d829bc2852f5388ef66218c23f1a126e5130 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Cocoa Touch Application: change bundle identifier's prefix to io.qbsAndrey Filipenkov2020-12-142-3/+5
| | | | | Change-Id: Ia716bc3c530a8d863814d8961279137514b533a0 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Cocoa Touch Application: upgrade Xcode project to 12.2Andrey Filipenkov2020-12-142-2/+44
| | | | | Change-Id: I4f8ad7b67559ef57e22bad3182ded4d3b0cf2b4f Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Cocoa Touch Application: convert to Automated Reference CountingAndrey Filipenkov2020-12-146-40/+19
| | | | | Change-Id: I8ba4f86536c719f69d128781ab9502307fe8bb3b Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Cocoa Touch Application: set deployment target to iOS 9.0Andrey Filipenkov2020-12-142-3/+3
| | | | | | | Xcode 12's minimum supported iOS is 9.0 Change-Id: I1690845f529acfb9e561f8dadade65db687b6736 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Install Cocoa Touch ApplicationIvan Komissarov2020-12-081-0/+1
| | | | | | | To check if all files in a bundle are copied correctly Change-Id: Ic128671d39102a10b1adfb0ade5d856f062dd813 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Move some file to bundle.resources in Cocoa Touch ApplicationIvan Komissarov2020-12-081-4/+12
| | | | | Change-Id: I9af93a19bcaeca85a357cb65715378c0ce2126ca Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* cmake: Replace symlinked directory with full contentCristian Adam2020-10-215-1/+4723
| | | | | | | | This will fix Qt Creator's build on GitHub Actions which fails on Windows bots at install time due to the symlinked directory. Change-Id: I765a65cf4e85650403600ac77c3f54633ac4eb02 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add support for IAR toolchain to 'stm32f103' exampleDenis Shienkov2020-10-024-0/+240
| | | | | Change-Id: I66810811b04d1fb7909ee0bb9975d1823ce6e9b6 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add support for IAR toolchain to 'pca10040' exampleDenis Shienkov2020-10-014-0/+338
| | | | | Change-Id: I78ba146f349018f77285e0fd5957fc49bfc03794 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Fix startup code for PCA10040 board using Keil toolchainDenis Shienkov2020-10-011-238/+111
| | | | | Change-Id: I09d3d3edbcdb3d1e5ae82fce4d204a174dfda5bb Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add missing target assembler flags for ARM architecture examplesDenis Shienkov2020-09-304-0/+26
| | | | | Change-Id: If8a75095f98bf38f9cbd178d8ed857dfcb368833 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add support for IAR toolchain to 'pca10001' exampleDenis Shienkov2020-09-304-0/+229
| | | | | Change-Id: I2efcdf5009d0011ceb11e37451305c36f0f87475 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add new example for Nordic's 'pca10001' boardDenis Shienkov2020-09-3012-0/+1040
| | | | | | | | | | | | This commit adds example for both PCA10001 and PCA10024 development boards (based on nRF51822 MCU) from Nordic Semiconductor. This example only blinks with the green LED and supports both GCC and KEIL toolchains. Change-Id: I5b77cfc45fee4b8d52d9cc1647f689b5e737c132 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Fix compilation of 'pca10040' example using Keil toolchainDenis Shienkov2020-09-301-0/+3
| | | | | Change-Id: I57bfbd5e6865527187661fb2fae8c47d49349dfc Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add WiFi AP example for ESP8266 MCU using GCC toolchainDenis Shienkov2020-09-248-0/+384
| | | | | | | | | | | | | | | This example implements the non-connectable WiFi access point running on the ESP8266-WROOM-02 module: * https://www.espressif.com/sites/default/files/documentation/0c-esp-wroom-02_datasheet_en.pdf For compilation of this module requires the GCC-based proprietary (pre-compiled) ESP8266 NON-OS SDK: * https://github.com/espressif/ESP8266_NONOS_SDK Change-Id: I035e9d8dc621d0981783008fe12af378ee9b02e6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Initial support for GitHub ActionsIvan Komissarov2020-09-011-0/+1
| | | | | | | | | | This commit adds jobs similar to what we have in Travis. Some tests are disabled when running on GitHub since they do not pass for various reasons. Note that those tests are usually skipped on Travis due to missing dependencies. Change-Id: Icec96dc22e2939d12568d2de1f1a4537c35977ad Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* examples: fix license headersIvan Komissarov2020-08-178-90/+265
| | | | | | | We use different license for examples Change-Id: Ia0ceb7c36997185ac1cae6c72fc9873bfd0b15fe Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* xcode: Fix rpaths example for XCode 9.4Ivan Komissarov2020-08-041-0/+3
| | | | | Change-Id: Id25b339ddab14bb7c1fac68a747e94b1ac3ba58d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* protobuf: suppress warnings in addressbook_cpp exampleIvan Komissarov2020-07-282-2/+9
| | | | | | Change-Id: I34de8d7c14b3e7556d53af0274366b9fb720c6d7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Add support for Cap'n Proto for the c++ languageIvan Komissarov2020-07-217-0/+1080
| | | | | | | | | | | Cap'n Proto is a 'cerialization protocol' similar to protobuf: https://capnproto.org/index.html This patch mainly focuses on the c++ support for the capnp protocol keeping in mind the possibility to add other languages later. Change-Id: Ib19a9df1f45f2787503197791ac597d06cc45e9d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* doc: Add How-To about cpp.rpathsIvan Komissarov2020-07-157-0/+288
| | | | | | Task-number: QBS-1204 Change-Id: I2d04ccb0cbcd7c1a6b5a5f251e70d34b3a960da7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* protobuf: fix condition in addressbook_cpp exampleIvan Komissarov2020-07-031-1/+1
| | | | | | | It is not allowed to compare lists using operator== Change-Id: I6c3ad9e70a7f2ecd0cfbc7f85ad7ce84a19532d0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Do not use id property in protobuf examplesIvan Komissarov2020-07-032-4/+4
| | | | | Change-Id: Ia7128e89624d874755e699dde791ac0d7c4029b2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix Qt 5.15 deprecation warningsChristian Kandeler2020-06-163-8/+9
| | | | | Change-Id: I1d6968de823c43e42ca53eb68972ba5e69dc29ed Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Fix TestBlackboxExamples with iOS profileIvan Komissarov2020-06-089-14/+23
| | | | | Change-Id: Ic5b37c323c726227311d5c0c73477da8043e3315 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* 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>