mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
package/drogon: fix build with examples
Some examples embed CSP views, whose C++ sources are generated at build time by drogon_ctl. When cross-compiling, CMake looks the tool up in PATH, so the build fails with: [ 77%] Generating HelloView.h, HelloView.cc /bin/sh: 1: drogon_ctl: not found make[3]: *** [examples/CMakeFiles/helloworld.dir/build.make:74: examples/HelloView.h] Error 127 Add host-drogon to the dependencies, as it installs drogon_ctl in $(HOST_DIR)/bin. Fixes: - https://autobuild.buildroot.org/results/b8f38b0645932cb5506515d6d313b64d824c8ce0 Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
772ff404c5
commit
4788039a89
@@ -41,6 +41,11 @@ DROGON_CONF_OPTS += -DBUILD_CTL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DROGON_EXAMPLES),y)
|
||||
# Some examples embed CSP views, whose C++ sources are generated at
|
||||
# build time by drogon_ctl. When cross-compiling, CMake does not
|
||||
# substitute the drogon_ctl target executable in the custom command, so
|
||||
# the tool is looked up in PATH and must be provided by host-drogon.
|
||||
DROGON_DEPENDENCIES += host-drogon
|
||||
DROGON_CONF_OPTS += -DBUILD_EXAMPLES=ON
|
||||
else
|
||||
DROGON_CONF_OPTS += -DBUILD_EXAMPLES=OFF
|
||||
|
||||
Reference in New Issue
Block a user