Skip to content

Conversation

Zer0xFF
Copy link

@Zer0xFF Zer0xFF commented Oct 30, 2017

a quick cmake toolchain file i through together to give users a bit of freedom in controlling their project structure.

cmake can also be read by few IDE, such as Qt, Xcode and Visual Studio as such you'd have access to those IDE directly.
to use

cd project; mkdir build; cd build;
cmake -DCMAKE_TOOLCHAIN_FILE=$PS4SDK/cmake/PS4.toolchain.cmake ..
make

do note though, my sdk is laid out slightly differently in that I have a ./usr directory with soft link to lib and include and have clang built and installed to ./usr/bin

so i haven't tested this with default clang

edit:
I've made several changes that should allow you to build external cmake projects such as freetype2 library as a target of your project.

Edit2:
I'm currently maintaining a version of the toolchain on gist https://gist.github.com/Thunder07/fc4688245e4ea9407f42c110ee96070c and will update this PR periodically, but I'm interested if you think this should be included alongside the SDK.

@Zer0xFF Zer0xFF force-pushed the cmake branch 2 times, most recently from 9214267 to 419a737 Compare October 30, 2017 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant