widl: generation of widl.cmake with CMAKE_WIDL indicating the path of the widl executable

This commit is contained in:
Christian Frisson 2015-09-29 14:35:55 +02:00
parent 6a658bf6ee
commit 5eb94126a1
1 changed files with 4 additions and 0 deletions

View File

@ -24,4 +24,8 @@ define $(PKG)_BUILD
--prefix='$(PREFIX)' \
--target='$(TARGET)'
$(MAKE) -C '$(1)/mingw-w64-tools/widl' -j '$(JOBS)' install
# create cmake file
echo 'set(CMAKE_WIDL $(PREFIX)/bin/$(TARGET)-$(PKG) CACHE PATH "widl executable")' \
> '$(CMAKE_TOOLCHAIN_DIR)/$(PKG).cmake'
endef