MantisBT - LibWapcaplet
View Issue Details
0002624LibWapcaplet[All Projects] Generalpublic2018-09-29 21:302018-10-23 19:41
ReporterJ. Peter Mugaas 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusacknowledgedResolutionopen 
Platformmingw-w64OSWindowsOS Version10
Fixed in CI build #
Reported in CI build #
Summary0002624: Contribution - CMake-build-system for libwapcaplet
DescriptionHere's a build system that I made to build and test libwapcaplet. While the tests fail, it does make a good start. The idea is to help people this on Windows including both static and shared libraries. This might also work on Cygwin and MSYS2.

Please feel to include this in your projects.

Here's a build log so far:

[ 9%] Building C object CMakeFiles/libwapcatlet_shared.dir/src/libwapcaplet.c.obj
[ 18%] Building RC object CMakeFiles/libwapcatlet_shared.dir/libwapcaplet.rc.obj
D:/msys64/home/jpmugaas/exp/mingw-w64-libwapcaplet/src/libwapcaplet-0.4.1/src/libwapcaplet.c: In function 'lwc_intern_string':
D:/msys64/home/jpmugaas/exp/mingw-w64-libwapcaplet/src/libwapcaplet-0.4.1/src/libwapcaplet.c:148:16: warning: cast between incompatible function types from 'void * (*)(void * restrict, const void * restrict, size_t)' {aka 'void * (*)(void * restrict, const void * restrict, long long unsigned int)'} to 'void (*)(char *, const char *, size_t)' {aka 'void (*)(char *, const char *, long long unsigned int)'} [-Wcast-function-type]
       strncmp, (lwc_memcpy)memcpy);
                ^
[ 27%] Building C object CMakeFiles/libwapcatlet_static.dir/src/libwapcaplet.c.obj
D:/msys64/home/jpmugaas/exp/mingw-w64-libwapcaplet/src/libwapcaplet-0.4.1/src/libwapcaplet.c: In function 'lwc_intern_string':
D:/msys64/home/jpmugaas/exp/mingw-w64-libwapcaplet/src/libwapcaplet-0.4.1/src/libwapcaplet.c:148:16: warning: cast between incompatible function types from 'void * (*)(void * restrict, const void * restrict, size_t)' {aka 'void * (*)(void * restrict, const void * restrict, long long unsigned int)'} to 'void (*)(char *, const char *, size_t)' {aka 'void (*)(char *, const char *, long long unsigned int)'} [-Wcast-function-type]
       strncmp, (lwc_memcpy)memcpy);
TagsNo tags attached.
Attached Filestxt CMakeLists.txt (9,276) 2018-09-29 21:30
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=566&type=bug

There are no notes attached to this issue.

Issue History
2018-09-29 21:30J. Peter MugaasNew Issue
2018-09-29 21:30J. Peter MugaasFile Added: CMakeLists.txt
2018-10-23 19:41Vincent SandersStatusnew => acknowledged