2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2014-08-16 01:40:05 +01:00
|
|
|
|
|
|
|
# WIDL is called "Wine IDL Compiler"; but we use mingw-w64's copy of it to
|
|
|
|
# avoid downloading Wine's entire tree.
|
|
|
|
|
|
|
|
PKG := widl
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.winehq.org/docs/widl/
|
|
|
|
$(PKG)_DESCR := Wine IDL Compiler
|
2014-08-16 01:40:05 +01:00
|
|
|
$(PKG)_IGNORE = $(mingw-w64_IGNORE)
|
|
|
|
$(PKG)_VERSION = $(mingw-w64_VERSION)
|
|
|
|
$(PKG)_CHECKSUM = $(mingw-w64_CHECKSUM)
|
|
|
|
$(PKG)_SUBDIR = $(mingw-w64_SUBDIR)
|
|
|
|
$(PKG)_FILE = $(mingw-w64_FILE)
|
|
|
|
$(PKG)_URL = $(mingw-w64_URL)
|
|
|
|
$(PKG)_DEPS :=
|
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
|
|
|
echo $(mingw-w64_VERSION)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
cd '$(1)/mingw-w64-tools/widl' && ./configure \
|
|
|
|
--host='$(BUILD)' \
|
|
|
|
--build='$(BUILD)' \
|
|
|
|
--prefix='$(PREFIX)' \
|
|
|
|
--target='$(TARGET)'
|
|
|
|
$(MAKE) -C '$(1)/mingw-w64-tools/widl' -j '$(JOBS)' install
|
2015-11-21 02:55:08 +00:00
|
|
|
|
2015-09-29 13:35:55 +01:00
|
|
|
# create cmake file
|
2017-11-27 20:36:19 +00:00
|
|
|
mkdir -p '$(CMAKE_TOOLCHAIN_DIR)'
|
2015-09-29 13:35:55 +01:00
|
|
|
echo 'set(CMAKE_WIDL $(PREFIX)/bin/$(TARGET)-$(PKG) CACHE PATH "widl executable")' \
|
|
|
|
> '$(CMAKE_TOOLCHAIN_DIR)/$(PKG).cmake'
|
2014-08-16 01:40:05 +01:00
|
|
|
endef
|