James Benton
c5e51a5ffc
cmake: Remove -std=c++17 from wut_enable_stdcpp
2018-06-18 21:13:06 +01:00
James Benton
47c3d4d7cd
cmake: Use target_link_libraries even for --whole-archive libraries.
...
So cmake picks up the dependency naturally, I didn't know this was possible
before...
2018-06-15 14:56:38 +01:00
James Benton
39429c0cbc
cmake: Cleanup some CMake stuff.
2018-06-15 13:59:55 +01:00
James Benton
78440eafe5
share/wut.cmake: Update to be a bit more idiot proof.
...
Only allows calling each wut_enable_* once, also wut_enable_stdcpp now
automatically calls wut_enable_newlib.
2018-06-14 12:26:44 +01:00
James Benton
e89b248a15
Cleanup some CMake stuff
2018-06-14 11:44:23 +01:00
James Benton
d315b4bb34
Add new wutmalloc library.
...
This overwrites malloc and redirects it to alloc from default heap.
Also sets __wut_heap_max_size to limit sbrk heap now that malloc no longer
uses it.
2018-06-14 09:33:16 +01:00
James Benton
060d9df5cb
Update linker script to include all fimport & dimport sections.
2018-06-13 12:10:27 +01:00
James Benton
0556f4627b
cmake: Explicitly set CMAKE_CROSSCOMPILING.
...
Not actually required because it is implicitly set when you modify
CMAKE_SYSTEM_NAME, but it's nice to be explicit.
2018-06-04 18:09:49 +01:00
James Benton
7019171841
cmake: Set BUILD_SHARED_LIBS OFF.
...
devkitPPC does not support building shared libraries.
2018-06-04 18:09:10 +01:00
James Benton
01606fba86
wut: Define __WIIU__ and __WUT__ for builds.
2018-06-02 10:37:02 +01:00
James Benton
62cb2757b9
wut_add_exports: Use target name when generating exports.
...
This helps keep the filename unique.
2018-05-31 10:30:58 +01:00
James Benton
00b6fa3940
ld: Add (NOLOAD) to .bss section.
2018-05-30 22:40:20 +01:00
James Benton
f281be50ab
Add support for generating RPL files.
...
RPL files are shared libraries (like a .dll file), as opposed to the RPX
files which are executables (like a .exe file).
Use rpl_main as defined in dynload.h like one would DllMain on Windows.
2018-05-30 21:56:18 +01:00
James Benton
61a84c50b6
tools: Add rplexportgen to produce SHT_RPL_EXPORTS.
2018-05-30 18:56:10 +01:00
James Benton
6d8dabb15b
wut.cmake: Update to support creating RPL files, and exports.
2018-05-30 18:56:10 +01:00
James Benton
766e832363
coreinit: Add default heap data exports.
2018-05-29 10:52:40 +01:00
James Benton
35d05358c4
Fix wut_create_rpx linking to newlib instead of crt.
2018-05-28 11:39:54 +01:00
James Benton
b4a6eb2f78
Split out crt from wutnewlib to wutcrt.
...
Can now optionally link newlib, stdc++, devoptab.
2018-05-27 12:12:49 +01:00
James Benton
ac8a42fa7c
Change to using new gthreads implementation.
...
Assuming that --enable-threads=dkp gets merged into devkitPPC r31... :)
2018-05-26 18:25:36 +01:00
James Benton
a9829a3226
Add support for C++ std::thread.
...
Overwrites bits/gthr-default.h to implement gthreads.
2018-05-25 17:22:10 +01:00
James Benton
29d1190fd1
appveyor attempt #1
2018-05-25 13:58:21 +01:00
James Benton
5b8b60b390
Add newlib syscalls.
2018-05-25 11:31:44 +01:00
James Benton
ba2df5be91
wut.ld: Add missing fimport sections.
2018-05-23 15:36:35 +01:00
James Benton
9bcf22e40f
Add tools readrpl, udplogserver.
2018-05-23 12:35:24 +01:00
James Benton
fc10605172
Rewrite!
2018-05-23 09:47:28 +01:00