mirror of
https://github.com/eclipse/mraa.git
synced 2025-10-14 19:48:28 +08:00

This removes Python 2 package generation from the project to encourage safer development with Python 3 instead. Documentation for the generated modules switched to Python 3. Default interpreter is now Python 3 but can be overridden if needed for running the tests only on older environments. Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
34 lines
970 B
Bash
Executable File
34 lines
970 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Author: Nicolas Oliver <dario.n.oliver@intel.com>
|
|
# Copyright (c) 2017 Intel Corporation.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
set -x
|
|
set -e
|
|
|
|
# Install doxygen2jsdoc dependencies
|
|
cd doxygen2jsdoc && npm install && cd ..
|
|
|
|
# Install doxyport dependencies
|
|
cd doxyport && make setup && cd ..
|
|
|
|
# Make Documentation
|
|
make -j8 -Cbuild
|
|
|
|
# Make Java Documentation
|
|
cd build/src/java && echo ../../../src/mraa.i > mraa.i.list && \
|
|
../../../doxyport/doxyport mraa.i.list \
|
|
--cmake ../../compile_commands.json \
|
|
--source ../../../api,../../../api/mraa \
|
|
--destination $(pwd)/ \
|
|
--convert-protected-to-private \
|
|
--output mraa-java-files.txt \
|
|
--mapping ../../../examples/samples.mapping.txt && \
|
|
doxygen Doxyfile && cd ../../../
|
|
|
|
# Copy output to build/html/ directory
|
|
cp -r build/src/python/python3/docs/html build/html/python && \
|
|
cp -r build/src/java/html build/html/java && \
|
|
cp build/jsdoc/ternjs/mraa/doc.js build/html/node/mraa_tern.js
|