all repos — mgba @ e991b3092675b29c0f9f0ac77278e4a9e22faca2

mGBA Game Boy Advance Emulator

src/platform/wii/CMakeToolchain.txt (view raw)

 1include(${CMAKE_CURRENT_LIST_DIR}/../cmake/devkitPro.cmake)
 2
 3set(cross_prefix powerpc-eabi-)
 4set(arch_flags "-mrvl -mcpu=750 -meabi -mhard-float -g")
 5set(inc_flags "-I${DEVKITPRO}/libogc/include ${arch_flags}")
 6set(link_flags "-L${DEVKITPRO}/libogc/lib/wii ${arch_flags}")
 7
 8set(CMAKE_SYSTEM_PROCESSOR powerpc CACHE INTERNAL "processor")
 9set(CMAKE_LIBRARY_ARCHITECTURE powerpc-none-eabi CACHE INTERNAL "abi")
10
11set(WII ON)
12add_definitions(-DGEKKO)
13
14create_devkit(PPC)
15
16set(CMAKE_FIND_ROOT_PATH ${DEVKITPPC}/powerpc-eabi ${DEVKITPRO}/portlibs/ppc)