26 Commits

Author SHA1 Message Date
James Benton
a3eefa84e6 cmake: Find WUT_RPLIMPORTGEN in toolchain. 2020-06-23 10:44:46 +01:00
Ash Logan
dcf341e2b6 wut.toolchain.cmake: switch pkg-config to find_program 2020-04-12 21:04:58 +10:00
Ash Logan
586c65b2d7 wut.toolchain.cmake: Set pkg-config executable to dkp-libs/wiiu-pkg-config 2020-04-09 10:59:22 +10:00
Ash Logan
77ed28d097 wut.toolchain.cmake: Add internal library directories to find path
This is useful for porting or libraries that do things like `find_library(m)`.
2019-12-01 10:24:13 +11:00
James Benton
79698376cd cmake: Add HINTS to toolchain file usage of find_program
Seems to help Windows CMake.
2019-11-20 11:29:37 +00:00
James Benton
9f0ff0f624 cmake: Set find path before using find_program.
Also use find_program for compilers.
2019-11-18 16:20:49 +00:00
Ash Logan
65d7bdd3e5 cmake: Add libwut to standard include dirs
apparently cmake also has a CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES
2019-05-03 18:08:42 +10:00
Ash Logan
5087ca6c88 cmake: Add libwut as a standard library
https://gitlab.kitware.com/cmake/cmake/issues/18222
2019-05-03 17:48:59 +10:00
Ash Logan
d542fdc438 wut.cmake: Use wut.specs and libwut in wut_create_rpx 2019-04-23 20:40:09 +10:00
Dave Murphy
96cf21131d CMake fixups (#104)
* Provide default $WUT_ROOT

* default install path to /opt/devkitpro/wut

* only reinstall tools when required

* Correct search paths

* allow host paths for programs

* find tools via PATH & CMAKE_FIND_ROOT_PATH

* specify root path without bin component
2019-04-04 12:01:17 +11:00
Ash Logan
c15ed46e7a cmake: don't use include_directories (reverts add09e7)
Turns out this actually doesn't work? god only knows how it didn't get 
caught.
2019-03-18 19:03:31 +11:00
James Benton
edd0753aeb Use devkitpro installed wut-tools. 2019-01-27 14:14:52 +00:00
James Benton
58d967ce0c cmake: Try find DEVKITPPC from PATH. 2019-01-10 10:05:14 +00:00
Ash
56f70b2865 toolchain.cmake: Use include_directories instead of -I
This helps some cmake analysers and the like to better get an idea of how wut works, while having the same effect in terms of actual compiling.
2018-12-09 11:37:57 +00:00
rw-r-r-0644
7055d69c4f Strip debug sections before running elf2rpl to prevent crashes 2018-11-06 19:42:45 +00:00
James Benton
39429c0cbc cmake: Cleanup some CMake stuff. 2018-06-15 13:59:55 +01:00
James Benton
e89b248a15 Cleanup some CMake stuff 2018-06-14 11:44:23 +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
61a84c50b6 tools: Add rplexportgen to produce SHT_RPL_EXPORTS. 2018-05-30 18:56:10 +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
29d1190fd1 appveyor attempt #1 2018-05-25 13:58:21 +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