Commit graph

11 commits

Author SHA1 Message Date
Simon Hausmann
2bde730de9 Don't bother trying to generate LaTeX 2020-08-21 16:54:23 +02:00
Simon Hausmann
6ea46aa7e4 Include the language reference in the C++ docs
It's still a bit buggy but better than nothing
2020-08-21 16:46:23 +02:00
Simon Hausmann
f610957de0 Include README.md in the C++ Docs 2020-08-21 16:36:58 +02:00
Simon Hausmann
baf0e151a5 Include more header files in the doxygen pass 2020-08-21 16:26:21 +02:00
Simon Hausmann
462d73ccdc Switch to Doxygen
clang-doc is nice and good, but there are features missing such as the ability to manually create a reference (link)...
2020-08-21 16:22:59 +02:00
Simon Hausmann
e397c83d1f Fix parameters to clang-doc to generate HTML
... for now that's more readable.
2020-08-20 16:29:19 +02:00
Simon Hausmann
0e7c39dce4 Added cmake boilerplate for running clang-doc
It's an experiment :-)
2020-08-20 16:24:51 +02:00
Simon Hausmann
2823f32692 Apply license headers to all non-binary/non-json sources 2020-08-17 17:55:20 +02:00
Simon Hausmann
547a732e33 Fix rebuild issues, part 10523
By setting RUSTFLAGS in the Cargo config we run into the situation that
when doing a host build, all rust files are compiled with the flags,
including build.rs. When cross-compiling, build.rs is not build with the
RUSTFLAGS specified. That makes kind of sense, but it also means that
all the build scripts are always recompiled when switching between a
target and a host build - and that applies to *all* packages, including
dependencies.

So short of a better solution, this patch removes the need to set
RUSTFLAGS. It was used to extract the system library dependencies for
the static library we'd create. Instead we're now building two shared
libraries and are linking against them. They contain the rust library
twice, so that's not really a desirable final state either, but
productivity wins right now :-)

It might make sense to go back to creating *one* shared library through
a dedicated crate and -- since 'pub extern "C"' functions are not
transitively exported, it may require re-exporting them by hand or using
some clever build trick perhaps.
2020-06-09 13:08:59 +02:00
Simon Hausmann
2e0a5ddb25 Create & install a cmake package file (part 3)
The cargo target directory tree is now populated with a cmake package
file and that's also installed into the prefix specified with the cargo
cmake xtask.

As a consequence, the cpptest example can be built by first building the
cmake package:

    cargo xtask cmake

    or

    cargo xtask cmake --release --target some-triplet)

    or

    cargo xtask cmake --release --prefix /somewhere --install

and then run cmake in the cpptest example with a prefix path:

    -DCMAKE_PREFIX_PATH=/where/you/installed/it or simply
    -DCMAKE_PREFIX_PATH=../../target/debug for example.

Pending still is the sixtyfps compiler tool installation and discovery.
2020-06-04 15:33:18 +02:00
Simon Hausmann
c5001703d4 Build the cmake module for our runtime as xtask, part 2
This is done by calling cargo with json output to build the libraries,
collect the .a files, extract the native libraries needed for final
linkage and pass all that to a CMake project that cobbles together the
.a files into a propery cmake target with include paths, etc.
2020-06-04 15:29:19 +02:00