diff options
author | Simon Tatham <anakin@pobox.com> | 2017-02-20 07:17:56 +0000 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2017-02-20 07:17:56 +0000 |
commit | 6824aa549cbfc535debee2effe99b5a30849fdcd (patch) | |
tree | afc84cf8fc1cd86420bd68af41871a3da39c0def | |
parent | fbf19f95a0e843384af423449a18a96da1eaec95 (diff) | |
download | wix-on-linux-6824aa549cbfc535debee2effe99b5a30849fdcd.tar.gz wix-on-linux-6824aa549cbfc535debee2effe99b5a30849fdcd.tar.bz2 wix-on-linux-6824aa549cbfc535debee2effe99b5a30849fdcd.zip |
Start of a fake msi.dll.
This seems to be the next function WiX expects from its native-code
DLLs. So far it's just a stub.
-rw-r--r-- | Makefile.wixfakelibs | 4 | ||||
-rw-r--r-- | fake-msi.c | 15 |
2 files changed, 18 insertions, 1 deletions
diff --git a/Makefile.wixfakelibs b/Makefile.wixfakelibs index af8b0f5..7a3b8ef 100644 --- a/Makefile.wixfakelibs +++ b/Makefile.wixfakelibs | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | .SUFFIXES: .c .lo .la | 3 | .SUFFIXES: .c .lo .la |
4 | 4 | ||
5 | all: libwinterop.so.la | 5 | all: libwinterop.so.la libmsi.so.la |
6 | 6 | ||
7 | %.la: | 7 | %.la: |
8 | libtool --mode=link gcc -o $@ $^ -rpath /usr/local/lib | 8 | libtool --mode=link gcc -o $@ $^ -rpath /usr/local/lib |
@@ -12,6 +12,8 @@ all: libwinterop.so.la | |||
12 | 12 | ||
13 | libwinterop.so.la: fake-winterop.lo | 13 | libwinterop.so.la: fake-winterop.lo |
14 | 14 | ||
15 | libmsi.so.la: fake-msi.lo | ||
16 | |||
15 | clean: | 17 | clean: |
16 | rm -rf .libs | 18 | rm -rf .libs |
17 | rm -f *.o *.lo *.la | 19 | rm -f *.o *.lo *.la |
diff --git a/fake-msi.c b/fake-msi.c new file mode 100644 index 0000000..1302e8c --- /dev/null +++ b/fake-msi.c | |||
@@ -0,0 +1,15 @@ | |||
1 | #include <stdio.h> | ||
2 | #include <stdlib.h> | ||
3 | #include <stdint.h> | ||
4 | #include <stdbool.h> | ||
5 | #include <stdarg.h> | ||
6 | #include <string.h> | ||
7 | #include <uchar.h> | ||
8 | #include <err.h> | ||
9 | |||
10 | uint32_t MsiGetFileVersionW(const char16_t *filename, | ||
11 | char16_t *version, uint32_t *version_size, | ||
12 | char16_t *language, uint32_t *language_size) | ||
13 | { | ||
14 | errx(1, "NYI: MsiGetFileVersion"); | ||
15 | } | ||