mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01:00
Add compile headers test for c99 and c11.
This commit is contained in:
parent
c655780c34
commit
3423f6d1ae
@ -3,5 +3,7 @@ set(CMAKE_TOOLCHAIN_FILE $ENV{WUT_ROOT}/share/wut.toolchain.cmake)
|
||||
project(tests)
|
||||
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
|
||||
|
||||
add_subdirectory(test_compile_headers_as_c)
|
||||
include_directories("test_compile_headers_common")
|
||||
add_subdirectory(test_compile_headers_as_c11)
|
||||
add_subdirectory(test_compile_headers_as_c99)
|
||||
add_subdirectory(test_compile_headers_as_cpp)
|
||||
|
@ -1,8 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
project(test_compile_headers_as_c C)
|
||||
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
|
||||
|
||||
add_executable(test_compile_headers_as_c
|
||||
main.c)
|
||||
|
||||
wut_create_rpx(test_compile_headers_as_c.rpx test_compile_headers_as_c)
|
10
tests/test_compile_headers_as_c11/CMakeLists.txt
Normal file
10
tests/test_compile_headers_as_c11/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
project(test_compile_headers_as_c11 C)
|
||||
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
|
||||
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
|
||||
add_executable(test_compile_headers_as_c11
|
||||
main.c)
|
||||
|
||||
wut_create_rpx(test_compile_headers_as_c11.rpx test_compile_headers_as_c11)
|
6
tests/test_compile_headers_as_c11/main.c
Normal file
6
tests/test_compile_headers_as_c11/main.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include "test_compile_headers_list.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
return 0;
|
||||
}
|
10
tests/test_compile_headers_as_c99/CMakeLists.txt
Normal file
10
tests/test_compile_headers_as_c99/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
project(test_compile_headers_as_c99 C)
|
||||
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
|
||||
add_executable(test_compile_headers_as_c99
|
||||
main.c)
|
||||
|
||||
wut_create_rpx(test_compile_headers_as_c99.rpx test_compile_headers_as_c99)
|
6
tests/test_compile_headers_as_c99/main.c
Normal file
6
tests/test_compile_headers_as_c99/main.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include "test_compile_headers_list.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
return 0;
|
||||
}
|
@ -1,94 +1,4 @@
|
||||
#include <coreinit/alarm.h>
|
||||
#include <coreinit/atomic.h>
|
||||
#include <coreinit/atomic64.h>
|
||||
#include <coreinit/cache.h>
|
||||
#include <coreinit/condition.h>
|
||||
#include <coreinit/context.h>
|
||||
#include <coreinit/core.h>
|
||||
#include <coreinit/coroutine.h>
|
||||
#include <coreinit/debug.h>
|
||||
#include <coreinit/dynload.h>
|
||||
#include <coreinit/energysaver.h>
|
||||
#include <coreinit/event.h>
|
||||
#include <coreinit/exception.h>
|
||||
#include <coreinit/exit.h>
|
||||
#include <coreinit/fastcondition.h>
|
||||
#include <coreinit/fastmutex.h>
|
||||
#include <coreinit/fiber.h>
|
||||
#include <coreinit/filesystem.h>
|
||||
#include <coreinit/foreground.h>
|
||||
#include <coreinit/internal.h>
|
||||
#include <coreinit/ios.h>
|
||||
#include <coreinit/mcp.h>
|
||||
#include <coreinit/memblockheap.h>
|
||||
#include <coreinit/memdefaultheap.h>
|
||||
#include <coreinit/memexpheap.h>
|
||||
#include <coreinit/memfrmheap.h>
|
||||
#include <coreinit/memheap.h>
|
||||
#include <coreinit/memlist.h>
|
||||
#include <coreinit/memory.h>
|
||||
#include <coreinit/memorymap.h>
|
||||
#include <coreinit/memunitheap.h>
|
||||
#include <coreinit/messagequeue.h>
|
||||
#include <coreinit/mutex.h>
|
||||
#include <coreinit/rendezvous.h>
|
||||
#include <coreinit/screen.h>
|
||||
#include <coreinit/semaphore.h>
|
||||
#include <coreinit/spinlock.h>
|
||||
#include <coreinit/systeminfo.h>
|
||||
#include <coreinit/taskqueue.h>
|
||||
#include <coreinit/thread.h>
|
||||
#include <coreinit/threadqueue.h>
|
||||
#include <coreinit/time.h>
|
||||
#include <coreinit/title.h>
|
||||
#include <gx2/clear.h>
|
||||
#include <gx2/context.h>
|
||||
#include <gx2/debug.h>
|
||||
#include <gx2/display.h>
|
||||
#include <gx2/displaylist.h>
|
||||
#include <gx2/draw.h>
|
||||
#include <gx2/enum.h>
|
||||
#include <gx2/event.h>
|
||||
#include <gx2/mem.h>
|
||||
#include <gx2/registers.h>
|
||||
#include <gx2/sampler.h>
|
||||
#include <gx2/shaders.h>
|
||||
#include <gx2/state.h>
|
||||
#include <gx2/surface.h>
|
||||
#include <gx2/swap.h>
|
||||
#include <gx2/temp.h>
|
||||
#include <gx2/tessellation.h>
|
||||
#include <gx2/texture.h>
|
||||
#include <gx2/utils.h>
|
||||
#include <gx2r/buffer.h>
|
||||
#include <gx2r/displaylist.h>
|
||||
#include <gx2r/draw.h>
|
||||
#include <gx2r/mem.h>
|
||||
#include <gx2r/resource.h>
|
||||
#include <gx2r/surface.h>
|
||||
#include <nn/ac/ac_c.h>
|
||||
#include <nn/ac/ac_cpp.h>
|
||||
#include <nn/ac.h>
|
||||
#include <nn/result.h>
|
||||
#include <nn/swkbd/swkbd_cpp.h>
|
||||
#include <nn/swkbd.h>
|
||||
#include <nsyshid/hid.h>
|
||||
#include <nsysnet/socket.h>
|
||||
#include <padscore/kpad.h>
|
||||
#include <padscore/wpad.h>
|
||||
#include <proc_ui/procui.h>
|
||||
#include <sndcore2/core.h>
|
||||
#include <sndcore2/device.h>
|
||||
#include <sndcore2/drcvs.h>
|
||||
#include <sndcore2/result.h>
|
||||
#include <sndcore2/voice.h>
|
||||
#include <swkbd/rpl_interface.h>
|
||||
#include <sysapp/launch.h>
|
||||
#include <sysapp/switch.h>
|
||||
#include <vpad/input.h>
|
||||
#include <wut.h>
|
||||
#include <wut_structsize.h>
|
||||
#include <wut_types.h>
|
||||
#include "test_compile_headers_list.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
@ -89,8 +89,3 @@
|
||||
#include <wut.h>
|
||||
#include <wut_structsize.h>
|
||||
#include <wut_types.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user