Mercurial > pub > dyncall > dyncall
comparison 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 |
comparison
equal
deleted
inserted
replaced
307:d2c8ea3ef2ed | 308:7c6f19d42b31 |
---|---|
1 #////////////////////////////////////////////////////////////////////////////// | 1 #////////////////////////////////////////////////////////////////////////////// |
2 # | 2 # |
3 # Copyright (c) 2017 Tassilo Philipp <tphilipp@potion-studios.com> | 3 # Copyright (c) 2017 Tassilo Philipp <tphilipp@potion-studios.com> |
4 # | 4 # |
5 # Permission to use, copy, modify, and distribute this software for any | 5 # Permission to use, copy, modify, and distribute this software for any |
6 # purpose with or without fee is hereby granted, provided that the above | 6 # purpose with or without fee is hereby granted, provided that the above |
29 !INCLUDE $(TOP)\buildsys\nmake\prolog.nmake | 29 !INCLUDE $(TOP)\buildsys\nmake\prolog.nmake |
30 | 30 |
31 | 31 |
32 !IF "$(BUILD_OS)" == "windows" | 32 !IF "$(BUILD_OS)" == "windows" |
33 | 33 |
34 TARGETS = dynload_plain.exe | 34 TEST_U8_SO = dynload_plain_ß_test # this non-ASCII character seems to work in Nmakefiles *iff* the utf-8/BOM mark is present |
35 TARGETS = dynload_plain.exe $(TEST_U8_SO) | |
35 OBJS = dynload_plain.obj | 36 OBJS = dynload_plain.obj |
36 | 37 |
37 $(TARGETS): $(OBJS) | 38 dynload_plain.exe: $(OBJS) |
38 echo Linking $@ ... | 39 echo Linking $@ ... |
39 $(LD) /OUT:"$@" $(LDFLAGS) $(OBJS) $(TOP)\dynload\libdynload_s.lib $(TOP)\dyncall\libdyncall_s.lib | 40 $(LD) /OUT:"$@" $(LDFLAGS) $(OBJS) $(TOP)\dynload\libdynload_s.lib $(TOP)\dyncall\libdyncall_s.lib |
41 | |
42 $(TEST_U8_SO): | |
43 echo Building helper lib with UTF-8 path $(TEST_U8_SO) ... | |
44 echo.int dynload_plain_testfunc^(^) { return 5; } > x.c | |
45 type x.c | |
46 $(CC) x.c /link /DLL /OUT:$(TEST_U8_SO) | |
47 del x.c x.obj | |
40 | 48 |
41 | 49 |
42 !ELSE IF "$(BUILD_OS)" == "nds" | 50 !ELSE IF "$(BUILD_OS)" == "nds" |
43 | 51 |
44 TARGETS = dynload_plain.nds | 52 TARGETS = dynload_plain.nds |