summaryrefslogtreecommitdiffstats
path: root/src/widl.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-16 00:40:05 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-16 01:07:22 (GMT)
commit626b5ac24c725204c5d2a795e42a8e1408e231b5 (patch)
tree2e647100c62630997e3d4b71a304c38a15f118de /src/widl.mk
parentb16d891ed3ea987589e1af745be69b178db3122e (diff)
downloadmxe-626b5ac24c725204c5d2a795e42a8e1408e231b5.zip
mxe-626b5ac24c725204c5d2a795e42a8e1408e231b5.tar.gz
mxe-626b5ac24c725204c5d2a795e42a8e1408e231b5.tar.bz2
Add package widl
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/widl.mk')
-rw-r--r--src/widl.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/widl.mk b/src/widl.mk
new file mode 100644
index 0000000..602cf29
--- /dev/null
+++ b/src/widl.mk
@@ -0,0 +1,27 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+# WIDL is called "Wine IDL Compiler"; but we use mingw-w64's copy of it to
+# avoid downloading Wine's entire tree.
+
+PKG := widl
+$(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
+endef