nuttx/libs/libc/net
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
lib_accept.c net: Move accept to libc after https://github.com/apache/nuttx/pull/8083 2023-01-13 11:23:42 +02:00
lib_addrconfig.c libs: fix nxstyle errors 2021-04-02 11:12:25 -05:00
lib_addroute.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_base64.c libc: Add b64_ntop and b64_pton implementation 2020-12-28 13:53:20 -03:00
lib_delroute.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_etheraton.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
lib_etherntoa.c Net thread-safe ntoa functions 2022-08-02 21:04:19 +08:00
lib_freeifaddrs.c net: Implement getifaddrs and freeifaddrs 2021-12-21 11:01:33 -03:00
lib_freenameindex.c net: Add if_nameindex and if_freenameindex API 2021-06-26 22:37:12 +01:00
lib_getifaddrs.c Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
lib_htonl.c Use builtins for byteswapping 2022-06-29 11:32:59 +08:00
lib_htons.c Use builtins for byteswapping 2022-06-29 11:32:59 +08:00
lib_indextoname.c Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
lib_inetaddr.c inet_addr: return INADDR_NONE(-1) when input string is invalid 2023-06-13 13:31:37 +08:00
lib_inetaton.c libs: libc: update licenses to Apache 2021-05-27 08:07:25 +09:00
lib_inetnetwork.c libc/net: add inet_network function 2023-01-06 22:20:19 +08:00
lib_inetntoa.c Net thread-safe ntoa functions 2022-08-02 21:04:19 +08:00
lib_inetntop.c net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code 2022-01-18 10:59:47 +01:00
lib_inetpton.c libs: fix visual studio Compiler Error C2036 2023-02-09 20:11:55 +08:00
lib_loopback.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_nameindex.c net: Add if_nameindex and if_freenameindex API 2021-06-26 22:37:12 +01:00
lib_nametoindex.c Fix net/lib_nametoindex.c:58:7: error: 'strncpy' specified bound 16 equals destination size 2022-03-10 19:46:01 +02:00
Make.defs net: Implement shutdown() interface and tcp shutdown 2023-01-31 11:15:01 +08:00