nuttx/libs/libnx/nxmu
chao an 6ee9ec7656 build: add initial cmake build system
1. Update all CMakeLists.txt to adapt to new layout
2. Fix cmake build break
3. Update all new file license
4. Fully compatible with current compilation environment(use configure.sh or cmake as you choose)

------------------

How to test

From within nuttx/. Configure:

cmake -B build -DBOARD_CONFIG=sim/nsh -GNinja
cmake -B build -DBOARD_CONFIG=sim:nsh -GNinja
cmake -B build -DBOARD_CONFIG=sabre-6quad/smp -GNinja
cmake -B build -DBOARD_CONFIG=lm3s6965-ek/qemu-flat -GNinja

(or full path in custom board) :
cmake -B build -DBOARD_CONFIG=$PWD/boards/sim/sim/sim/configs/nsh -GNinja

This uses ninja generator (install with sudo apt install ninja-build). To build:

$ cmake --build build

menuconfig:

$ cmake --build build -t menuconfig

--------------------------

2. cmake/build: reformat the cmake style by cmake-format

https://github.com/cheshirekow/cmake_format

$ pip install cmakelang

$ for i in `find -name CMakeLists.txt`;do cmake-format $i -o $i;done
$ for i in `find -name *\.cmake`;do cmake-format $i -o $i;done

Co-authored-by: Matias N <matias@protobits.dev>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:50:48 +08:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig
Make.defs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
nx_bitmap.c libnx: Remove the unnecessary invocation of _SEM_SETPROTOCOL 2022-10-29 21:12:40 +02:00
nx_block.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_closewindow.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_connect.c Replace all sprintf with snprintf 2023-05-08 09:57:01 +02:00
nx_constructwindow.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
nx_cursor.c Remove #warning if the code already return the error code or value 2023-05-18 15:44:28 +03:00
nx_disconnect.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00
nx_eventhandler.c libs/libnx: handle the bad message correctly 2022-02-17 13:40:11 +01:00
nx_eventnotify.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_fill.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00
nx_filltrapezoid.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_getposition.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_getrectangle.c libnx: Remove the unnecessary invocation of _SEM_SETPROTOCOL 2022-10-29 21:12:40 +02:00
nx_kbdchin.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00
nx_kbdin.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_lower.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00
nx_modal.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00
nx_mousein.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_move.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00
nx_openwindow.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_raise.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00
nx_redrawreq.c Ensure the kernel component don't call userspace API 2021-03-01 09:23:09 +09:00
nx_releasebkgd.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_requestbkgd.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_setbgcolor.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_setpixel.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_setposition.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_setsize.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00
nx_setvisibility.c libs: nxstyle fixes 2021-02-25 01:44:30 -08:00
nx_synch.c Fix various typos 2022-07-08 02:15:54 +08:00
nxmu_sendserver.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00
nxmu_sendwindow.c libnx: Author Gregory Nutt: update licenses to Apache 2021-02-25 01:44:30 -08:00