2018-05-23 00:08:13 +02:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2018-06-15 14:59:55 +02:00
|
|
|
|
|
|
|
# Load up the in-tree toolchain
|
|
|
|
set(WUT_ROOT "{CMAKE_CURRENT_SOURCE_DIR}/.." CACHE STRING "")
|
|
|
|
set(WUT_RPLIMPORTGEN "" CACHE STRING "")
|
|
|
|
set(ENV{WUT_ROOT} ${WUT_ROOT})
|
|
|
|
set(CMAKE_TOOLCHAIN_FILE $ENV{WUT_ROOT}/share/wut.toolchain.cmake)
|
|
|
|
|
2018-05-23 00:08:13 +02:00
|
|
|
project(cafe C CXX)
|
|
|
|
enable_language(ASM)
|
|
|
|
|
|
|
|
macro(add_cafe_library target)
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${target}.s
|
2018-06-11 16:46:36 +02:00
|
|
|
COMMAND ${WUT_RPLIMPORTGEN} ${CMAKE_CURRENT_SOURCE_DIR}/${target}.def ${target}.s
|
|
|
|
DEPENDS ${target}.def)
|
2018-05-23 00:08:13 +02:00
|
|
|
|
|
|
|
add_library(${target} STATIC ${target}.s)
|
|
|
|
install(TARGETS ${target} ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
|
|
|
endmacro()
|
|
|
|
|
2018-06-11 16:46:36 +02:00
|
|
|
add_cafe_library(avm)
|
|
|
|
add_cafe_library(camera)
|
2018-05-23 00:08:13 +02:00
|
|
|
add_cafe_library(coreinit)
|
2018-06-11 16:46:36 +02:00
|
|
|
add_cafe_library(dc)
|
|
|
|
add_cafe_library(dmae)
|
|
|
|
add_cafe_library(drmapp)
|
|
|
|
add_cafe_library(erreula)
|
2018-05-23 00:08:13 +02:00
|
|
|
add_cafe_library(gx2)
|
2018-06-11 16:46:36 +02:00
|
|
|
add_cafe_library(h264)
|
|
|
|
add_cafe_library(lzma920)
|
|
|
|
add_cafe_library(mic)
|
|
|
|
add_cafe_library(nfc)
|
|
|
|
add_cafe_library(nio_prof)
|
|
|
|
add_cafe_library(nlibcurl)
|
|
|
|
add_cafe_library(nlibnss)
|
|
|
|
add_cafe_library(nlibnss2)
|
2018-05-23 00:08:13 +02:00
|
|
|
add_cafe_library(nn_ac)
|
2018-06-11 16:46:36 +02:00
|
|
|
add_cafe_library(nn_acp)
|
|
|
|
add_cafe_library(nn_act)
|
|
|
|
add_cafe_library(nn_aoc)
|
|
|
|
add_cafe_library(nn_boss)
|
|
|
|
add_cafe_library(nn_ccr)
|
|
|
|
add_cafe_library(nn_cmpt)
|
|
|
|
add_cafe_library(nn_dlp)
|
|
|
|
add_cafe_library(nn_ec)
|
|
|
|
add_cafe_library(nn_fp)
|
|
|
|
add_cafe_library(nn_hai)
|
|
|
|
add_cafe_library(nn_hpad)
|
|
|
|
add_cafe_library(nn_idbe)
|
|
|
|
add_cafe_library(nn_ndm)
|
|
|
|
add_cafe_library(nn_nets2)
|
|
|
|
add_cafe_library(nn_nfp)
|
|
|
|
add_cafe_library(nn_nim)
|
|
|
|
add_cafe_library(nn_olv)
|
|
|
|
add_cafe_library(nn_pdm)
|
|
|
|
add_cafe_library(nn_save)
|
|
|
|
add_cafe_library(nn_sl)
|
|
|
|
add_cafe_library(nn_spm)
|
|
|
|
add_cafe_library(nn_temp)
|
|
|
|
add_cafe_library(nn_uds)
|
|
|
|
add_cafe_library(nn_vctl)
|
|
|
|
add_cafe_library(nsysccr)
|
|
|
|
add_cafe_library(nsyshid)
|
|
|
|
add_cafe_library(nsyskbd)
|
2018-05-23 00:08:13 +02:00
|
|
|
add_cafe_library(nsysnet)
|
2018-06-11 16:46:36 +02:00
|
|
|
add_cafe_library(nsysuhs)
|
|
|
|
add_cafe_library(nsysuvd)
|
|
|
|
add_cafe_library(ntag)
|
|
|
|
add_cafe_library(padscore)
|
2018-05-23 00:08:13 +02:00
|
|
|
add_cafe_library(proc_ui)
|
2018-06-11 16:46:36 +02:00
|
|
|
add_cafe_library(snd_core)
|
|
|
|
add_cafe_library(snd_user)
|
2018-05-23 00:08:13 +02:00
|
|
|
add_cafe_library(sndcore2)
|
2018-06-11 16:46:36 +02:00
|
|
|
add_cafe_library(snduser2)
|
|
|
|
add_cafe_library(swkbd)
|
2018-05-23 00:08:13 +02:00
|
|
|
add_cafe_library(sysapp)
|
2018-06-11 16:46:36 +02:00
|
|
|
add_cafe_library(tcl)
|
|
|
|
add_cafe_library(tve)
|
|
|
|
add_cafe_library(uac)
|
|
|
|
add_cafe_library(uac_rpl)
|
|
|
|
add_cafe_library(usb_mic)
|
|
|
|
add_cafe_library(uvc)
|
|
|
|
add_cafe_library(uvd)
|
2018-05-23 00:08:13 +02:00
|
|
|
add_cafe_library(vpad)
|
2018-06-11 16:46:36 +02:00
|
|
|
add_cafe_library(vpadbase)
|
|
|
|
add_cafe_library(zlib125)
|