|
| 1 | +################################################################################ |
| 2 | +# |
| 3 | +# OpenHD |
| 4 | +# |
| 5 | +################################################################################ |
| 6 | + |
| 7 | +# The Git repository from which to clone the source code |
| 8 | +OPENHD_SITE = https://github.com/openhd/OpenHD.git |
| 9 | +OPENHD_SITE_METHOD = git |
| 10 | +OPENHD_GIT_SUBMODULES = YES |
| 11 | + |
| 12 | +# Set the version to the latest commit of the default branch |
| 13 | +OPENHD_VERSION = 2.6-evo |
| 14 | + |
| 15 | +# Enable Git submodules if the project requires them |
| 16 | +OPENHD_GIT_SUBMODULES = YES |
| 17 | + |
| 18 | +# Subdirectory inside the Git repo, if needed (if OpenHD is not in the root) |
| 19 | +OPENHD_SUBDIR = OpenHD |
| 20 | + |
| 21 | +# Install to both the staging directory and target, for linking and runtime |
| 22 | +OPENHD_INSTALL_STAGING = YES |
| 23 | +OPENHD_INSTALL_TARGET = YES |
| 24 | + |
| 25 | +# List of dependencies that must be built before OpenHD |
| 26 | +OPENHD_DEPENDENCIES = poco libsodium gstreamer1 gst1-plugins-base libpcap host-pkgconf |
| 27 | + |
| 28 | +# Additional configuration options for the CMake build |
| 29 | +OPENHD_CONF_OPTS = \ |
| 30 | + -DENABLE_USB_CAMERAS=OFF \ |
| 31 | + -DCMAKE_TOOLCHAIN_FILE=$(BR2_TOOLCHAIN_FILE) \ |
| 32 | + -DCMAKE_SYSROOT=$(STAGING_DIR) \ |
| 33 | + -DCMAKE_PREFIX_PATH=$(STAGING_DIR)/usr \ |
| 34 | + -DCMAKE_BUILD_TYPE=Release \ |
| 35 | + -DCMAKE_INSTALL_PREFIX=/usr |
| 36 | + |
| 37 | +# Use Buildroot's CMake package infrastructure to handle the build |
| 38 | +$(eval $(cmake-package)) |
0 commit comments