Commit graph

26 commits

Author SHA1 Message Date
Simon Hausmann
499ab6645c Disable the examples build by default again
This reverts commit a79ee93ea9 and
re-instates the change of 3358841ab0, as
the dependency issue with generating the header files in time for make
install is fixed by running cbindgen in build.rs of sixtyfps-cpp,
instead of via xtask from cmake.
2021-09-18 07:32:53 +02:00
Simon Hausmann
562842f19e Bump minimum required CMake version from 3.16 to 3.19
The upcoming re-organization of the C++ header generation requires the
use of the CORROSION_ENVIRONMENT_VARIABLES target property, which in
turn requires CMake >= 3.19.
2021-09-18 07:32:53 +02:00
Simon Hausmann
a79ee93ea9 Fix install in default cmake build
Disabling the build of any artefacts (examples, tests) that depend on the SixtyFPS target somehow
prevents generated_headers_target from being run.

The plan is to get rid of that target and run cbindgen in build.rs of the cpp
crate, but meanwhile re-enable the examples build by default.
2021-09-16 11:50:22 +02:00
Simon Hausmann
0e191caf78 Improve cmake diagnostics
Print a feature summary. This also helps diagnose CI builds.
2021-09-16 10:41:33 +02:00
Simon Hausmann
3358841ab0 Disable the build of tests and examples by default
Re-enable them in the CI (naturally), but with them off by default any
spurious compiler warnings in the tests won't break the build of users
and we don't clone catch2 and fmtlib by default.
2021-09-16 09:53:59 +02:00
Simon Hausmann
cca2a18edb Fix C++ build with the interpreter disabled 2021-09-03 14:33:55 +02:00
Tobias Hunger
aea4ecca99 Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
Olivier Goffart
13bd828b96 Update license date 2021-07-02 15:55:54 +02:00
Simon Hausmann
4c33a8f70b C++: Make it possible to build just the library/tool
... and allow skipping over the examples. Together with -DBUILD_TESTING=OFF
this provides a minimal build.
2021-06-21 17:56:56 +02:00
Simon Hausmann
031acd77d3 C++ tutorial: Remove inline source in getting start 2021-06-17 15:30:44 +02:00
Simon Hausmann
476abf4951 Prospective fix for ctest on Windows
Only place the examples into the bin directory, not the test binaries. ctest expects them in the binary dir.
2021-06-01 10:20:12 +02:00
Simon Hausmann
5d24fde6f5 Make it easier to run the examples on Windows in the C++ build
Place the examples into the bin folder in the top-level directory (when
not built standalone), along with the sixtyfps dll.
2021-06-01 10:05:00 +02:00
Simon Hausmann
b7ab299de0 Fix C++ iot-dashboard build with older CMake versions
... by excluding it from the build with <= 3.16 :-)

Also pin fmtlib to the latest release, instead of master - to be on
the safe side.

Fixes #232
2021-05-20 16:56:51 +02:00
Simon Hausmann
906d1f4b95 Added boilerplate for C++ iot dashboard 2021-05-17 11:12:08 +02:00
Olivier Goffart
eab8f733fc Build the old printer C++ demo 2021-04-27 12:20:06 +02:00
Olivier Goffart
1dba04721a Add a qt_viewer example that uses QWidget 2021-03-23 17:13:41 +01:00
Olivier Goffart
5b726cacbe Interpreted printer demo
It fails at runtime because it can't compile the .60,  but since
there is no diagnostics output for now, it is hard to know why
2021-03-19 18:33:40 +01:00
Simon Hausmann
ec1775f9ae Add skeleton for C++ API tests 2021-03-16 16:30:54 +01:00
Olivier Goffart
c53f69d332 memory game in C++ 2020-12-10 13:09:21 +01:00
Olivier Goffart
119898f6d0 Remove the test examples 2020-10-08 17:18:22 +02:00
Olivier Goffart
2903428072 Add a C++ build of the gallery 2020-10-08 17:18:22 +02:00
Olivier Goffart
8b02568b4b Refactor the cmake C++ build 2020-10-07 11:40:34 +02:00
Olivier Goffart
e9b63552a7 Skeleton for a TODO app 2020-09-07 14:15:27 +02:00
Olivier Goffart
58cdaeb8dd Update license header to mention that commertial option are available 2020-08-26 13:23:42 +02:00
Simon Hausmann
2823f32692 Apply license headers to all non-binary/non-json sources 2020-08-17 17:55:20 +02:00
Olivier Goffart
59a198b213 Create a top level CMakeLists.txt
Also disable Qt for now in the CI as this does not currently build
because of a bug in aho-corasick
2020-08-04 11:16:50 +02:00