pcsx2/cmake
Miguel A. Colón Vélez b03ca5fcf4 Include some rather simple CMAKE_TOOLCHAIN_FILE.
- Update the build.sh and fix some typos.
  + Don't add the OSX ones because I have not tested them and it won't
    even build anyway due to the libaio dependency. Needs to use POSIX AIO
    or something else.
- They are rather simple and all the magic happens in two lines.
  + First line tells cmake to get ready to compile FOR linux or darwin.
    It also sets CMAKE_CROSSCOMPILING to true which is the only way to
    let cmake known that we are using stuff not from the host.
  + CMAKE_C_COMPILER/CMAKE_CXX_COMPILER are basically used to detect
    the architecture of the target. Since I used generic cc/c++ the
    hardcoded -m32 is needed to ensure we get TARGET=i386. Also
    since I hardcode -m32 and use c++/cc it's to be noted that
    we can only do i386->i386 (trivial), amd64 -> i386, and x32->i386.
    .
    Using something like i586-linux-gnu-{gcc,g++} would also work and
    enable arm -> i386, etc but it's infeasible and impractical to do all
    the combinations. File is simple enough that a distro or user can
    create their own and cross compiling is rather tedious compared
    to using a chroot to compile it.
- I tested it in Debian with "dpkg-buildpackage -ai386" but installing the
  build dependencies was rather tedious.
2015-01-03 14:51:04 +01:00
..
BuildParameters.cmake Begin cleaning up the cross build code. 2015-01-03 14:51:04 +01:00
CheckLib.cmake cmake: add a new GTK3.0 option 2014-12-10 22:07:48 +01:00
FindCg.cmake Fix Cg find for Gentoo amd64 2014-05-18 22:51:09 +04:00
FindGlew.cmake cmake: sed /PROJECT_SOURCE_DIR/CMAKE_SOURCE_DIR/ 2014-03-30 16:36:02 +02:00
FindLibc.cmake cmake: fix some linking issue with gold linker (AFAIK only fedora use it for the moment) 2011-09-06 19:07:55 +00:00
Pcsx2Utils.cmake Use cmake variable "BIN_DIR" for binaries installation 2014-09-27 22:26:42 +04:00
SearchForStuff.cmake Begin cleaning up the cross build code. 2015-01-03 14:51:04 +01:00
SelectPcsx2Plugins.cmake cmake: regression to select SDL/GTK + 64bits fix 2014-12-22 19:31:32 +01:00
TargetArch.cmake Disable the use of multiple architectures in darwin. 2015-01-03 14:51:04 +01:00
Translation.cmake build.sh: allow to replace build directory by a symlink 2014-09-02 21:21:46 +02:00
darwin-compiler-i386-clang.cmake Include some rather simple CMAKE_TOOLCHAIN_FILE. 2015-01-03 14:51:04 +01:00
darwin-compiler-i386-generic.cmake Include some rather simple CMAKE_TOOLCHAIN_FILE. 2015-01-03 14:51:04 +01:00
linux-compiler-i386-multilib.cmake Include some rather simple CMAKE_TOOLCHAIN_FILE. 2015-01-03 14:51:04 +01:00