Mercurial > pub > dyncall > dyncall
diff test/dynload_plain/Nmakefile @ 308:7c6f19d42b31
dynload UTF-8 support for library paths:
- added missing support to windows
- added test code for all platforms to dynload_plain
- doc update
author | Tassilo Philipp |
---|---|
date | Thu, 24 Oct 2019 23:19:20 +0200 |
parents | 0592eb360af2 |
children | 655cafde0859 |
line wrap: on
line diff
--- a/test/dynload_plain/Nmakefile Mon Apr 29 11:51:30 2019 +0200 +++ b/test/dynload_plain/Nmakefile Thu Oct 24 23:19:20 2019 +0200 @@ -1,4 +1,4 @@ -#////////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// # # Copyright (c) 2017 Tassilo Philipp <tphilipp@potion-studios.com> # @@ -31,13 +31,21 @@ !IF "$(BUILD_OS)" == "windows" -TARGETS = dynload_plain.exe +TEST_U8_SO = dynload_plain_ß_test # this non-ASCII character seems to work in Nmakefiles *iff* the utf-8/BOM mark is present +TARGETS = dynload_plain.exe $(TEST_U8_SO) OBJS = dynload_plain.obj -$(TARGETS): $(OBJS) +dynload_plain.exe: $(OBJS) echo Linking $@ ... $(LD) /OUT:"$@" $(LDFLAGS) $(OBJS) $(TOP)\dynload\libdynload_s.lib $(TOP)\dyncall\libdyncall_s.lib +$(TEST_U8_SO): + echo Building helper lib with UTF-8 path $(TEST_U8_SO) ... + echo.int dynload_plain_testfunc^(^) { return 5; } > x.c + type x.c + $(CC) x.c /link /DLL /OUT:$(TEST_U8_SO) + del x.c x.obj + !ELSE IF "$(BUILD_OS)" == "nds"