From 4d79a5cbafccb3c4e890c905787e7444e7498672 Mon Sep 17 00:00:00 2001 From: chao an Date: Tue, 7 Feb 2023 14:17:28 +0800 Subject: [PATCH] add initial cmake build system Co-authored-by: Daniel Agar Signed-off-by: chao an --- CMakeLists.txt | 60 +++++++++++ audioutils/CMakeLists.txt | 21 ++++ boot/CMakeLists.txt | 21 ++++ builtin/CMakeLists.txt | 59 ++++++++++ builtin/builtin_list.h.in | 1 + builtin/builtin_proto.h.in | 1 + canutils/CMakeLists.txt | 21 ++++ crypto/CMakeLists.txt | 21 ++++ examples/CMakeLists.txt | 22 ++++ examples/adc/CMakeLists.txt | 23 ++++ examples/adxl372_test/CMakeLists.txt | 23 ++++ examples/ajoystick/CMakeLists.txt | 23 ++++ examples/alarm/CMakeLists.txt | 31 ++++++ examples/apa102/CMakeLists.txt | 23 ++++ examples/apds9960/CMakeLists.txt | 23 ++++ examples/bastest/CMakeLists.txt | 23 ++++ examples/bmp180/CMakeLists.txt | 23 ++++ examples/bridge/CMakeLists.txt | 23 ++++ examples/buttons/CMakeLists.txt | 31 ++++++ examples/calib_udelay/CMakeLists.txt | 23 ++++ examples/can/CMakeLists.txt | 23 ++++ examples/canard/CMakeLists.txt | 23 ++++ examples/cctype/CMakeLists.txt | 23 ++++ examples/chat/CMakeLists.txt | 23 ++++ examples/configdata/CMakeLists.txt | 23 ++++ examples/cpuhog/CMakeLists.txt | 23 ++++ examples/cromfs/CMakeLists.txt | 23 ++++ examples/dac/CMakeLists.txt | 23 ++++ examples/dhcpd/CMakeLists.txt | 34 ++++++ examples/dhtxx/CMakeLists.txt | 23 ++++ examples/discover/CMakeLists.txt | 23 ++++ examples/djoystick/CMakeLists.txt | 23 ++++ examples/elf/CMakeLists.txt | 27 +++++ examples/fb/CMakeLists.txt | 31 ++++++ examples/fboverlay/CMakeLists.txt | 23 ++++ examples/flash_test/CMakeLists.txt | 23 ++++ examples/flowc/CMakeLists.txt | 23 ++++ examples/ft80x/CMakeLists.txt | 23 ++++ examples/ftpc/CMakeLists.txt | 23 ++++ examples/ftpd/CMakeLists.txt | 26 +++++ examples/gpio/CMakeLists.txt | 23 ++++ examples/gps/CMakeLists.txt | 23 ++++ examples/hello/CMakeLists.txt | 31 ++++++ examples/helloxx/CMakeLists.txt | 23 ++++ examples/hidkbd/CMakeLists.txt | 23 ++++ examples/i2schar/CMakeLists.txt | 23 ++++ examples/i2sloop/CMakeLists.txt | 23 ++++ examples/igmp/CMakeLists.txt | 24 +++++ examples/ina219/CMakeLists.txt | 23 ++++ examples/ina226/CMakeLists.txt | 31 ++++++ examples/ipforward/CMakeLists.txt | 23 ++++ examples/json/CMakeLists.txt | 23 ++++ examples/leds/CMakeLists.txt | 23 ++++ examples/lis3dsh_reader/CMakeLists.txt | 23 ++++ examples/lsm330spi_test/CMakeLists.txt | 23 ++++ examples/lvgldemo/CMakeLists.txt | 23 ++++ examples/max31855/CMakeLists.txt | 23 ++++ examples/media/CMakeLists.txt | 23 ++++ examples/mld/CMakeLists.txt | 23 ++++ examples/mlx90614/CMakeLists.txt | 23 ++++ examples/modbus/CMakeLists.txt | 23 ++++ examples/module/CMakeLists.txt | 23 ++++ examples/mount/CMakeLists.txt | 31 ++++++ examples/mtdpart/CMakeLists.txt | 23 ++++ examples/mtdrwb/CMakeLists.txt | 23 ++++ examples/netloop/CMakeLists.txt | 23 ++++ examples/netpkt/CMakeLists.txt | 23 ++++ examples/nettest/CMakeLists.txt | 101 +++++++++++++++++ examples/nettest/host/CMakeLists.txt | 52 +++++++++ examples/nrf24l01_term/CMakeLists.txt | 23 ++++ examples/null/CMakeLists.txt | 23 ++++ examples/nunchuck/CMakeLists.txt | 23 ++++ examples/nx/CMakeLists.txt | 23 ++++ examples/nxdemo/CMakeLists.txt | 23 ++++ examples/nxflat/CMakeLists.txt | 23 ++++ examples/nxhello/CMakeLists.txt | 23 ++++ examples/nximage/CMakeLists.txt | 23 ++++ examples/nxlines/CMakeLists.txt | 24 +++++ examples/nxterm/CMakeLists.txt | 23 ++++ examples/nxtext/CMakeLists.txt | 23 ++++ examples/obd2/CMakeLists.txt | 23 ++++ examples/oneshot/CMakeLists.txt | 23 ++++ examples/pca9635/CMakeLists.txt | 23 ++++ examples/pdcurses/CMakeLists.txt | 23 ++++ examples/pf_ieee802154/CMakeLists.txt | 23 ++++ examples/pipe/CMakeLists.txt | 24 +++++ examples/poll/CMakeLists.txt | 23 ++++ examples/popen/CMakeLists.txt | 23 ++++ examples/posix_spawn/CMakeLists.txt | 23 ++++ examples/powerled/CMakeLists.txt | 23 ++++ examples/powermonitor/CMakeLists.txt | 23 ++++ examples/pppd/CMakeLists.txt | 23 ++++ examples/pty_test/CMakeLists.txt | 23 ++++ examples/pwm/CMakeLists.txt | 23 ++++ examples/qencoder/CMakeLists.txt | 23 ++++ examples/random/CMakeLists.txt | 23 ++++ examples/relays/CMakeLists.txt | 23 ++++ examples/rfid_readuid/CMakeLists.txt | 23 ++++ examples/rgbled/CMakeLists.txt | 24 +++++ examples/romfs/CMakeLists.txt | 23 ++++ examples/sendmail/CMakeLists.txt | 23 ++++ examples/serialblaster/CMakeLists.txt | 23 ++++ examples/serialrx/CMakeLists.txt | 23 ++++ examples/serloop/CMakeLists.txt | 23 ++++ examples/slcd/CMakeLists.txt | 23 ++++ examples/smps/CMakeLists.txt | 23 ++++ examples/sotest/CMakeLists.txt | 23 ++++ examples/stat/CMakeLists.txt | 23 ++++ examples/system/CMakeLists.txt | 23 ++++ examples/tcpblaster/CMakeLists.txt | 23 ++++ examples/tcpecho/CMakeLists.txt | 23 ++++ examples/telnetd/CMakeLists.txt | 23 ++++ examples/thttpd/CMakeLists.txt | 23 ++++ examples/tiff/CMakeLists.txt | 23 ++++ examples/timer/CMakeLists.txt | 23 ++++ examples/touchscreen/CMakeLists.txt | 23 ++++ examples/udgram/CMakeLists.txt | 23 ++++ examples/udp/CMakeLists.txt | 23 ++++ examples/udpblaster/CMakeLists.txt | 23 ++++ examples/unionfs/CMakeLists.txt | 23 ++++ examples/usbserial/CMakeLists.txt | 30 ++++++ examples/userfs/CMakeLists.txt | 23 ++++ examples/usrsocktest/CMakeLists.txt | 23 ++++ examples/ustream/CMakeLists.txt | 23 ++++ examples/veml6070/CMakeLists.txt | 23 ++++ examples/watchdog/CMakeLists.txt | 23 ++++ examples/webserver/CMakeLists.txt | 23 ++++ examples/wget/CMakeLists.txt | 23 ++++ examples/wgetjson/CMakeLists.txt | 23 ++++ examples/xbc_test/CMakeLists.txt | 27 +++++ examples/xmlrpc/CMakeLists.txt | 23 ++++ examples/zerocross/CMakeLists.txt | 23 ++++ fsutils/CMakeLists.txt | 23 ++++ fsutils/flash_eraseall/CMakeLists.txt | 23 ++++ fsutils/inifile/CMakeLists.txt | 23 ++++ fsutils/mkfatfs/CMakeLists.txt | 29 +++++ fsutils/mksmartfs/CMakeLists.txt | 23 ++++ fsutils/passwd/CMakeLists.txt | 41 +++++++ games/CMakeLists.txt | 21 ++++ gpsutils/CMakeLists.txt | 21 ++++ graphics/CMakeLists.txt | 21 ++++ industry/CMakeLists.txt | 21 ++++ interpreters/CMakeLists.txt | 21 ++++ math/CMakeLists.txt | 21 ++++ mlearning/CMakeLists.txt | 21 ++++ modbus/CMakeLists.txt | 114 ++++++++++++++++++++ netutils/CMakeLists.txt | 23 ++++ netutils/chat/CMakeLists.txt | 23 ++++ netutils/cjson/CMakeLists.txt | 70 ++++++++++++ netutils/codecs/CMakeLists.txt | 23 ++++ netutils/dhcp6c/CMakeLists.txt | 23 ++++ netutils/dhcpc/CMakeLists.txt | 23 ++++ netutils/dhcpd/CMakeLists.txt | 23 ++++ netutils/discover/CMakeLists.txt | 23 ++++ netutils/esp8266/CMakeLists.txt | 23 ++++ netutils/ftpc/CMakeLists.txt | 64 +++++++++++ netutils/ftpd/CMakeLists.txt | 23 ++++ netutils/iperf/CMakeLists.txt | 23 ++++ netutils/libcurl4nx/CMakeLists.txt | 33 ++++++ netutils/netcat/CMakeLists.txt | 24 +++++ netutils/netinit/CMakeLists.txt | 30 ++++++ netutils/netlib/CMakeLists.txt | 129 ++++++++++++++++++++++ netutils/ntpclient/CMakeLists.txt | 23 ++++ netutils/ping/CMakeLists.txt | 27 +++++ netutils/pppd/CMakeLists.txt | 37 +++++++ netutils/rexec/CMakeLists.txt | 23 ++++ netutils/rexecd/CMakeLists.txt | 23 ++++ netutils/smtp/CMakeLists.txt | 23 ++++ netutils/telnetc/CMakeLists.txt | 23 ++++ netutils/telnetd/CMakeLists.txt | 23 ++++ netutils/tftpc/CMakeLists.txt | 23 ++++ netutils/thttpd/CMakeLists.txt | 23 ++++ netutils/usrsock_rpmsg/CMakeLists.txt | 27 +++++ netutils/wakeonlan/CMakeLists.txt | 24 +++++ netutils/webclient/CMakeLists.txt | 23 ++++ netutils/webserver/CMakeLists.txt | 42 ++++++++ netutils/xmlrpc/CMakeLists.txt | 23 ++++ nshlib/CMakeLists.txt | 130 ++++++++++++++++++++++ platform/CMakeLists.txt | 25 +++++ system/CMakeLists.txt | 23 ++++ system/cdcacm/CMakeLists.txt | 23 ++++ system/cle/CMakeLists.txt | 23 ++++ system/composite/CMakeLists.txt | 23 ++++ system/critmon/CMakeLists.txt | 23 ++++ system/cu/CMakeLists.txt | 31 ++++++ system/dhcpc/CMakeLists.txt | 31 ++++++ system/dumpstack/CMakeLists.txt | 31 ++++++ system/flash_eraseall/CMakeLists.txt | 23 ++++ system/hex2bin/CMakeLists.txt | 23 ++++ system/hexed/CMakeLists.txt | 23 ++++ system/hostname/CMakeLists.txt | 23 ++++ system/i2c/CMakeLists.txt | 40 +++++++ system/lm75/CMakeLists.txt | 23 ++++ system/lzf/CMakeLists.txt | 23 ++++ system/mdio/CMakeLists.txt | 23 ++++ system/netdb/CMakeLists.txt | 32 ++++++ system/nsh/CMakeLists.txt | 26 +++++ system/ntpc/CMakeLists.txt | 49 +++++++++ system/nxplayer/CMakeLists.txt | 27 +++++ system/nxrecorder/CMakeLists.txt | 27 +++++ system/ping/CMakeLists.txt | 31 ++++++ system/ping6/CMakeLists.txt | 23 ++++ system/popen/CMakeLists.txt | 23 ++++ system/ramtest/CMakeLists.txt | 23 ++++ system/readline/CMakeLists.txt | 25 +++++ system/sched_note/CMakeLists.txt | 23 ++++ system/setlogmask/CMakeLists.txt | 31 ++++++ system/stackmonitor/CMakeLists.txt | 23 ++++ system/system/CMakeLists.txt | 23 ++++ system/taskset/CMakeLists.txt | 23 ++++ system/tee/CMakeLists.txt | 23 ++++ system/telnet/CMakeLists.txt | 43 ++++++++ system/ubloxmodem/CMakeLists.txt | 23 ++++ system/usbmsc/CMakeLists.txt | 23 ++++ system/vi/CMakeLists.txt | 23 ++++ system/zmodem/CMakeLists.txt | 23 ++++ testing/CMakeLists.txt | 22 ++++ testing/ostest/CMakeLists.txt | 144 +++++++++++++++++++++++++ wireless/CMakeLists.txt | 23 ++++ wireless/wapi/CMakeLists.txt | 39 +++++++ 220 files changed, 5993 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 audioutils/CMakeLists.txt create mode 100644 boot/CMakeLists.txt create mode 100644 builtin/CMakeLists.txt create mode 100644 builtin/builtin_list.h.in create mode 100644 builtin/builtin_proto.h.in create mode 100644 canutils/CMakeLists.txt create mode 100644 crypto/CMakeLists.txt create mode 100644 examples/CMakeLists.txt create mode 100644 examples/adc/CMakeLists.txt create mode 100644 examples/adxl372_test/CMakeLists.txt create mode 100644 examples/ajoystick/CMakeLists.txt create mode 100644 examples/alarm/CMakeLists.txt create mode 100644 examples/apa102/CMakeLists.txt create mode 100644 examples/apds9960/CMakeLists.txt create mode 100644 examples/bastest/CMakeLists.txt create mode 100644 examples/bmp180/CMakeLists.txt create mode 100644 examples/bridge/CMakeLists.txt create mode 100644 examples/buttons/CMakeLists.txt create mode 100644 examples/calib_udelay/CMakeLists.txt create mode 100644 examples/can/CMakeLists.txt create mode 100644 examples/canard/CMakeLists.txt create mode 100644 examples/cctype/CMakeLists.txt create mode 100644 examples/chat/CMakeLists.txt create mode 100644 examples/configdata/CMakeLists.txt create mode 100644 examples/cpuhog/CMakeLists.txt create mode 100644 examples/cromfs/CMakeLists.txt create mode 100644 examples/dac/CMakeLists.txt create mode 100644 examples/dhcpd/CMakeLists.txt create mode 100644 examples/dhtxx/CMakeLists.txt create mode 100644 examples/discover/CMakeLists.txt create mode 100644 examples/djoystick/CMakeLists.txt create mode 100644 examples/elf/CMakeLists.txt create mode 100644 examples/fb/CMakeLists.txt create mode 100644 examples/fboverlay/CMakeLists.txt create mode 100644 examples/flash_test/CMakeLists.txt create mode 100644 examples/flowc/CMakeLists.txt create mode 100644 examples/ft80x/CMakeLists.txt create mode 100644 examples/ftpc/CMakeLists.txt create mode 100644 examples/ftpd/CMakeLists.txt create mode 100644 examples/gpio/CMakeLists.txt create mode 100644 examples/gps/CMakeLists.txt create mode 100644 examples/hello/CMakeLists.txt create mode 100644 examples/helloxx/CMakeLists.txt create mode 100644 examples/hidkbd/CMakeLists.txt create mode 100644 examples/i2schar/CMakeLists.txt create mode 100644 examples/i2sloop/CMakeLists.txt create mode 100644 examples/igmp/CMakeLists.txt create mode 100644 examples/ina219/CMakeLists.txt create mode 100644 examples/ina226/CMakeLists.txt create mode 100644 examples/ipforward/CMakeLists.txt create mode 100644 examples/json/CMakeLists.txt create mode 100644 examples/leds/CMakeLists.txt create mode 100644 examples/lis3dsh_reader/CMakeLists.txt create mode 100644 examples/lsm330spi_test/CMakeLists.txt create mode 100644 examples/lvgldemo/CMakeLists.txt create mode 100644 examples/max31855/CMakeLists.txt create mode 100644 examples/media/CMakeLists.txt create mode 100644 examples/mld/CMakeLists.txt create mode 100644 examples/mlx90614/CMakeLists.txt create mode 100644 examples/modbus/CMakeLists.txt create mode 100644 examples/module/CMakeLists.txt create mode 100644 examples/mount/CMakeLists.txt create mode 100644 examples/mtdpart/CMakeLists.txt create mode 100644 examples/mtdrwb/CMakeLists.txt create mode 100644 examples/netloop/CMakeLists.txt create mode 100644 examples/netpkt/CMakeLists.txt create mode 100644 examples/nettest/CMakeLists.txt create mode 100644 examples/nettest/host/CMakeLists.txt create mode 100644 examples/nrf24l01_term/CMakeLists.txt create mode 100644 examples/null/CMakeLists.txt create mode 100644 examples/nunchuck/CMakeLists.txt create mode 100644 examples/nx/CMakeLists.txt create mode 100644 examples/nxdemo/CMakeLists.txt create mode 100644 examples/nxflat/CMakeLists.txt create mode 100644 examples/nxhello/CMakeLists.txt create mode 100644 examples/nximage/CMakeLists.txt create mode 100644 examples/nxlines/CMakeLists.txt create mode 100644 examples/nxterm/CMakeLists.txt create mode 100644 examples/nxtext/CMakeLists.txt create mode 100644 examples/obd2/CMakeLists.txt create mode 100644 examples/oneshot/CMakeLists.txt create mode 100644 examples/pca9635/CMakeLists.txt create mode 100644 examples/pdcurses/CMakeLists.txt create mode 100644 examples/pf_ieee802154/CMakeLists.txt create mode 100644 examples/pipe/CMakeLists.txt create mode 100644 examples/poll/CMakeLists.txt create mode 100644 examples/popen/CMakeLists.txt create mode 100644 examples/posix_spawn/CMakeLists.txt create mode 100644 examples/powerled/CMakeLists.txt create mode 100644 examples/powermonitor/CMakeLists.txt create mode 100644 examples/pppd/CMakeLists.txt create mode 100644 examples/pty_test/CMakeLists.txt create mode 100644 examples/pwm/CMakeLists.txt create mode 100644 examples/qencoder/CMakeLists.txt create mode 100644 examples/random/CMakeLists.txt create mode 100644 examples/relays/CMakeLists.txt create mode 100644 examples/rfid_readuid/CMakeLists.txt create mode 100644 examples/rgbled/CMakeLists.txt create mode 100644 examples/romfs/CMakeLists.txt create mode 100644 examples/sendmail/CMakeLists.txt create mode 100644 examples/serialblaster/CMakeLists.txt create mode 100644 examples/serialrx/CMakeLists.txt create mode 100644 examples/serloop/CMakeLists.txt create mode 100644 examples/slcd/CMakeLists.txt create mode 100644 examples/smps/CMakeLists.txt create mode 100644 examples/sotest/CMakeLists.txt create mode 100644 examples/stat/CMakeLists.txt create mode 100644 examples/system/CMakeLists.txt create mode 100644 examples/tcpblaster/CMakeLists.txt create mode 100644 examples/tcpecho/CMakeLists.txt create mode 100644 examples/telnetd/CMakeLists.txt create mode 100644 examples/thttpd/CMakeLists.txt create mode 100644 examples/tiff/CMakeLists.txt create mode 100644 examples/timer/CMakeLists.txt create mode 100644 examples/touchscreen/CMakeLists.txt create mode 100644 examples/udgram/CMakeLists.txt create mode 100644 examples/udp/CMakeLists.txt create mode 100644 examples/udpblaster/CMakeLists.txt create mode 100644 examples/unionfs/CMakeLists.txt create mode 100644 examples/usbserial/CMakeLists.txt create mode 100644 examples/userfs/CMakeLists.txt create mode 100644 examples/usrsocktest/CMakeLists.txt create mode 100644 examples/ustream/CMakeLists.txt create mode 100644 examples/veml6070/CMakeLists.txt create mode 100644 examples/watchdog/CMakeLists.txt create mode 100644 examples/webserver/CMakeLists.txt create mode 100644 examples/wget/CMakeLists.txt create mode 100644 examples/wgetjson/CMakeLists.txt create mode 100644 examples/xbc_test/CMakeLists.txt create mode 100644 examples/xmlrpc/CMakeLists.txt create mode 100644 examples/zerocross/CMakeLists.txt create mode 100644 fsutils/CMakeLists.txt create mode 100644 fsutils/flash_eraseall/CMakeLists.txt create mode 100644 fsutils/inifile/CMakeLists.txt create mode 100644 fsutils/mkfatfs/CMakeLists.txt create mode 100644 fsutils/mksmartfs/CMakeLists.txt create mode 100644 fsutils/passwd/CMakeLists.txt create mode 100644 games/CMakeLists.txt create mode 100644 gpsutils/CMakeLists.txt create mode 100644 graphics/CMakeLists.txt create mode 100644 industry/CMakeLists.txt create mode 100644 interpreters/CMakeLists.txt create mode 100644 math/CMakeLists.txt create mode 100644 mlearning/CMakeLists.txt create mode 100644 modbus/CMakeLists.txt create mode 100644 netutils/CMakeLists.txt create mode 100644 netutils/chat/CMakeLists.txt create mode 100644 netutils/cjson/CMakeLists.txt create mode 100644 netutils/codecs/CMakeLists.txt create mode 100644 netutils/dhcp6c/CMakeLists.txt create mode 100644 netutils/dhcpc/CMakeLists.txt create mode 100644 netutils/dhcpd/CMakeLists.txt create mode 100644 netutils/discover/CMakeLists.txt create mode 100644 netutils/esp8266/CMakeLists.txt create mode 100644 netutils/ftpc/CMakeLists.txt create mode 100644 netutils/ftpd/CMakeLists.txt create mode 100644 netutils/iperf/CMakeLists.txt create mode 100644 netutils/libcurl4nx/CMakeLists.txt create mode 100644 netutils/netcat/CMakeLists.txt create mode 100644 netutils/netinit/CMakeLists.txt create mode 100644 netutils/netlib/CMakeLists.txt create mode 100644 netutils/ntpclient/CMakeLists.txt create mode 100644 netutils/ping/CMakeLists.txt create mode 100644 netutils/pppd/CMakeLists.txt create mode 100644 netutils/rexec/CMakeLists.txt create mode 100644 netutils/rexecd/CMakeLists.txt create mode 100644 netutils/smtp/CMakeLists.txt create mode 100644 netutils/telnetc/CMakeLists.txt create mode 100644 netutils/telnetd/CMakeLists.txt create mode 100644 netutils/tftpc/CMakeLists.txt create mode 100644 netutils/thttpd/CMakeLists.txt create mode 100644 netutils/usrsock_rpmsg/CMakeLists.txt create mode 100644 netutils/wakeonlan/CMakeLists.txt create mode 100644 netutils/webclient/CMakeLists.txt create mode 100644 netutils/webserver/CMakeLists.txt create mode 100644 netutils/xmlrpc/CMakeLists.txt create mode 100644 nshlib/CMakeLists.txt create mode 100644 platform/CMakeLists.txt create mode 100644 system/CMakeLists.txt create mode 100644 system/cdcacm/CMakeLists.txt create mode 100644 system/cle/CMakeLists.txt create mode 100644 system/composite/CMakeLists.txt create mode 100644 system/critmon/CMakeLists.txt create mode 100644 system/cu/CMakeLists.txt create mode 100644 system/dhcpc/CMakeLists.txt create mode 100644 system/dumpstack/CMakeLists.txt create mode 100644 system/flash_eraseall/CMakeLists.txt create mode 100644 system/hex2bin/CMakeLists.txt create mode 100644 system/hexed/CMakeLists.txt create mode 100644 system/hostname/CMakeLists.txt create mode 100644 system/i2c/CMakeLists.txt create mode 100644 system/lm75/CMakeLists.txt create mode 100644 system/lzf/CMakeLists.txt create mode 100644 system/mdio/CMakeLists.txt create mode 100644 system/netdb/CMakeLists.txt create mode 100644 system/nsh/CMakeLists.txt create mode 100644 system/ntpc/CMakeLists.txt create mode 100644 system/nxplayer/CMakeLists.txt create mode 100644 system/nxrecorder/CMakeLists.txt create mode 100644 system/ping/CMakeLists.txt create mode 100644 system/ping6/CMakeLists.txt create mode 100644 system/popen/CMakeLists.txt create mode 100644 system/ramtest/CMakeLists.txt create mode 100644 system/readline/CMakeLists.txt create mode 100644 system/sched_note/CMakeLists.txt create mode 100644 system/setlogmask/CMakeLists.txt create mode 100644 system/stackmonitor/CMakeLists.txt create mode 100644 system/system/CMakeLists.txt create mode 100644 system/taskset/CMakeLists.txt create mode 100644 system/tee/CMakeLists.txt create mode 100644 system/telnet/CMakeLists.txt create mode 100644 system/ubloxmodem/CMakeLists.txt create mode 100644 system/usbmsc/CMakeLists.txt create mode 100644 system/vi/CMakeLists.txt create mode 100644 system/zmodem/CMakeLists.txt create mode 100644 testing/CMakeLists.txt create mode 100644 testing/ostest/CMakeLists.txt create mode 100644 wireless/CMakeLists.txt create mode 100644 wireless/wapi/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..dbe06949d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,60 @@ +# ############################################################################## +# apps/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_APPS_DIR) + nuttx_add_library(apps) + if(NOT EXISTS {NUTTX_APPS_BINDIR}/dummy.c) + file(TOUCH ${NUTTX_APPS_BINDIR}/dummy.c) + endif() + target_sources(apps PRIVATE ${NUTTX_APPS_BINDIR}/dummy.c) +endif() + +file(MAKE_DIRECTORY ${NUTTX_APPS_BINDIR}/include) +include_directories(include) +include_directories(${NUTTX_APPS_BINDIR}/include) + +add_subdirectory(audioutils) +add_subdirectory(boot) +add_subdirectory(canutils) +add_subdirectory(crypto) +add_subdirectory(examples) +add_subdirectory(fsutils) +add_subdirectory(games) +add_subdirectory(gpsutils) +add_subdirectory(graphics) +add_subdirectory(industry) +add_subdirectory(interpreters) +add_subdirectory(math) +add_subdirectory(mlearning) +add_subdirectory(modbus) +add_subdirectory(netutils) +add_subdirectory(nshlib) +add_subdirectory(platform) +add_subdirectory(system) +add_subdirectory(testing) +add_subdirectory(wireless) + +if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/external) + add_subdirectory(external) +endif() + +add_subdirectory(builtin) # must be last + +nuttx_generate_kconfig() diff --git a/audioutils/CMakeLists.txt b/audioutils/CMakeLists.txt new file mode 100644 index 000000000..5491e5a19 --- /dev/null +++ b/audioutils/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/audioutils/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "Audio Utility libraries") diff --git a/boot/CMakeLists.txt b/boot/CMakeLists.txt new file mode 100644 index 000000000..ce82730ee --- /dev/null +++ b/boot/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/boot/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "Bootloader Utilities") diff --git a/builtin/CMakeLists.txt b/builtin/CMakeLists.txt new file mode 100644 index 000000000..e8be798e7 --- /dev/null +++ b/builtin/CMakeLists.txt @@ -0,0 +1,59 @@ +# ############################################################################## +# apps/builtin/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_BUILTIN) + + include_directories(${CMAKE_CURRENT_BINARY_DIR}) + + # generate registry + get_property(nuttx_app_libs GLOBAL PROPERTY NUTTX_APPS_LIBRARIES) + set(builtin_list_string) + set(builtin_proto_string) + foreach(module ${nuttx_app_libs}) + + # builtin_list.h Example: { "hello", SCHED_PRIORITY_DEFAULT, 2048, + # hello_main }, + # + get_target_property(APP_MAIN ${module} APP_MAIN) + get_target_property(APP_NAME ${module} APP_NAME) + get_target_property(APP_PRIORITY ${module} APP_PRIORITY) + get_target_property(APP_STACK ${module} APP_STACK) + set(builtin_list_string + "${builtin_list_string}\{ \"${APP_NAME}\", ${APP_PRIORITY}, ${APP_STACK}, ${APP_MAIN} \}, \n" + ) + + # builtin_proto.h Example: int hello_main(int argc, char *argv[]); + set(builtin_proto_string + "${builtin_proto_string}int ${APP_MAIN}(int argc, char *argv[]);\n") + + endforeach() + + configure_file(builtin_proto.h.in builtin_proto.h) + configure_file(builtin_list.h.in builtin_list.h) + + set(CSRCS) + + list(APPEND CSRCS builtin_list.c exec_builtin.c builtin_list.h + builtin_proto.h) + + # target_sources(apps PRIVATE ${CSRCS}) + nuttx_add_library(apps_builtin ${CSRCS}) + +endif() diff --git a/builtin/builtin_list.h.in b/builtin/builtin_list.h.in new file mode 100644 index 000000000..b81626aa6 --- /dev/null +++ b/builtin/builtin_list.h.in @@ -0,0 +1 @@ +${builtin_list_string} diff --git a/builtin/builtin_proto.h.in b/builtin/builtin_proto.h.in new file mode 100644 index 000000000..abb9dcee1 --- /dev/null +++ b/builtin/builtin_proto.h.in @@ -0,0 +1 @@ +${builtin_proto_string} diff --git a/canutils/CMakeLists.txt b/canutils/CMakeLists.txt new file mode 100644 index 000000000..1c0d9bb56 --- /dev/null +++ b/canutils/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/canutils/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "CAN Utilities") diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt new file mode 100644 index 000000000..8f9aabcf3 --- /dev/null +++ b/crypto/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/crypto/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "Cryptography Library Support") diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 000000000..16281b510 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,22 @@ +# ############################################################################## +# apps/examples/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_add_subdirectory() +nuttx_generate_kconfig(MENUDESC "Examples") diff --git a/examples/adc/CMakeLists.txt b/examples/adc/CMakeLists.txt new file mode 100644 index 000000000..b2cb84338 --- /dev/null +++ b/examples/adc/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/adc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_ADC) + nuttx_add_application(NAME adc) +endif() diff --git a/examples/adxl372_test/CMakeLists.txt b/examples/adxl372_test/CMakeLists.txt new file mode 100644 index 000000000..dd7048f42 --- /dev/null +++ b/examples/adxl372_test/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/adxl372_test/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_ADXL372_TEST) + nuttx_add_application(NAME adxl372_test) +endif() diff --git a/examples/ajoystick/CMakeLists.txt b/examples/ajoystick/CMakeLists.txt new file mode 100644 index 000000000..1d36b9048 --- /dev/null +++ b/examples/ajoystick/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/ajoystick/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_AJOYSTICK) + nuttx_add_application(NAME ajoystick) +endif() diff --git a/examples/alarm/CMakeLists.txt b/examples/alarm/CMakeLists.txt new file mode 100644 index 000000000..eec029d59 --- /dev/null +++ b/examples/alarm/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/examples/alarm/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_ALARM) + nuttx_add_application( + NAME + alarm + SRCS + alarm_main.c + STACKSIZE + ${CONFIG_EXAMPLES_ALARM_STACKSIZE} + PRIORITY + ${CONFIG_EXAMPLES_ALARM_PRIORITY}) +endif() diff --git a/examples/apa102/CMakeLists.txt b/examples/apa102/CMakeLists.txt new file mode 100644 index 000000000..75e453388 --- /dev/null +++ b/examples/apa102/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/apa102/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_APA102) + nuttx_add_application(NAME apa102) +endif() diff --git a/examples/apds9960/CMakeLists.txt b/examples/apds9960/CMakeLists.txt new file mode 100644 index 000000000..5b6d6f4a5 --- /dev/null +++ b/examples/apds9960/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/apds9960/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_APDS9960) + nuttx_add_application(NAME apds9960) +endif() diff --git a/examples/bastest/CMakeLists.txt b/examples/bastest/CMakeLists.txt new file mode 100644 index 000000000..6513709ed --- /dev/null +++ b/examples/bastest/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/bastest/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_BASTEST) + nuttx_add_application(NAME bastest) +endif() diff --git a/examples/bmp180/CMakeLists.txt b/examples/bmp180/CMakeLists.txt new file mode 100644 index 000000000..9f44a2efb --- /dev/null +++ b/examples/bmp180/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/bmp180/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_BMP180) + nuttx_add_application(NAME bmp180) +endif() diff --git a/examples/bridge/CMakeLists.txt b/examples/bridge/CMakeLists.txt new file mode 100644 index 000000000..f04b54826 --- /dev/null +++ b/examples/bridge/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/bridge/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_BRIDGE) + nuttx_add_application(NAME bridge) +endif() diff --git a/examples/buttons/CMakeLists.txt b/examples/buttons/CMakeLists.txt new file mode 100644 index 000000000..692f9f095 --- /dev/null +++ b/examples/buttons/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/examples/buttons/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_BUTTONS) + nuttx_add_application( + NAME + buttons + SRCS + buttons_main.c + STACKSIZE + ${CONFIG_EXAMPLES_BUTTONS_STACKSIZE} + PRIORITY + ${CONFIG_EXAMPLES_BUTTONS_PRIORITY}) +endif() diff --git a/examples/calib_udelay/CMakeLists.txt b/examples/calib_udelay/CMakeLists.txt new file mode 100644 index 000000000..b53f5c896 --- /dev/null +++ b/examples/calib_udelay/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/calib_udelay/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_CALIB_UDELAY) + nuttx_add_application(NAME calib_udelay) +endif() diff --git a/examples/can/CMakeLists.txt b/examples/can/CMakeLists.txt new file mode 100644 index 000000000..c4a6a4609 --- /dev/null +++ b/examples/can/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/can/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_CAN) + nuttx_add_application(NAME can) +endif() diff --git a/examples/canard/CMakeLists.txt b/examples/canard/CMakeLists.txt new file mode 100644 index 000000000..390b8d8a0 --- /dev/null +++ b/examples/canard/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/canard/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_LIBCANARD) + nuttx_add_application(NAME canard) +endif() diff --git a/examples/cctype/CMakeLists.txt b/examples/cctype/CMakeLists.txt new file mode 100644 index 000000000..1e5e07dbd --- /dev/null +++ b/examples/cctype/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/cctype/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_CCTYPE) + nuttx_add_application(NAME cctype) +endif() diff --git a/examples/chat/CMakeLists.txt b/examples/chat/CMakeLists.txt new file mode 100644 index 000000000..46d900d92 --- /dev/null +++ b/examples/chat/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/chat/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_CHAT) + nuttx_add_application(NAME chat) +endif() diff --git a/examples/configdata/CMakeLists.txt b/examples/configdata/CMakeLists.txt new file mode 100644 index 000000000..7e69808a8 --- /dev/null +++ b/examples/configdata/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/configdata/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_CONFIGDATA) + nuttx_add_application(NAME configdata) +endif() diff --git a/examples/cpuhog/CMakeLists.txt b/examples/cpuhog/CMakeLists.txt new file mode 100644 index 000000000..07776d145 --- /dev/null +++ b/examples/cpuhog/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/cpuhog/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_CPUHOG) + nuttx_add_application(NAME cpuhog) +endif() diff --git a/examples/cromfs/CMakeLists.txt b/examples/cromfs/CMakeLists.txt new file mode 100644 index 000000000..b47f02cc9 --- /dev/null +++ b/examples/cromfs/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/cromfs/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_CROMFS) + nuttx_add_application(NAME cromfs) +endif() diff --git a/examples/dac/CMakeLists.txt b/examples/dac/CMakeLists.txt new file mode 100644 index 000000000..9a8fc6405 --- /dev/null +++ b/examples/dac/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/dac/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_DAC) + nuttx_add_application(NAME dac) +endif() diff --git a/examples/dhcpd/CMakeLists.txt b/examples/dhcpd/CMakeLists.txt new file mode 100644 index 000000000..09cc83d8f --- /dev/null +++ b/examples/dhcpd/CMakeLists.txt @@ -0,0 +1,34 @@ +# ############################################################################## +# apps/examples/dhcpd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_DHCPD) + nuttx_add_application( + NAME + dhcpd + SRCS + host.c + target.c + STACKSIZE + 2048) + + add_definitions(-DCONFIG_NETUTILS_DHCPD_HOST=1 -DHAVE_SO_REUSEADDR=1 + -DHAVE_SO_BROADCAST=1) + +endif() diff --git a/examples/dhtxx/CMakeLists.txt b/examples/dhtxx/CMakeLists.txt new file mode 100644 index 000000000..dcd099d7e --- /dev/null +++ b/examples/dhtxx/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/dhtxx/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_DHTXX) + nuttx_add_application(NAME dhtxx) +endif() diff --git a/examples/discover/CMakeLists.txt b/examples/discover/CMakeLists.txt new file mode 100644 index 000000000..a773529de --- /dev/null +++ b/examples/discover/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/discover/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_DISCOVER) + nuttx_add_application(NAME discover SRCS discover_main.c) +endif() diff --git a/examples/djoystick/CMakeLists.txt b/examples/djoystick/CMakeLists.txt new file mode 100644 index 000000000..875ae0996 --- /dev/null +++ b/examples/djoystick/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/djoystick/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_DJOYSTICK) + nuttx_add_application(NAME djoystick) +endif() diff --git a/examples/elf/CMakeLists.txt b/examples/elf/CMakeLists.txt new file mode 100644 index 000000000..181927e84 --- /dev/null +++ b/examples/elf/CMakeLists.txt @@ -0,0 +1,27 @@ +# ############################################################################## +# apps/examples/elf/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_ELF) + nuttx_add_application(NAME elf INCLUDES ${CMAKE_CURRENT_SOURCE_DIR} SRCS + elf_main.c) + + # TODO: tests + +endif() diff --git a/examples/fb/CMakeLists.txt b/examples/fb/CMakeLists.txt new file mode 100644 index 000000000..fdabfec24 --- /dev/null +++ b/examples/fb/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/examples/fb/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_FB) + nuttx_add_application( + NAME + ${CONFIG_EXAMPLES_FB_PROGNAME} + SRCS + fb_main.c + STACKSIZE + ${CONFIG_EXAMPLES_FB_STACKSIZE} + PRIORITY + ${CONFIG_EXAMPLES_FB_PRIORITY}) +endif() diff --git a/examples/fboverlay/CMakeLists.txt b/examples/fboverlay/CMakeLists.txt new file mode 100644 index 000000000..ab3490052 --- /dev/null +++ b/examples/fboverlay/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/fboverlay/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_FBOVERLAY) + nuttx_add_application(NAME fboverlay) +endif() diff --git a/examples/flash_test/CMakeLists.txt b/examples/flash_test/CMakeLists.txt new file mode 100644 index 000000000..eda8a947a --- /dev/null +++ b/examples/flash_test/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/flash_test/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_FLASH_TEST) + nuttx_add_application(NAME flash_test) +endif() diff --git a/examples/flowc/CMakeLists.txt b/examples/flowc/CMakeLists.txt new file mode 100644 index 000000000..cdcdcde2f --- /dev/null +++ b/examples/flowc/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/flowc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_FLOWC) + nuttx_add_application(NAME flowc) +endif() diff --git a/examples/ft80x/CMakeLists.txt b/examples/ft80x/CMakeLists.txt new file mode 100644 index 000000000..af66a9257 --- /dev/null +++ b/examples/ft80x/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/ft80x/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_FT80X) + nuttx_add_application(NAME ft80x) +endif() diff --git a/examples/ftpc/CMakeLists.txt b/examples/ftpc/CMakeLists.txt new file mode 100644 index 000000000..2e1a97953 --- /dev/null +++ b/examples/ftpc/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/ftpc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_FTPC) + nuttx_add_application(NAME ftpc) +endif() diff --git a/examples/ftpd/CMakeLists.txt b/examples/ftpd/CMakeLists.txt new file mode 100644 index 000000000..e433f125b --- /dev/null +++ b/examples/ftpd/CMakeLists.txt @@ -0,0 +1,26 @@ +# ############################################################################## +# apps/examples/ftpd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_FTPD) + nuttx_add_application(NAME ftpd_start SRCS ftpd_main.c STACKSIZE + ${CONFIG_EXAMPLES_FTPD_STACKSIZE}) + nuttx_add_application(NAME ftpd_stop STACKSIZE + ${CONFIG_EXAMPLES_FTPD_STACKSIZE}) +endif() diff --git a/examples/gpio/CMakeLists.txt b/examples/gpio/CMakeLists.txt new file mode 100644 index 000000000..79fee6351 --- /dev/null +++ b/examples/gpio/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/gpio/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_GPIO) + nuttx_add_application(NAME gpio) +endif() diff --git a/examples/gps/CMakeLists.txt b/examples/gps/CMakeLists.txt new file mode 100644 index 000000000..952a3c815 --- /dev/null +++ b/examples/gps/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/gps/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_GPS) + nuttx_add_application(NAME gps) +endif() diff --git a/examples/hello/CMakeLists.txt b/examples/hello/CMakeLists.txt new file mode 100644 index 000000000..d71131595 --- /dev/null +++ b/examples/hello/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/examples/hello/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_HELLO) + nuttx_add_application( + NAME + ${CONFIG_EXAMPLES_HELLO_PROGNAME} + SRCS + hello_main.c + STACKSIZE + ${CONFIG_EXAMPLES_HELLO_STACKSIZE} + PRIORITY + ${CONFIG_EXAMPLES_HELLO_PRIORITY}) +endif() diff --git a/examples/helloxx/CMakeLists.txt b/examples/helloxx/CMakeLists.txt new file mode 100644 index 000000000..0fbd76a4a --- /dev/null +++ b/examples/helloxx/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/helloxx/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_HELLOXX) + nuttx_add_application(NAME helloxx SRCS helloxx_main.cxx) +endif() diff --git a/examples/hidkbd/CMakeLists.txt b/examples/hidkbd/CMakeLists.txt new file mode 100644 index 000000000..a16b86f46 --- /dev/null +++ b/examples/hidkbd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/hidkbd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_HIDKBD) + nuttx_add_application(NAME hidkbd) +endif() diff --git a/examples/i2schar/CMakeLists.txt b/examples/i2schar/CMakeLists.txt new file mode 100644 index 000000000..dbbecef2a --- /dev/null +++ b/examples/i2schar/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/i2schar/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_I2SCHAR) + nuttx_add_application(NAME i2schar) +endif() diff --git a/examples/i2sloop/CMakeLists.txt b/examples/i2sloop/CMakeLists.txt new file mode 100644 index 000000000..848612a2f --- /dev/null +++ b/examples/i2sloop/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/i2sloop/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_I2SLOOP) + nuttx_add_application(NAME i2sloop) +endif() diff --git a/examples/igmp/CMakeLists.txt b/examples/igmp/CMakeLists.txt new file mode 100644 index 000000000..3cdf25ff3 --- /dev/null +++ b/examples/igmp/CMakeLists.txt @@ -0,0 +1,24 @@ +# ############################################################################## +# apps/examples/igmp/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_IGMP) + nuttx_add_application(NAME igmp SRCS igmp.c STACKSIZE + ${CONFIG_DEFAULT_TASK_STACKSIZE}) +endif() diff --git a/examples/ina219/CMakeLists.txt b/examples/ina219/CMakeLists.txt new file mode 100644 index 000000000..e25c3611d --- /dev/null +++ b/examples/ina219/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/ina219/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_INA219) + nuttx_add_application(NAME ina219) +endif() diff --git a/examples/ina226/CMakeLists.txt b/examples/ina226/CMakeLists.txt new file mode 100644 index 000000000..cade2d42c --- /dev/null +++ b/examples/ina226/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/examples/ina226/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_INA226) + nuttx_add_application( + NAME + ina226 + SRCS + ina226_main.c + STACKSIZE + ${CONFIG_EXAMPLES_INA226_STACKSIZE} + PRIORITY + ${CONFIG_EXAMPLES_INA226_PRIORITY}) +endif() diff --git a/examples/ipforward/CMakeLists.txt b/examples/ipforward/CMakeLists.txt new file mode 100644 index 000000000..47545535b --- /dev/null +++ b/examples/ipforward/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/ipforward/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_IPFORWARD) + nuttx_add_application(NAME ipforward) +endif() diff --git a/examples/json/CMakeLists.txt b/examples/json/CMakeLists.txt new file mode 100644 index 000000000..7f1b4da7e --- /dev/null +++ b/examples/json/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/json/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_JSON) + nuttx_add_application(NAME json) +endif() diff --git a/examples/leds/CMakeLists.txt b/examples/leds/CMakeLists.txt new file mode 100644 index 000000000..b84eab5b2 --- /dev/null +++ b/examples/leds/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/leds/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_LEDS) + nuttx_add_application(NAME leds) +endif() diff --git a/examples/lis3dsh_reader/CMakeLists.txt b/examples/lis3dsh_reader/CMakeLists.txt new file mode 100644 index 000000000..d83f767a0 --- /dev/null +++ b/examples/lis3dsh_reader/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/lis3dsh_reader/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_LIS3DSH_READER) + nuttx_add_application(NAME lis3dsh_reader) +endif() diff --git a/examples/lsm330spi_test/CMakeLists.txt b/examples/lsm330spi_test/CMakeLists.txt new file mode 100644 index 000000000..db73cefe3 --- /dev/null +++ b/examples/lsm330spi_test/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/lsm330spi_test/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_LSM330SPI_TEST) + nuttx_add_application(NAME lsm330spi_test) +endif() diff --git a/examples/lvgldemo/CMakeLists.txt b/examples/lvgldemo/CMakeLists.txt new file mode 100644 index 000000000..553cf7047 --- /dev/null +++ b/examples/lvgldemo/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/lvgldemo/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_LVGLDEMO) + nuttx_add_application(NAME lvgldemo) +endif() diff --git a/examples/max31855/CMakeLists.txt b/examples/max31855/CMakeLists.txt new file mode 100644 index 000000000..6a29e2203 --- /dev/null +++ b/examples/max31855/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/max31855/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MAX31855) + nuttx_add_application(NAME max31855) +endif() diff --git a/examples/media/CMakeLists.txt b/examples/media/CMakeLists.txt new file mode 100644 index 000000000..5407c1efe --- /dev/null +++ b/examples/media/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/media/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MEDIA) + nuttx_add_application(NAME media) +endif() diff --git a/examples/mld/CMakeLists.txt b/examples/mld/CMakeLists.txt new file mode 100644 index 000000000..1f5b04051 --- /dev/null +++ b/examples/mld/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/mld/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MLD) + nuttx_add_application(NAME mld) +endif() diff --git a/examples/mlx90614/CMakeLists.txt b/examples/mlx90614/CMakeLists.txt new file mode 100644 index 000000000..38406dd99 --- /dev/null +++ b/examples/mlx90614/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/mlx90614/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MLX90614) + nuttx_add_application(NAME mlx90614) +endif() diff --git a/examples/modbus/CMakeLists.txt b/examples/modbus/CMakeLists.txt new file mode 100644 index 000000000..354ec1ce4 --- /dev/null +++ b/examples/modbus/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/modbus/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MODBUS) + nuttx_add_application(NAME modbus) +endif() diff --git a/examples/module/CMakeLists.txt b/examples/module/CMakeLists.txt new file mode 100644 index 000000000..0b6a68e82 --- /dev/null +++ b/examples/module/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/module/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MODULE) + nuttx_add_application(NAME module) +endif() diff --git a/examples/mount/CMakeLists.txt b/examples/mount/CMakeLists.txt new file mode 100644 index 000000000..748a1ca6c --- /dev/null +++ b/examples/mount/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/examples/mount/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MOUNT) + nuttx_add_application( + NAME + mount + SRCS + mount_main.c + STACKSIZE + ${CONFIG_DEFAULT_TASK_STACKSIZE}) + + target_sources(apps PRIVATE ramdisk.c) +endif() diff --git a/examples/mtdpart/CMakeLists.txt b/examples/mtdpart/CMakeLists.txt new file mode 100644 index 000000000..8d3c295be --- /dev/null +++ b/examples/mtdpart/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/mtdpart/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MTDPART) + nuttx_add_application(NAME mtdpart) +endif() diff --git a/examples/mtdrwb/CMakeLists.txt b/examples/mtdrwb/CMakeLists.txt new file mode 100644 index 000000000..a0a4ace32 --- /dev/null +++ b/examples/mtdrwb/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/mtdrwb/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MTDRWB) + nuttx_add_application(NAME mtdrwb) +endif() diff --git a/examples/netloop/CMakeLists.txt b/examples/netloop/CMakeLists.txt new file mode 100644 index 000000000..0326251bd --- /dev/null +++ b/examples/netloop/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/netloop/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NETLOOP) + nuttx_add_application(NAME netloop) +endif() diff --git a/examples/netpkt/CMakeLists.txt b/examples/netpkt/CMakeLists.txt new file mode 100644 index 000000000..24b91996c --- /dev/null +++ b/examples/netpkt/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/netpkt/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NETPKT) + nuttx_add_application(NAME netpkt) +endif() diff --git a/examples/nettest/CMakeLists.txt b/examples/nettest/CMakeLists.txt new file mode 100644 index 000000000..2bcedfbf3 --- /dev/null +++ b/examples/nettest/CMakeLists.txt @@ -0,0 +1,101 @@ +# ############################################################################## +# apps/examples/nettest/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NETTEST) + + set(CSRCS) + + # Basic TCP networking test + + set(SRCS nettest_cmdline.c) + if(CONFIG_EXAMPLES_NETTEST_INIT) + list(APPEND SRCS nettest_netinit.c) + endif() + + # Target 1 Files + + if(CONFIG_EXAMPLES_NETTEST_LOOPBACK) + list(APPEND SRCS nettest_server.c nettest_client.c) + elseif(CONFIG_EXAMPLES_NETTEST_SERVER) + list(APPEND SRCS nettest_server.c) + else() + list(APPEND SRCS nettest_client.c) + endif() + + # Target 1 Application Info + + nuttx_add_application( + NAME + ${CONFIG_EXAMPLES_NETTEST_PROGNAME1} + SRCS + nettest_target1.c + INCLUDE_DIRECTORIES + ${CMAKE_BINARY_DIR}/include/nuttx + STACKSIZE + ${CONFIG_EXAMPLES_NETTEST_STACKSIZE1} + PRIORITY + ${CONFIG_EXAMPLES_NETTEST_PRIORITY1}) + + # Target 2 + + if(CONFIG_EXAMPLES_NETTEST_TARGET2) + + if(CONFIG_EXAMPLES_NETTEST_SERVER) + list(APPEND SRCS nettest_client.c) + else() + list(APPEND SRCS nettest_server.c) + endif() + + # Target 2 Application Info + + nuttx_add_application( + NAME + ${CONFIG_EXAMPLES_NETTEST_PROGNAME2} + SRCS + nettest_target2.c + INCLUDE_DIRECTORIES + ${CMAKE_BINARY_DIR}/include/nuttx + STACKSIZE + ${CONFIG_EXAMPLES_NETTEST_STACKSIZE2} + PRIORITY + ${CONFIG_EXAMPLES_NETTEST_PRIORITY2}) + + endif() + + target_include_directories(apps PRIVATE ${CMAKE_BINARY_DIR}/include/nuttx) + target_sources(apps PRIVATE ${SRCS}) + + # Host + + if(NOT CONFIG_EXAMPLES_NETTEST_TARGET2 AND NOT + CONFIG_EXAMPLES_NETTEST_LOOPBACK) + ExternalProject_Add( + nettest + SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/host + INSTALL_DIR ${CMAKE_BINARY_DIR}/apps/examples/nettest/host + CMAKE_ARGS + -DNUTTX_DIR=${NUTTX_DIR} -DNUTTX_BINARY_DIR=${CMAKE_BINARY_DIR} + -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/apps/examples/nettest/host + USES_TERMINAL_CONFIGURE true + USES_TERMINAL_BUILD true + USES_TERMINAL_INSTALL true) + endif() + +endif() diff --git a/examples/nettest/host/CMakeLists.txt b/examples/nettest/host/CMakeLists.txt new file mode 100644 index 000000000..625d25639 --- /dev/null +++ b/examples/nettest/host/CMakeLists.txt @@ -0,0 +1,52 @@ +# ############################################################################## +# apps/examples/nettest/host/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## +# Configure project +cmake_minimum_required(VERSION 3.16) +project(nuttx_tools LANGUAGES C) + +set(NUTTX_ACTIVE_DEFCONFIG ${NUTTX_BINARY_DIR}/.config) +include(${NUTTX_DIR}/cmake/kconfig.cmake) + +set(HOST_SRCS ../nettest_host.c) +if(CONFIG_EXAMPLES_NETTEST_SERVER) + set(HOST_TARGET tcpclient) + add_executable(tcpclient ../nettest_client.c ${HOST_SRCS}) + install(TARGETS tcpclient DESTINATION bin) +else() + set(HOST_TARGET tcpserver) + add_executable(tcpserver ../nettest_server.c ${HOST_SRCS}) + install(TARGETS tcpserver DESTINATION bin) +endif() + +target_compile_definitions(${HOST_TARGET} PRIVATE NETTEST_HOST=1) +if(CONFIG_EXAMPLES_NETTEST_SERVER) + target_compile_definitions( + ${HOST_TARGET} + PRIVATE + CONFIG_EXAMPLES_NETTEST_SERVER=1 + CONFIG_EXAMPLES_NETTEST_SERVERIP="${CONFIG_EXAMPLES_NETTEST_SERVERIP}") +endif() +if(CONFIG_EXAMPLES_NETTEST_PERFORMANCE) + target_compile_definitions(${HOST_TARGET} + PRIVATE CONFIG_EXAMPLES_NETTEST_PERFORMANCE=1) +endif() + +target_include_directories(${HOST_TARGET} + PRIVATE ${NUTTX_BINARY_DIR}/include/nuttx) diff --git a/examples/nrf24l01_term/CMakeLists.txt b/examples/nrf24l01_term/CMakeLists.txt new file mode 100644 index 000000000..1fcc3bc83 --- /dev/null +++ b/examples/nrf24l01_term/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/nrf24l01_term/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NRF24L01TERM) + nuttx_add_application(NAME nrf24l01_term) +endif() diff --git a/examples/null/CMakeLists.txt b/examples/null/CMakeLists.txt new file mode 100644 index 000000000..e9a426252 --- /dev/null +++ b/examples/null/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/null/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NULL) + nuttx_add_application(NAME null) +endif() diff --git a/examples/nunchuck/CMakeLists.txt b/examples/nunchuck/CMakeLists.txt new file mode 100644 index 000000000..1fa074076 --- /dev/null +++ b/examples/nunchuck/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/nunchuck/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NUNCHUCK) + nuttx_add_application(NAME nunchuck) +endif() diff --git a/examples/nx/CMakeLists.txt b/examples/nx/CMakeLists.txt new file mode 100644 index 000000000..f66864c7d --- /dev/null +++ b/examples/nx/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/nx/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NX) + nuttx_add_application(NAME nx) +endif() diff --git a/examples/nxdemo/CMakeLists.txt b/examples/nxdemo/CMakeLists.txt new file mode 100644 index 000000000..5c518df87 --- /dev/null +++ b/examples/nxdemo/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/nxdemo/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NXDEMO) + nuttx_add_application(NAME nxdemo) +endif() diff --git a/examples/nxflat/CMakeLists.txt b/examples/nxflat/CMakeLists.txt new file mode 100644 index 000000000..bb3de47a2 --- /dev/null +++ b/examples/nxflat/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/nxflat/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NXFLAT) + nuttx_add_application(NAME nxflat) +endif() diff --git a/examples/nxhello/CMakeLists.txt b/examples/nxhello/CMakeLists.txt new file mode 100644 index 000000000..d40a449d3 --- /dev/null +++ b/examples/nxhello/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/nxhello/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NXHELLO) + nuttx_add_application(NAME nxhello) +endif() diff --git a/examples/nximage/CMakeLists.txt b/examples/nximage/CMakeLists.txt new file mode 100644 index 000000000..ec58ad2d9 --- /dev/null +++ b/examples/nximage/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/nximage/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NXIMAGE) + nuttx_add_application(NAME nximage) +endif() diff --git a/examples/nxlines/CMakeLists.txt b/examples/nxlines/CMakeLists.txt new file mode 100644 index 000000000..3fb35ce7e --- /dev/null +++ b/examples/nxlines/CMakeLists.txt @@ -0,0 +1,24 @@ +# ############################################################################## +# apps/examples/nxlines/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NXLINES) + nuttx_add_application(NAME nxlines SRCS nxlines_bkgd.c nxlines_listener.c + nxlines_main.c) +endif() diff --git a/examples/nxterm/CMakeLists.txt b/examples/nxterm/CMakeLists.txt new file mode 100644 index 000000000..18531455e --- /dev/null +++ b/examples/nxterm/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/nxterm/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NXTERM) + nuttx_add_application(NAME nxterm) +endif() diff --git a/examples/nxtext/CMakeLists.txt b/examples/nxtext/CMakeLists.txt new file mode 100644 index 000000000..a8d18deae --- /dev/null +++ b/examples/nxtext/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/nxtext/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_NXTEXT) + nuttx_add_application(NAME nxtext) +endif() diff --git a/examples/obd2/CMakeLists.txt b/examples/obd2/CMakeLists.txt new file mode 100644 index 000000000..b60df348d --- /dev/null +++ b/examples/obd2/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/obd2/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_OBD2) + nuttx_add_application(NAME obd2) +endif() diff --git a/examples/oneshot/CMakeLists.txt b/examples/oneshot/CMakeLists.txt new file mode 100644 index 000000000..064bd5f57 --- /dev/null +++ b/examples/oneshot/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/oneshot/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_ONESHOT) + nuttx_add_application(NAME oneshot) +endif() diff --git a/examples/pca9635/CMakeLists.txt b/examples/pca9635/CMakeLists.txt new file mode 100644 index 000000000..4ee484a4b --- /dev/null +++ b/examples/pca9635/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/pca9635/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_PCA9635) + nuttx_add_application(NAME pca9635) +endif() diff --git a/examples/pdcurses/CMakeLists.txt b/examples/pdcurses/CMakeLists.txt new file mode 100644 index 000000000..2aafa94e3 --- /dev/null +++ b/examples/pdcurses/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/pdcurses/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_PDCURSES) + nuttx_add_application(NAME pdcurses) +endif() diff --git a/examples/pf_ieee802154/CMakeLists.txt b/examples/pf_ieee802154/CMakeLists.txt new file mode 100644 index 000000000..f8dd0680a --- /dev/null +++ b/examples/pf_ieee802154/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/pf_ieee802154/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_PFIEEE802154) + nuttx_add_application(NAME pf_ieee802154) +endif() diff --git a/examples/pipe/CMakeLists.txt b/examples/pipe/CMakeLists.txt new file mode 100644 index 000000000..6d958e115 --- /dev/null +++ b/examples/pipe/CMakeLists.txt @@ -0,0 +1,24 @@ +# ############################################################################## +# apps/examples/pipe/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_PIPE) + nuttx_add_application(NAME pipe) + +endif() diff --git a/examples/poll/CMakeLists.txt b/examples/poll/CMakeLists.txt new file mode 100644 index 000000000..773093306 --- /dev/null +++ b/examples/poll/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/poll/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_POLL) + nuttx_add_application(NAME poll) +endif() diff --git a/examples/popen/CMakeLists.txt b/examples/popen/CMakeLists.txt new file mode 100644 index 000000000..48409c83c --- /dev/null +++ b/examples/popen/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/popen/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_POPEN) + nuttx_add_application(NAME popen) +endif() diff --git a/examples/posix_spawn/CMakeLists.txt b/examples/posix_spawn/CMakeLists.txt new file mode 100644 index 000000000..f9391d84e --- /dev/null +++ b/examples/posix_spawn/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/posix_spawn/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_POSIXSPAWN) + nuttx_add_application(NAME posix_spawn SRCS spawn_main.c) +endif() diff --git a/examples/powerled/CMakeLists.txt b/examples/powerled/CMakeLists.txt new file mode 100644 index 000000000..7930384d0 --- /dev/null +++ b/examples/powerled/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/powerled/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_POWERLED) + nuttx_add_application(NAME powerled) +endif() diff --git a/examples/powermonitor/CMakeLists.txt b/examples/powermonitor/CMakeLists.txt new file mode 100644 index 000000000..ad4dc7dc1 --- /dev/null +++ b/examples/powermonitor/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/powermonitor/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_POWERMONITOR) + nuttx_add_application(NAME powermonitor) +endif() diff --git a/examples/pppd/CMakeLists.txt b/examples/pppd/CMakeLists.txt new file mode 100644 index 000000000..932ab01cb --- /dev/null +++ b/examples/pppd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/pppd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_PPPD) + nuttx_add_application(NAME pppd) +endif() diff --git a/examples/pty_test/CMakeLists.txt b/examples/pty_test/CMakeLists.txt new file mode 100644 index 000000000..2c1b71f26 --- /dev/null +++ b/examples/pty_test/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/pty_test/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_PTYTEST) + nuttx_add_application(NAME pty_test) +endif() diff --git a/examples/pwm/CMakeLists.txt b/examples/pwm/CMakeLists.txt new file mode 100644 index 000000000..786f98b4d --- /dev/null +++ b/examples/pwm/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/pwm/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_PWM) + nuttx_add_application(NAME pwm) +endif() diff --git a/examples/qencoder/CMakeLists.txt b/examples/qencoder/CMakeLists.txt new file mode 100644 index 000000000..f7b239feb --- /dev/null +++ b/examples/qencoder/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/qencoder/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_QENCODER) + nuttx_add_application(NAME qencoder) +endif() diff --git a/examples/random/CMakeLists.txt b/examples/random/CMakeLists.txt new file mode 100644 index 000000000..3d288abbd --- /dev/null +++ b/examples/random/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/random/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_RANDOM) + nuttx_add_application(NAME random) +endif() diff --git a/examples/relays/CMakeLists.txt b/examples/relays/CMakeLists.txt new file mode 100644 index 000000000..616d1cda0 --- /dev/null +++ b/examples/relays/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/relays/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_RELAYS) + nuttx_add_application(NAME relays) +endif() diff --git a/examples/rfid_readuid/CMakeLists.txt b/examples/rfid_readuid/CMakeLists.txt new file mode 100644 index 000000000..e6e7524be --- /dev/null +++ b/examples/rfid_readuid/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/rfid_readuid/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_RFID_READUID) + nuttx_add_application(NAME rfid_readuid) +endif() diff --git a/examples/rgbled/CMakeLists.txt b/examples/rgbled/CMakeLists.txt new file mode 100644 index 000000000..2e9c879b4 --- /dev/null +++ b/examples/rgbled/CMakeLists.txt @@ -0,0 +1,24 @@ +# ############################################################################## +# apps/examples/rgbled/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_RGBLED) + nuttx_add_application(NAME rgbled SRCS rgbled.c) + +endif() diff --git a/examples/romfs/CMakeLists.txt b/examples/romfs/CMakeLists.txt new file mode 100644 index 000000000..d09398011 --- /dev/null +++ b/examples/romfs/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/romfs/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_ROMFS) + nuttx_add_application(NAME romfs) +endif() diff --git a/examples/sendmail/CMakeLists.txt b/examples/sendmail/CMakeLists.txt new file mode 100644 index 000000000..432952d74 --- /dev/null +++ b/examples/sendmail/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/sendmail/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_SENDMAIL) + nuttx_add_application(NAME sendmail) +endif() diff --git a/examples/serialblaster/CMakeLists.txt b/examples/serialblaster/CMakeLists.txt new file mode 100644 index 000000000..565642d10 --- /dev/null +++ b/examples/serialblaster/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/serialblaster/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_SERIALBLASTER) + nuttx_add_application(NAME serialblaster) +endif() diff --git a/examples/serialrx/CMakeLists.txt b/examples/serialrx/CMakeLists.txt new file mode 100644 index 000000000..70a3d1307 --- /dev/null +++ b/examples/serialrx/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/serialrx/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_SERIALRX) + nuttx_add_application(NAME serialrx) +endif() diff --git a/examples/serloop/CMakeLists.txt b/examples/serloop/CMakeLists.txt new file mode 100644 index 000000000..83416558d --- /dev/null +++ b/examples/serloop/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/serloop/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_SERLOOP) + nuttx_add_application(NAME serloop) +endif() diff --git a/examples/slcd/CMakeLists.txt b/examples/slcd/CMakeLists.txt new file mode 100644 index 000000000..0c465e393 --- /dev/null +++ b/examples/slcd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/slcd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_SLCD) + nuttx_add_application(NAME slcd) +endif() diff --git a/examples/smps/CMakeLists.txt b/examples/smps/CMakeLists.txt new file mode 100644 index 000000000..e08084eff --- /dev/null +++ b/examples/smps/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/smps/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_SMPS) + nuttx_add_application(NAME smps) +endif() diff --git a/examples/sotest/CMakeLists.txt b/examples/sotest/CMakeLists.txt new file mode 100644 index 000000000..f677d8d8b --- /dev/null +++ b/examples/sotest/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/sotest/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_SOTEST) + nuttx_add_application(NAME sotest) +endif() diff --git a/examples/stat/CMakeLists.txt b/examples/stat/CMakeLists.txt new file mode 100644 index 000000000..fa5a98f72 --- /dev/null +++ b/examples/stat/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/stat/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_STAT) + nuttx_add_application(NAME stat) +endif() diff --git a/examples/system/CMakeLists.txt b/examples/system/CMakeLists.txt new file mode 100644 index 000000000..d0933e8db --- /dev/null +++ b/examples/system/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/system/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_SYSTEM) + nuttx_add_application(NAME system) +endif() diff --git a/examples/tcpblaster/CMakeLists.txt b/examples/tcpblaster/CMakeLists.txt new file mode 100644 index 000000000..38eed358a --- /dev/null +++ b/examples/tcpblaster/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/tcpblaster/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_TCPBLASTER) + nuttx_add_application(NAME tcpblaster) +endif() diff --git a/examples/tcpecho/CMakeLists.txt b/examples/tcpecho/CMakeLists.txt new file mode 100644 index 000000000..7e4ebb54f --- /dev/null +++ b/examples/tcpecho/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/tcpecho/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_TCPECHO) + nuttx_add_application(NAME tcpecho) +endif() diff --git a/examples/telnetd/CMakeLists.txt b/examples/telnetd/CMakeLists.txt new file mode 100644 index 000000000..803f55125 --- /dev/null +++ b/examples/telnetd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/telnetd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_TELNETD) + nuttx_add_application(NAME telnetd SRCS telnetd.c) +endif() diff --git a/examples/thttpd/CMakeLists.txt b/examples/thttpd/CMakeLists.txt new file mode 100644 index 000000000..4150f1110 --- /dev/null +++ b/examples/thttpd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/thttpd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_THTTPD) + nuttx_add_application(NAME thttpd) +endif() diff --git a/examples/tiff/CMakeLists.txt b/examples/tiff/CMakeLists.txt new file mode 100644 index 000000000..845c68f9e --- /dev/null +++ b/examples/tiff/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/tiff/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_TIFF) + nuttx_add_application(NAME tiff) +endif() diff --git a/examples/timer/CMakeLists.txt b/examples/timer/CMakeLists.txt new file mode 100644 index 000000000..8a79ac603 --- /dev/null +++ b/examples/timer/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/timer/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_TIMER) + nuttx_add_application(NAME timer) +endif() diff --git a/examples/touchscreen/CMakeLists.txt b/examples/touchscreen/CMakeLists.txt new file mode 100644 index 000000000..be9e99784 --- /dev/null +++ b/examples/touchscreen/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/touchscreen/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_TOUCHSCREEN) + nuttx_add_application(NAME touchscreen) +endif() diff --git a/examples/udgram/CMakeLists.txt b/examples/udgram/CMakeLists.txt new file mode 100644 index 000000000..57f4a008d --- /dev/null +++ b/examples/udgram/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/udgram/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_UDGRAM) + nuttx_add_application(NAME udgram) +endif() diff --git a/examples/udp/CMakeLists.txt b/examples/udp/CMakeLists.txt new file mode 100644 index 000000000..d5030a05c --- /dev/null +++ b/examples/udp/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/udp/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_UDP) + nuttx_add_application(NAME udp) +endif() diff --git a/examples/udpblaster/CMakeLists.txt b/examples/udpblaster/CMakeLists.txt new file mode 100644 index 000000000..e7f65f77d --- /dev/null +++ b/examples/udpblaster/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/udpblaster/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_UDPBLASTER) + nuttx_add_application(NAME udpblaster) +endif() diff --git a/examples/unionfs/CMakeLists.txt b/examples/unionfs/CMakeLists.txt new file mode 100644 index 000000000..65b0f955f --- /dev/null +++ b/examples/unionfs/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/unionfs/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_UNIONFS) + nuttx_add_application(NAME unionfs) +endif() diff --git a/examples/usbserial/CMakeLists.txt b/examples/usbserial/CMakeLists.txt new file mode 100644 index 000000000..83625e324 --- /dev/null +++ b/examples/usbserial/CMakeLists.txt @@ -0,0 +1,30 @@ +# ############################################################################## +# apps/examples/usbserial/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_USBSERIAL) + nuttx_add_application( + NAME + usbserial + STACKSIZE + 2048 + SRCS + host.c + usbserial_main.c) +endif() diff --git a/examples/userfs/CMakeLists.txt b/examples/userfs/CMakeLists.txt new file mode 100644 index 000000000..f49647e56 --- /dev/null +++ b/examples/userfs/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/userfs/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_USERFS) + nuttx_add_application(NAME userfs) +endif() diff --git a/examples/usrsocktest/CMakeLists.txt b/examples/usrsocktest/CMakeLists.txt new file mode 100644 index 000000000..0b1690818 --- /dev/null +++ b/examples/usrsocktest/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/usrsocktest/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_USRSOCKTEST) + nuttx_add_application(NAME usrsocktest) +endif() diff --git a/examples/ustream/CMakeLists.txt b/examples/ustream/CMakeLists.txt new file mode 100644 index 000000000..c1bb2a990 --- /dev/null +++ b/examples/ustream/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/ustream/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_USTREAM) + nuttx_add_application(NAME ustream) +endif() diff --git a/examples/veml6070/CMakeLists.txt b/examples/veml6070/CMakeLists.txt new file mode 100644 index 000000000..20eb26e7a --- /dev/null +++ b/examples/veml6070/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/veml6070/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_VEML6070) + nuttx_add_application(NAME veml6070) +endif() diff --git a/examples/watchdog/CMakeLists.txt b/examples/watchdog/CMakeLists.txt new file mode 100644 index 000000000..446547dfd --- /dev/null +++ b/examples/watchdog/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/watchdog/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_WATCHDOG) + nuttx_add_application(NAME watchdog) +endif() diff --git a/examples/webserver/CMakeLists.txt b/examples/webserver/CMakeLists.txt new file mode 100644 index 000000000..ea4d3999a --- /dev/null +++ b/examples/webserver/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/webserver/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_WEBSERVER) + nuttx_add_application(NAME webserver) +endif() diff --git a/examples/wget/CMakeLists.txt b/examples/wget/CMakeLists.txt new file mode 100644 index 000000000..ecf6a84de --- /dev/null +++ b/examples/wget/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/wget/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_WGET) + nuttx_add_application(NAME wget SRCS wget_main.c) +endif() diff --git a/examples/wgetjson/CMakeLists.txt b/examples/wgetjson/CMakeLists.txt new file mode 100644 index 000000000..29b5e2937 --- /dev/null +++ b/examples/wgetjson/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/wgetjson/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_WGETJSON) + nuttx_add_application(NAME wgetjson) +endif() diff --git a/examples/xbc_test/CMakeLists.txt b/examples/xbc_test/CMakeLists.txt new file mode 100644 index 000000000..490616e7e --- /dev/null +++ b/examples/xbc_test/CMakeLists.txt @@ -0,0 +1,27 @@ +# ############################################################################## +# apps/examples/xbc_test/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +# POSSIBILITY OF SUCH DAMAGE. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_XBC_TEST) + nuttx_add_application(NAME xbc_test) +endif() diff --git a/examples/xmlrpc/CMakeLists.txt b/examples/xmlrpc/CMakeLists.txt new file mode 100644 index 000000000..ad136723e --- /dev/null +++ b/examples/xmlrpc/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/xmlrpc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_XMLRPC) + nuttx_add_application(NAME xmlrpc) +endif() diff --git a/examples/zerocross/CMakeLists.txt b/examples/zerocross/CMakeLists.txt new file mode 100644 index 000000000..dbe61a31c --- /dev/null +++ b/examples/zerocross/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/examples/zerocross/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_ZEROCROSS) + nuttx_add_application(NAME zerocross) +endif() diff --git a/fsutils/CMakeLists.txt b/fsutils/CMakeLists.txt new file mode 100644 index 000000000..1377e9f4e --- /dev/null +++ b/fsutils/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/fsutils/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_add_subdirectory() + +nuttx_generate_kconfig(MENUDESC "File System Utilities") diff --git a/fsutils/flash_eraseall/CMakeLists.txt b/fsutils/flash_eraseall/CMakeLists.txt new file mode 100644 index 000000000..89b40fc47 --- /dev/null +++ b/fsutils/flash_eraseall/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/fsutils/flash_eraseall/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_FSUTILS_FLASH_ERASEALL) + nuttx_add_application(NAME flash_eraseall SRCS flash_eraseall.c) +endif() diff --git a/fsutils/inifile/CMakeLists.txt b/fsutils/inifile/CMakeLists.txt new file mode 100644 index 000000000..80bb4a80e --- /dev/null +++ b/fsutils/inifile/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/fsutils/inifile/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_FSUTILS_INIFILE) + nuttx_add_application(NAME inifile SRCS inifile.c) +endif() diff --git a/fsutils/mkfatfs/CMakeLists.txt b/fsutils/mkfatfs/CMakeLists.txt new file mode 100644 index 000000000..b910f7797 --- /dev/null +++ b/fsutils/mkfatfs/CMakeLists.txt @@ -0,0 +1,29 @@ +# ############################################################################## +# apps/fsutils/mkfatfs/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_FSUTILS_MKFATFS) + set(SRCS) + + include_directories(${CMAKE_CURRENT_BINARY_DIR}) + + list(APPEND SRCS mkfatfs.c configfat.c writefat.c) + + target_sources(apps PRIVATE ${SRCS}) +endif() diff --git a/fsutils/mksmartfs/CMakeLists.txt b/fsutils/mksmartfs/CMakeLists.txt new file mode 100644 index 000000000..6dd7b6bfc --- /dev/null +++ b/fsutils/mksmartfs/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/fsutils/mksmartfs/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_FSUTILS_MKSMARTFS) + nuttx_add_application(NAME mksmartfs SRCS mksmartfs.c) +endif() diff --git a/fsutils/passwd/CMakeLists.txt b/fsutils/passwd/CMakeLists.txt new file mode 100644 index 000000000..8622499ee --- /dev/null +++ b/fsutils/passwd/CMakeLists.txt @@ -0,0 +1,41 @@ +# ############################################################################## +# apps/fsutils/passwd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_FSUTILS_PASSWD) + set(CSRCS) + + list(APPEND CSRCS passwd_verify.c passwd_find.c passwd_encrypt.c) + + if(NOT CONFIG_FSUTILS_PASSWD_READONLY) + list( + APPEND + CSRCS + passwd_adduser.c + passwd_deluser.c + passwd_update.c + passwd_append.c + passwd_delete.c + passwd_lock.c) + endif() + + set_property(GLOBAL APPEND PROPERTY NUTTX_APPS_LIBRARIES ${TARGET}) + target_sources(apps PRIVATE ${CSRCS}) + +endif() diff --git a/games/CMakeLists.txt b/games/CMakeLists.txt new file mode 100644 index 000000000..90ee40fd3 --- /dev/null +++ b/games/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/games/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "Games") diff --git a/gpsutils/CMakeLists.txt b/gpsutils/CMakeLists.txt new file mode 100644 index 000000000..9c321c3d2 --- /dev/null +++ b/gpsutils/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/gpsutils/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "GPS Utilities") diff --git a/graphics/CMakeLists.txt b/graphics/CMakeLists.txt new file mode 100644 index 000000000..8d8f186d1 --- /dev/null +++ b/graphics/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/graphics/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "Graphics Support") diff --git a/industry/CMakeLists.txt b/industry/CMakeLists.txt new file mode 100644 index 000000000..695c6dd3f --- /dev/null +++ b/industry/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/industry/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "Industrial Applications") diff --git a/interpreters/CMakeLists.txt b/interpreters/CMakeLists.txt new file mode 100644 index 000000000..f48cce189 --- /dev/null +++ b/interpreters/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/interpreters/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "Interpreters") diff --git a/math/CMakeLists.txt b/math/CMakeLists.txt new file mode 100644 index 000000000..af5dff9a4 --- /dev/null +++ b/math/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/math/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "Math Library Support") diff --git a/mlearning/CMakeLists.txt b/mlearning/CMakeLists.txt new file mode 100644 index 000000000..fcc400cd6 --- /dev/null +++ b/mlearning/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# apps/mlearning/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_generate_kconfig(MENUDESC "Machine Learning Support") diff --git a/modbus/CMakeLists.txt b/modbus/CMakeLists.txt new file mode 100644 index 000000000..27acd1fbe --- /dev/null +++ b/modbus/CMakeLists.txt @@ -0,0 +1,114 @@ +# ############################################################################## +# apps/modbus/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +# ############################################################################## +# apps/modbus/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_MODBUS) + + set(CSRCS) + + if(CONFIG_MODBUS_SLAVE) + list(APPEND CSRCS mb.c) + endif() + + if(CONFIG_MB_RTU_MASTER) + list(APPEND CSRCS mb_m.c) + endif() + + # ascii/Make.defs + + if(CONFIG_MB_ASCII_ENABLED) + list(APPEND CSRCS ascii/mbascii.c) + endif() + + # functions/Make.defs + + list( + APPEND + CSRCS + functions/mbfunccoils.c + functions/mbfuncdiag.c + functions/mbfuncdisc.c + functions/mbfuncholding.c + functions/mbfuncinput.c + functions/mbfuncother.c + functions/mbutils.c) + + if(CONFIG_MB_ASCII_MASTER) + list(APPEND CSRCS functions/mbfunccoils_m.c functions/mbfuncdisc_m.c + functions/mbfuncholding_m.c functions/mbfuncinput_m.c) + elseif(CONFIG_MB_RTU_MASTER) + list(APPEND CSRCS functions/mbfunccoils_m.c functions/mbfuncdisc_m.c + functions/mbfuncholding_m.c functions/mbfuncinput_m.c) + endif() + + # nuttx/Make.defs + + list(APPEND CSRCS nuttx/portother.c) + + if(CONFIG_MODBUS_SLAVE) + list(APPEND CSRCS nuttx/portevent.c nuttx/portserial.c nuttx/porttimer.c) + endif() + + if(CONFIG_MB_RTU_MASTER) + list(APPEND CSRCS nuttx/portother_m.c nuttx/portserial_m.c + nuttx/porttimer_m.c nuttx/portevent_m.c) + endif() + + # rtu/Make.defs + + if(CONFIG_MB_RTU_ENABLED OR CONFIG_MB_RTU_MASTER) + list(APPEND rtu/mbcrc.c) + if(CONFIG_MB_RTU_ENABLED) + list(APPEND rtu/mbrtu.c) + endif() + + if(CONFIG_MB_RTU_MASTER) + list(APPEND rtu/mbrtu_m.c) + endif() + endif() + + # tcp/Make.defs + + if(CONFIG_MB_TCP_ENABLED) + list(APPEND tcp/mbtcp.c) + endif() + + target_sources(apps PRIVATE ${CSRCS}) + +endif() diff --git a/netutils/CMakeLists.txt b/netutils/CMakeLists.txt new file mode 100644 index 000000000..62601fd7e --- /dev/null +++ b/netutils/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_add_subdirectory() + +nuttx_generate_kconfig(MENUDESC "Network Utilities") diff --git a/netutils/chat/CMakeLists.txt b/netutils/chat/CMakeLists.txt new file mode 100644 index 000000000..66a4f7348 --- /dev/null +++ b/netutils/chat/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/chat/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_CHAT) + target_sources(apps PRIVATE chat.c) +endif() diff --git a/netutils/cjson/CMakeLists.txt b/netutils/cjson/CMakeLists.txt new file mode 100644 index 000000000..0261b694c --- /dev/null +++ b/netutils/cjson/CMakeLists.txt @@ -0,0 +1,70 @@ +# ############################################################################## +# apps/netutils/cjson/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_CJSON) + + if(NOT CONFIG_NETUTILS_CJSON_URL) + set(CONFIG_NETUTILS_CJSON_URL "https://github.com/DaveGamble/cJSON/archive") + endif() + + if(NOT CONFIG_NETUTILS_CJSON_VERSION) + set(CONFIG_NETUTILS_CJSON_VERSION "1.7.10") + endif() + + if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/cJSON) + FetchContent_Declare( + cJSON + DOWNLOAD_NAME "v${CONFIG_NETUTILS_CJSON_VERSION}.tar.gz" + DOWNLOAD_DIR ${CMAKE_CURRENT_LIST_DIR} + URL "${CONFIG_NETUTILS_CJSON_URL}/v${CONFIG_NETUTILS_CJSON_VERSION}.tar.gz" + SOURCE_DIR + ${CMAKE_CURRENT_LIST_DIR}/cJSON + BINARY_DIR + ${CMAKE_BINARY_DIR}/apps/netutils/cjson/cJSON + CONFIGURE_COMMAND + "" + BUILD_COMMAND + "" + INSTALL_COMMAND + "" + TEST_COMMAND + "" + DOWNLOAD_NO_PROGRESS true + TIMEOUT 30) + + FetchContent_GetProperties(cJSON) + + if(NOT cJSON_POPULATED) + FetchContent_Populate(cJSON) + endif() + endif() + + if(NOT EXISTS ${CMAKE_BINARY_DIR}/apps/include/netutils/cJSON.h + OR NOT EXISTS ${CMAKE_BINARY_DIR}/apps/include/netutils/cJSON_Utils.h) + file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/apps/include/netutils) + file(CREATE_LINK ${CMAKE_CURRENT_LIST_DIR}/cJSON/cJSON.h + ${CMAKE_BINARY_DIR}/apps/include/netutils/cJSON.h SYMBOLIC) + file(CREATE_LINK ${CMAKE_CURRENT_LIST_DIR}/cJSON/cJSON_Utils.h + ${CMAKE_BINARY_DIR}/apps/include/netutils/cJSON_Utils.h SYMBOLIC) + endif() + + target_sources(apps PRIVATE cJSON/cJSON.c cJSON/cJSON_Utils.c) + +endif() diff --git a/netutils/codecs/CMakeLists.txt b/netutils/codecs/CMakeLists.txt new file mode 100644 index 000000000..d4ae752be --- /dev/null +++ b/netutils/codecs/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/codecs/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_CODECS) + target_sources(apps PRIVATE urldecode.c base64.c md5.c) +endif() diff --git a/netutils/dhcp6c/CMakeLists.txt b/netutils/dhcp6c/CMakeLists.txt new file mode 100644 index 000000000..6ded1078b --- /dev/null +++ b/netutils/dhcp6c/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/dhcp6c/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_DHCP6C) + target_sources(apps PRIVATE dhcp6c.c) +endif() diff --git a/netutils/dhcpc/CMakeLists.txt b/netutils/dhcpc/CMakeLists.txt new file mode 100644 index 000000000..3fdea80c2 --- /dev/null +++ b/netutils/dhcpc/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/dhcpc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_DHCPC) + target_sources(apps PRIVATE dhcpc.c) +endif() diff --git a/netutils/dhcpd/CMakeLists.txt b/netutils/dhcpd/CMakeLists.txt new file mode 100644 index 000000000..ab53fa881 --- /dev/null +++ b/netutils/dhcpd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/dhcpd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_DHCPD AND CONFIG_NET_UDP) + target_sources(apps PRIVATE dhcpd.c) +endif() diff --git a/netutils/discover/CMakeLists.txt b/netutils/discover/CMakeLists.txt new file mode 100644 index 000000000..040744fca --- /dev/null +++ b/netutils/discover/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/discover/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_DISCOVER) + target_sources(apps PRIVATE discover.c) +endif() diff --git a/netutils/esp8266/CMakeLists.txt b/netutils/esp8266/CMakeLists.txt new file mode 100644 index 000000000..9ed0bbfe5 --- /dev/null +++ b/netutils/esp8266/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/esp8266/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_ESP8266) + target_sources(apps PRIVATE esp8266.c) +endif() diff --git a/netutils/ftpc/CMakeLists.txt b/netutils/ftpc/CMakeLists.txt new file mode 100644 index 000000000..290f71310 --- /dev/null +++ b/netutils/ftpc/CMakeLists.txt @@ -0,0 +1,64 @@ +# ############################################################################## +# apps/netutils/ftpc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_FTPC) + set(CSRCS) + + # FTP connection management + + list(APPEND CSRCS ftpc_connect.c ftpc_disconnect.c) + + # FTP commands + + list( + APPEND + CSRCS + ftpc_cdup.c + ftpc_chdir.c + ftpc_chmod.c + ftpc_filesize.c + ftpc_filetime.c + ftpc_help.c + ftpc_idle.c + ftpc_listdir.c + ftpc_login.c + ftpc_mkdir.c + ftpc_noop.c + ftpc_rpwd.c + ftpc_quit.c + ftpc_rename.c + ftpc_rmdir.c + ftpc_unlink.c + ftpc_cmd.c) + + # FTP transfers + + list(APPEND CSRCS ftpc_getfile.c ftpc_putfile.c ftpc_transfer.c) + + # FTP responses + + list(APPEND CSRCS ftpc_response.c ftpc_getreply.c) + + # FTP helpers + list(APPEND CSRCS ftpc_utils.c ftpc_socket.c) + + target_sources(apps PRIVATE ${CSRCS}) + +endif() diff --git a/netutils/ftpd/CMakeLists.txt b/netutils/ftpd/CMakeLists.txt new file mode 100644 index 000000000..a75bc2ff0 --- /dev/null +++ b/netutils/ftpd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/ftpd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_FTPD) + target_sources(apps PRIVATE ftpd.c) +endif() diff --git a/netutils/iperf/CMakeLists.txt b/netutils/iperf/CMakeLists.txt new file mode 100644 index 000000000..9272b718a --- /dev/null +++ b/netutils/iperf/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/iperf/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_IPERF) + nuttx_add_application(NAME iperf SRCS iperf_main.c iperf.c) +endif() diff --git a/netutils/libcurl4nx/CMakeLists.txt b/netutils/libcurl4nx/CMakeLists.txt new file mode 100644 index 000000000..7fbf76158 --- /dev/null +++ b/netutils/libcurl4nx/CMakeLists.txt @@ -0,0 +1,33 @@ +# ############################################################################## +# apps/netutils/libcurl4nx/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_LIBCURL4NX) + target_sources( + apps + PRIVATE curl4nx_easy_init.c + curl4nx_easy_cleanup.c + curl4nx_easy_reset.c + curl4nx_easy_duphandle.c + curl4nx_easy_escape.c + curl4nx_easy_unescape.c + curl4nx_easy_setopt.c + curl4nx_easy_perform.c + curl4nx_easy_getinfo.c) +endif() diff --git a/netutils/netcat/CMakeLists.txt b/netutils/netcat/CMakeLists.txt new file mode 100644 index 000000000..9efd88512 --- /dev/null +++ b/netutils/netcat/CMakeLists.txt @@ -0,0 +1,24 @@ +# ############################################################################## +# apps/netutils/netcat/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_NETCAT) + nuttx_add_application(NAME ${CONFIG_NETUTILS_NETCAT_PROGNAME} SRCS + netcat_main.c) +endif() diff --git a/netutils/netinit/CMakeLists.txt b/netutils/netinit/CMakeLists.txt new file mode 100644 index 000000000..899a6ebf8 --- /dev/null +++ b/netutils/netinit/CMakeLists.txt @@ -0,0 +1,30 @@ +# ############################################################################## +# apps/netutils/netinit/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_NETINIT) + set(CSRCS) + list(APPEND CSRCS netinit.c) + + if(CONFIG_WIRELESS_WAPI AND NOT CONFIG_NETINIT_NETLOCAL) + list(APPEND CSRCS netinit_associate.c) + endif() + + target_sources(apps PRIVATE ${CSRCS}) +endif() diff --git a/netutils/netlib/CMakeLists.txt b/netutils/netlib/CMakeLists.txt new file mode 100644 index 000000000..5ae551d6f --- /dev/null +++ b/netutils/netlib/CMakeLists.txt @@ -0,0 +1,129 @@ +# ############################################################################## +# apps/netutils/netlib/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_NETLIB) + + # Network Library + + set(SRCS netlib_ipv4addrconv.c netlib_ethaddrconv.c netlib_parsehttpurl.c) + list(APPEND SRCS netlib_setifstatus.c netlib_getifstatus.c) + + # Generic URL parsing support + + if(CONFIG_NETUTILS_NETLIB_GENERICURLPARSER) + list(APPEND SRCS netlib_parseurl.c) + endif() + + # IP address support + + if(CONFIG_NET_IPv4) + list(APPEND SRCS netlib_setipv4addr.c netlib_getipv4addr.c) + list(APPEND SRCS netlib_setdripv4addr.c netlib_setipv4netmask.c) + list(APPEND SRCS netlib_getdripv4addr.c netlib_getipv4netmask.c) + list(APPEND SRCS netlib_ipv4adaptor.c) + if(CONFIG_NET_ARP) + list(APPEND SRCS netlib_getarp.c netlib_setarp.c netlib_delarp.c) + if(CONFIG_NETLINK_ROUTE) + list(APPEND SRCS netlib_getarptab.c) + endif() + endif() + if(CONFIG_NETDB_DNSCLIENT) + list(APPEND SRCS netlib_setipv4dnsaddr.c) + endif() + if(CONFIG_NET_ROUTE) + list(APPEND SRCS netlib_ipv4route.c netlib_ipv4router.c) + endif() + if(CONFIG_NET_IPTABLES) + list(APPEND SRCS netlib_iptables.c) + endif() + endif() + + if(CONFIG_NET_IPv6) + list(APPEND SRCS netlib_setipv6addr.c netlib_getipv6addr.c) + list(APPEND SRCS netlib_setdripv6addr.c netlib_setipv6netmask.c) + list(APPEND SRCS netlib_prefix2ipv6netmask.c netlib_ipv6netmask2prefix.c) + list(APPEND SRCS netlib_ipv6adaptor.c) + if(CONFIG_NET_ICMPv6_AUTOCONF) + list(APPEND SRCS netlib_autoconfig.c) + endif() + if(CONFIG_NETDB_DNSCLIENT) + list(APPEND SRCS netlib_setipv6dnsaddr.c) + endif() + if(CONFIG_NET_ROUTE) + list(APPEND SRCS netlib_ipv6route.c netlib_ipv6router.c) + endif() + if(CONFIG_NETLINK_ROUTE) + list(APPEND SRCS netlib_getnbtab.c) + endif() + endif() + + # Device support + + if(CONFIG_NETLINK_ROUTE) + list(APPEND SRCS netlib_getdevs.c) + if(CONFIG_NET_ROUTE) + list(APPEND SRCS netlib_getroute.c) + endif() + endif() + + # These require TCP support + + if(CONFIG_NET_TCP) + if(CONFIG_NET_IPv4) # Not yet available for IPv6 + list(APPEND SRCS netlib_server.c netlib_listenon.c) + endif() + endif() + + # These require wireless IOCTL support */ + + if(CONFIG_NETDEV_WIRELESS_IOCTL) + list(APPEND SRCS netlib_getessid.c netlib_setessid.c) + endif() + + # MAC address support(Ethernet and 6LoWPAN only) + + if(CONFIG_NET_ETHERNET) + list(APPEND SRCS netlib_setmacaddr.c netlib_getmacaddr.c) + endif() + + list(APPEND SRCS netlib_setmtu.c) + + if(CONFIG_WIRELESS_IEEE802154) + list(APPEND SRCS netlib_seteaddr.c netlib_getpanid.c netlib_saddrconv.c + netlib_eaddrconv.c) + endif() + + if(CONFIG_WIRELESS_PKTRADIO) + list(APPEND SRCS netlib_getproperties.c netlib_getnodeaddr.c + netlib_setnodeaddr.c) + list(APPEND SRCS netlib_nodeaddrconv.c) + endif() + + # IGMP support + + if(CONFIG_NET_IGMP) + if(CONFIG_NET_IPv4) # Not yet available for IPv6 + list(APPEND SRCS netlib_ipmsfilter.c) + endif() + endif() + + target_sources(apps PRIVATE ${SRCS}) + +endif() diff --git a/netutils/ntpclient/CMakeLists.txt b/netutils/ntpclient/CMakeLists.txt new file mode 100644 index 000000000..df273e02e --- /dev/null +++ b/netutils/ntpclient/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/ntpclient/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_NTPCLIENT) + target_sources(apps PRIVATE ntpclient.c) +endif() diff --git a/netutils/ping/CMakeLists.txt b/netutils/ping/CMakeLists.txt new file mode 100644 index 000000000..e250aaa97 --- /dev/null +++ b/netutils/ping/CMakeLists.txt @@ -0,0 +1,27 @@ +# ############################################################################## +# apps/netutils/ping/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_PING) + target_sources(apps PRIVATE icmp_ping.c) +endif() + +if(CONFIG_NETUTILS_PING6) + target_sources(apps PRIVATE icmpv6_ping.c) +endif() diff --git a/netutils/pppd/CMakeLists.txt b/netutils/pppd/CMakeLists.txt new file mode 100644 index 000000000..5d160b289 --- /dev/null +++ b/netutils/pppd/CMakeLists.txt @@ -0,0 +1,37 @@ +# ############################################################################## +# apps/netutils/pppd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_PPPD) + set(CSRCS) + + list( + APPEND + CSRCS + pppd.c + ppp.c + ahdlc.c + lcp.c + ipcp.c) + if(CONFIG_NETUTILS_PPPD_PAP) + list(APPEND CSRCS pap.c) + endif() + + target_sources(apps PRIVATE ${CSRCS}) +endif() diff --git a/netutils/rexec/CMakeLists.txt b/netutils/rexec/CMakeLists.txt new file mode 100644 index 000000000..ee95badb9 --- /dev/null +++ b/netutils/rexec/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/rexec/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_REXEC) + nuttx_add_application(NAME rexec SRCS rexec.c) +endif() diff --git a/netutils/rexecd/CMakeLists.txt b/netutils/rexecd/CMakeLists.txt new file mode 100644 index 000000000..1e37e9ace --- /dev/null +++ b/netutils/rexecd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/rexecd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_REXECD) + nuttx_add_application(NAME rexecd SRCS rexecd.c) +endif() diff --git a/netutils/smtp/CMakeLists.txt b/netutils/smtp/CMakeLists.txt new file mode 100644 index 000000000..680d8336f --- /dev/null +++ b/netutils/smtp/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/smtp/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_SMTP) + target_sources(apps PRIVATE smtp.c) +endif() diff --git a/netutils/telnetc/CMakeLists.txt b/netutils/telnetc/CMakeLists.txt new file mode 100644 index 000000000..1f24a3b05 --- /dev/null +++ b/netutils/telnetc/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/telnetc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_TELNETC) + target_sources(apps PRIVATE telnetc.c) +endif() diff --git a/netutils/telnetd/CMakeLists.txt b/netutils/telnetd/CMakeLists.txt new file mode 100644 index 000000000..e46969021 --- /dev/null +++ b/netutils/telnetd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/telnetd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_TELNETD) + target_sources(apps PRIVATE telnetd_daemon.c) +endif() diff --git a/netutils/tftpc/CMakeLists.txt b/netutils/tftpc/CMakeLists.txt new file mode 100644 index 000000000..f0eaee92a --- /dev/null +++ b/netutils/tftpc/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/tftpc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_TFTPC AND CONFIG_NET_UDP) + target_sources(apps PRIVATE tftpc_get.c tftpc_put.c tftpc_packets.c) +endif() diff --git a/netutils/thttpd/CMakeLists.txt b/netutils/thttpd/CMakeLists.txt new file mode 100644 index 000000000..d7da13a19 --- /dev/null +++ b/netutils/thttpd/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/thttpd/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_THTTPD) + nuttx_add_application(NAME thttpd) +endif() diff --git a/netutils/usrsock_rpmsg/CMakeLists.txt b/netutils/usrsock_rpmsg/CMakeLists.txt new file mode 100644 index 000000000..3451c4f51 --- /dev/null +++ b/netutils/usrsock_rpmsg/CMakeLists.txt @@ -0,0 +1,27 @@ +# ############################################################################## +# apps/netutils/usrsock_rpmsg/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_USRSOCK_RPMSG) + if(CONFIG_NET_USRSOCK) + nuttx_add_application(NAME usrsock SRCS usrsock_rpmsg_client.c) + else() + nuttx_add_application(NAME usrsock SRCS usrsock_rpmsg_server.c) + endif() +endif() diff --git a/netutils/wakeonlan/CMakeLists.txt b/netutils/wakeonlan/CMakeLists.txt new file mode 100644 index 000000000..b773dd3ef --- /dev/null +++ b/netutils/wakeonlan/CMakeLists.txt @@ -0,0 +1,24 @@ +# ############################################################################## +# apps/netutils/wakeonlan/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_WAKEONLAN) + nuttx_add_application(NAME ${CONFIG_NETUTILS_WAKEONLAN_PROGNAME} SRCS + wol_main.c) +endif() diff --git a/netutils/webclient/CMakeLists.txt b/netutils/webclient/CMakeLists.txt new file mode 100644 index 000000000..2c0904217 --- /dev/null +++ b/netutils/webclient/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/webclient/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_WEBCLIENT AND CONFIG_NET_TCP) + target_sources(apps PRIVATE webclient.c) +endif() diff --git a/netutils/webserver/CMakeLists.txt b/netutils/webserver/CMakeLists.txt new file mode 100644 index 000000000..1d76e6592 --- /dev/null +++ b/netutils/webserver/CMakeLists.txt @@ -0,0 +1,42 @@ +# ############################################################################## +# apps/netutils/webserver/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_WEBSERVER) + + set(CSRCS) + + # Web server library + + if(CONFIG_NET_TCP) + list(APPEND CSRCS httpd.c httpd_cgi.c) + if(CONFIG_NETUTILS_HTTPD_SENDFILE) + list(APPEND CSRCS httpd_sendfile.c) + if(CONFIG_NETUTILS_HTTPD_DIRLIST) + list(APPEND CSRCS httpd_dirlist.c) + endif() + elseif(CONFIG_NETUTILS_HTTPD_MMAP) + list(APPEND CSRCS httpd_mmap.c) + else() + list(APPEND CSRCS httpd_fs.c) + endif() + endif() + + target_sources(apps PRIVATE ${CSRCS}) +endif() diff --git a/netutils/xmlrpc/CMakeLists.txt b/netutils/xmlrpc/CMakeLists.txt new file mode 100644 index 000000000..f17396c07 --- /dev/null +++ b/netutils/xmlrpc/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/netutils/xmlrpc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NETUTILS_XMLRPC) + target_sources(apps PRIVATE xmlparser.c response.c) +endif() diff --git a/nshlib/CMakeLists.txt b/nshlib/CMakeLists.txt new file mode 100644 index 000000000..00b2e99b8 --- /dev/null +++ b/nshlib/CMakeLists.txt @@ -0,0 +1,130 @@ +# ############################################################################## +# apps/nshlib/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_NSH_LIBRARY) + + set(CSRCS) + + list( + APPEND + CSRCS + nsh_init.c + nsh_parse.c + nsh_console.c + nsh_script.c + nsh_system.c + nsh_command.c + nsh_fscmds.c + nsh_ddcmd.c + nsh_proccmds.c + nsh_mmcmds.c + nsh_timcmds.c + nsh_envcmds.c + nsh_syscmds.c + nsh_dbgcmds.c) + + list(APPEND CSRCS nsh_session.c) + + if(CONFIG_NSH_CONSOLE_LOGIN) + list(APPEND CSRCS nsh_login.c) + endif() + + list(APPEND CSRCS nsh_fsutils.c) + + if(CONFIG_NSH_BUILTIN_APPS) + list(APPEND CSRCS nsh_builtin.c) + endif() + + if(CONFIG_NSH_FILE_APPS) + list(APPEND CSRCS nsh_fileapps.c) + endif() + + if(CONFIG_NSH_VARS) + list(APPEND CSRCS nsh_vars.c) + endif() + + if(CONFIG_NSH_ROMFSETC) + list(APPEND CSRCS nsh_romfsetc.c) + endif() + + if(CONFIG_NET) + list(APPEND CSRCS nsh_netcmds.c) + + if(CONFIG_NET_ROUTE) + list(APPEND CSRCS nsh_routecmds.c) + endif() + endif() + + if(NOT CONFIG_DISABLE_MOUNTPOINT) + list(APPEND CSRCS nsh_mntcmds.c) + endif() + + if(CONFIG_MODULE) + if(NOT CONFIG_NSH_DISABLE_MODCMDS) + list(APPEND CSRCS nsh_modcmds.c) + endif() + endif() + + if(CONFIG_NSH_CONSOLE) + list(APPEND CSRCS nsh_consolemain.c) + endif() + + if(NOT CONFIG_NSH_DISABLE_PRINTF) + list(APPEND CSRCS nsh_printf.c) + endif() + + if(CONFIG_NSH_TELNET) + list(APPEND CSRCS nsh_telnetd.c) + if(CONFIG_NSH_TELNET_LOGIN) + list(APPEND CSRCS nsh_telnetlogin.c) + endif() + endif() + + if(NOT CONFIG_NSH_DISABLESCRIPT) + list(APPEND CSRCS nsh_test.c) + endif() + + if(CONFIG_USBDEV) + list(APPEND CSRCS nsh_usbconsole.c) + endif() + + if(CONFIG_NSH_ALTCONDEV) + list(APPEND CSRCS nsh_altconsole.c) + endif() + + if(CONFIG_NSH_USBDEV_TRACE) + list(APPEND CSRCS nsh_usbtrace.c) + endif() + + if(CONFIG_NETUTILS_CODECS) + list(APPEND CSRCS nsh_codeccmd.c) + endif() + + if(CONFIG_NSH_LOGIN_PASSWD) + list(APPEND CSRCS nsh_passwdcmds.c) + endif() + + if(CONFIG_NSH_ALIAS) + list(APPEND CSRCS nsh_alias.c) + endif() + + target_sources(apps PRIVATE ${CSRCS}) + +endif() diff --git a/platform/CMakeLists.txt b/platform/CMakeLists.txt new file mode 100644 index 000000000..847f57787 --- /dev/null +++ b/platform/CMakeLists.txt @@ -0,0 +1,25 @@ +# ############################################################################## +# apps/platform/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +# set(SRCS) +# +# list(APPEND SRCS gnu/gnu_cxxinitialize.c) +# +# target_sources(apps PRIVATE ${SRCS}) diff --git a/system/CMakeLists.txt b/system/CMakeLists.txt new file mode 100644 index 000000000..62ca957cb --- /dev/null +++ b/system/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_add_subdirectory() + +nuttx_generate_kconfig(MENUDESC "System Libraries and NSH Add-Ons") diff --git a/system/cdcacm/CMakeLists.txt b/system/cdcacm/CMakeLists.txt new file mode 100644 index 000000000..f66806d03 --- /dev/null +++ b/system/cdcacm/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/cdcacm/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_CDCACM) + nuttx_add_application(NAME cdcacm) +endif() diff --git a/system/cle/CMakeLists.txt b/system/cle/CMakeLists.txt new file mode 100644 index 000000000..ee4f22a7e --- /dev/null +++ b/system/cle/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/cle/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_CLE) + target_sources(apps PRIVATE cle.c) +endif() diff --git a/system/composite/CMakeLists.txt b/system/composite/CMakeLists.txt new file mode 100644 index 000000000..eb2b55bc6 --- /dev/null +++ b/system/composite/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/composite/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_COMPOSITE) + nuttx_add_application(NAME composite SRCS composite_main.c) +endif() diff --git a/system/critmon/CMakeLists.txt b/system/critmon/CMakeLists.txt new file mode 100644 index 000000000..625b250e1 --- /dev/null +++ b/system/critmon/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/critmon/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_CRITMONITOR) + nuttx_add_application(NAME critmon) +endif() diff --git a/system/cu/CMakeLists.txt b/system/cu/CMakeLists.txt new file mode 100644 index 000000000..b3121fb5f --- /dev/null +++ b/system/cu/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/system/cu/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_CUTERM) + nuttx_add_application( + NAME + cu + SRCS + cu_main.c + STACKSIZE + ${CONFIG_SYSTEM_CUTERM_STACKSIZE} + PRIORITY + ${CONFIG_SYSTEM_CUTERM_PRIORITY}) +endif() diff --git a/system/dhcpc/CMakeLists.txt b/system/dhcpc/CMakeLists.txt new file mode 100644 index 000000000..5cd8995c7 --- /dev/null +++ b/system/dhcpc/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/system/dhcpc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_DHCPC_RENEW) + nuttx_add_application( + NAME + dhcpc + SRCS + renew_main.c + STACKSIZE + ${CONFIG_DHCPC_RENEW_STACKSIZE} + PRIORITY + ${CONFIG_DHCPC_RENEW_PRIORITY}) +endif() diff --git a/system/dumpstack/CMakeLists.txt b/system/dumpstack/CMakeLists.txt new file mode 100644 index 000000000..f7e4eb800 --- /dev/null +++ b/system/dumpstack/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/system/dumpstack/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_DUMPSTACK) + nuttx_add_application( + NAME + dumpstack + SRCS + dumpstack.c + STACKSIZE + ${CONFIG_SYSTEM_DUMPSTACK_STACKSIZE} + PRIORITY + ${CONFIG_SYSTEM_DUMPSTACK_PRIORITY}) +endif() diff --git a/system/flash_eraseall/CMakeLists.txt b/system/flash_eraseall/CMakeLists.txt new file mode 100644 index 000000000..59bd32daf --- /dev/null +++ b/system/flash_eraseall/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/flash_eraseall/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_FLASH_ERASEALL) + nuttx_add_application(NAME flash_eraseall) +endif() diff --git a/system/hex2bin/CMakeLists.txt b/system/hex2bin/CMakeLists.txt new file mode 100644 index 000000000..3f04bcbf5 --- /dev/null +++ b/system/hex2bin/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/hex2bin/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_HEX2BIN) + nuttx_add_application(NAME hex2bin) +endif() diff --git a/system/hexed/CMakeLists.txt b/system/hexed/CMakeLists.txt new file mode 100644 index 000000000..f8d52e006 --- /dev/null +++ b/system/hexed/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/hexed/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_HEXED) + nuttx_add_application(NAME hexed) +endif() diff --git a/system/hostname/CMakeLists.txt b/system/hostname/CMakeLists.txt new file mode 100644 index 000000000..27e1fe7bb --- /dev/null +++ b/system/hostname/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/hostname/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_EXAMPLES_MM) + nuttx_add_application(NAME mm) +endif() diff --git a/system/i2c/CMakeLists.txt b/system/i2c/CMakeLists.txt new file mode 100644 index 000000000..39d807dc7 --- /dev/null +++ b/system/i2c/CMakeLists.txt @@ -0,0 +1,40 @@ +# ############################################################################## +# apps/system/i2c/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_I2CTOOL) + set(SRCS i2c_main.c) + list( + APPEND + SRCS + i2c_bus.c + i2c_common.c + i2c_dev.c + i2c_get.c + i2c_set.c + i2c_verf.c + i2c_devif.c + i2c_dump.c + i2c_hexdump.c) + if(CONFIG_I2C_RESET) + list(APPEND SRCS i2c_reset.c) + endif() + nuttx_add_application(NAME i2c SRCS ${SRCS} STACKSIZE + ${CONFIG_DEFAULT_TASK_STACKSIZE}) +endif() diff --git a/system/lm75/CMakeLists.txt b/system/lm75/CMakeLists.txt new file mode 100644 index 000000000..558a77b2f --- /dev/null +++ b/system/lm75/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/lm75/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_LM75) + nuttx_add_application(NAME lm75) +endif() diff --git a/system/lzf/CMakeLists.txt b/system/lzf/CMakeLists.txt new file mode 100644 index 000000000..015e30fcd --- /dev/null +++ b/system/lzf/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/lzf/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_LZF) + nuttx_add_application(NAME lzf) +endif() diff --git a/system/mdio/CMakeLists.txt b/system/mdio/CMakeLists.txt new file mode 100644 index 000000000..df9858653 --- /dev/null +++ b/system/mdio/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/mdio/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_MDIO) + nuttx_add_application(NAME mdio) +endif() diff --git a/system/netdb/CMakeLists.txt b/system/netdb/CMakeLists.txt new file mode 100644 index 000000000..4bd8d2319 --- /dev/null +++ b/system/netdb/CMakeLists.txt @@ -0,0 +1,32 @@ +# ############################################################################## +# apps/system/netdb/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_NETDB) + nuttx_add_application( + NAME + netdb + STACKSIZE + 2048 + PRIORITY + 100 + SRCS + netdb_main.c) + +endif() diff --git a/system/nsh/CMakeLists.txt b/system/nsh/CMakeLists.txt new file mode 100644 index 000000000..5fcf123d5 --- /dev/null +++ b/system/nsh/CMakeLists.txt @@ -0,0 +1,26 @@ +# ############################################################################## +# apps/system/nsh/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_NSH) + nuttx_add_application(NAME nsh SRCS nsh_main.c) + + nuttx_add_application(NAME sh SRCS sh_main.c) + +endif() diff --git a/system/ntpc/CMakeLists.txt b/system/ntpc/CMakeLists.txt new file mode 100644 index 000000000..aaacd50bc --- /dev/null +++ b/system/ntpc/CMakeLists.txt @@ -0,0 +1,49 @@ +# ############################################################################## +# apps/system/ntpc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_NTPC) + nuttx_add_application( + NAME + ntpcstart + SRCS + ntpcstart_main.c + STACKSIZE + ${CONFIG_SYSTEM_NTPC_STACKSIZE} + PRIORITY + ${CONFIG_SYSTEM_NTPC_PRIORITY}) + nuttx_add_application( + NAME + ntpcstop + SRCS + ntpcstop_main.c + STACKSIZE + ${CONFIG_SYSTEM_NTPC_STACKSIZE} + PRIORITY + ${CONFIG_SYSTEM_NTPC_PRIORITY}) + nuttx_add_application( + NAME + ntpcstatus + SRCS + ntpcstatus_main.c + STACKSIZE + ${CONFIG_SYSTEM_NTPC_STACKSIZE} + PRIORITY + ${CONFIG_SYSTEM_NTPC_PRIORITY}) +endif() diff --git a/system/nxplayer/CMakeLists.txt b/system/nxplayer/CMakeLists.txt new file mode 100644 index 000000000..89549adb4 --- /dev/null +++ b/system/nxplayer/CMakeLists.txt @@ -0,0 +1,27 @@ +# ############################################################################## +# apps/system/nxplayer/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_NXPLAYER) + if(CONFIG_NXPLAYER_COMMAND_LINE) + nuttx_add_application(NAME nxplayer SRCS nxplayer_main.c STACKSIZE + ${CONFIG_NXPLAYER_MAINTHREAD_STACKSIZE}) + endif() + target_sources(apps PRIVATE nxplayer.c) +endif() diff --git a/system/nxrecorder/CMakeLists.txt b/system/nxrecorder/CMakeLists.txt new file mode 100644 index 000000000..365f778af --- /dev/null +++ b/system/nxrecorder/CMakeLists.txt @@ -0,0 +1,27 @@ +# ############################################################################## +# apps/system/nxrecorder/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_NXRECORDER) + if(CONFIG_NXRECORDER_COMMAND_LINE) + nuttx_add_application(NAME nxrecorder SRCS nxrecorder_main.c STACKSIZE + ${CONFIG_NXRECORDER_MAINTHREAD_STACKSIZE}) + endif() + target_sources(apps PRIVATE nxrecorder.c) +endif() diff --git a/system/ping/CMakeLists.txt b/system/ping/CMakeLists.txt new file mode 100644 index 000000000..ede8dc31a --- /dev/null +++ b/system/ping/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/system/ping/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_PING) + nuttx_add_application( + NAME + ping + SRCS + ping.c + STACKSIZE + ${CONFIG_SYSTEM_PING_STACKSIZE} + PRIORITY + ${CONFIG_SYSTEM_PING_PRIORITY}) +endif() diff --git a/system/ping6/CMakeLists.txt b/system/ping6/CMakeLists.txt new file mode 100644 index 000000000..05d5fa68c --- /dev/null +++ b/system/ping6/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/ping6/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_PING6) + nuttx_add_application(NAME ping6) +endif() diff --git a/system/popen/CMakeLists.txt b/system/popen/CMakeLists.txt new file mode 100644 index 000000000..6a15c0a41 --- /dev/null +++ b/system/popen/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/popen/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_POPEN) + target_sources(apps PRIVATE popen.c) +endif() diff --git a/system/ramtest/CMakeLists.txt b/system/ramtest/CMakeLists.txt new file mode 100644 index 000000000..28e58148b --- /dev/null +++ b/system/ramtest/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/ramtest/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_RAMTEST) + nuttx_add_application(NAME ramtest) +endif() diff --git a/system/readline/CMakeLists.txt b/system/readline/CMakeLists.txt new file mode 100644 index 000000000..f7d05b3e8 --- /dev/null +++ b/system/readline/CMakeLists.txt @@ -0,0 +1,25 @@ +# ############################################################################## +# apps/system/readline/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_READLINE) + + target_sources(apps PRIVATE readline.c readline_fd.c readline_common.c) + +endif() diff --git a/system/sched_note/CMakeLists.txt b/system/sched_note/CMakeLists.txt new file mode 100644 index 000000000..ee0ee24c6 --- /dev/null +++ b/system/sched_note/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/sched_note/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_NOTE) + nuttx_add_application(NAME sched_note) +endif() diff --git a/system/setlogmask/CMakeLists.txt b/system/setlogmask/CMakeLists.txt new file mode 100644 index 000000000..062bdb347 --- /dev/null +++ b/system/setlogmask/CMakeLists.txt @@ -0,0 +1,31 @@ +# ############################################################################## +# apps/system/setlogmask/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_SETLOGMASK) + nuttx_add_application( + NAME + setlogmask + SRCS + setlogmask.c + STACKSIZE + ${CONFIG_SYSTEM_SETLOGMASK_STACKSIZE} + PRIORITY + ${CONFIG_SYSTEM_SETLOGMASK_PRIORITY}) +endif() diff --git a/system/stackmonitor/CMakeLists.txt b/system/stackmonitor/CMakeLists.txt new file mode 100644 index 000000000..69cd1c41d --- /dev/null +++ b/system/stackmonitor/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/stackmonitor/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_STACKMONITOR) + nuttx_add_application(NAME stackmonitor) +endif() diff --git a/system/system/CMakeLists.txt b/system/system/CMakeLists.txt new file mode 100644 index 000000000..97c7e55f7 --- /dev/null +++ b/system/system/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/system/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_SYSTEM) + target_sources(apps PRIVATE system.c) +endif() diff --git a/system/taskset/CMakeLists.txt b/system/taskset/CMakeLists.txt new file mode 100644 index 000000000..d8aebde68 --- /dev/null +++ b/system/taskset/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/taskset/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_TASKSET) + nuttx_add_application(NAME taskset) +endif() diff --git a/system/tee/CMakeLists.txt b/system/tee/CMakeLists.txt new file mode 100644 index 000000000..186277946 --- /dev/null +++ b/system/tee/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/tee/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_TEE) + nuttx_add_application(NAME tee) +endif() diff --git a/system/telnet/CMakeLists.txt b/system/telnet/CMakeLists.txt new file mode 100644 index 000000000..a9d959052 --- /dev/null +++ b/system/telnet/CMakeLists.txt @@ -0,0 +1,43 @@ +# ############################################################################## +# apps/system/telnet/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_TELNET_CHATD) + nuttx_add_application( + NAME + ${CONFIG_SYSTEM_TELNET_CHATD_PROGNAME} + SRCS + telnet_chatd.c + STACKSIZE + ${CONFIG_SYSTEM_TELNET_CHATD_STACKSIZE} + PRIORITY + ${CONFIG_SYSTEM_TELNET_CHATD_PRIORITY}) +endif() + +if(CONFIG_SYSTEM_TELNET_CLIENT) + nuttx_add_application( + NAME + ${CONFIG_SYSTEM_TELNET_CLIENT_PROGNAME} + SRCS + telnet_client.c + STACKSIZE + ${CONFIG_SYSTEM_TELNET_CLIENT_STACKSIZE} + PRIORITY + ${CONFIG_SYSTEM_TELNET_CLIENT_PRIORITY}) +endif() diff --git a/system/ubloxmodem/CMakeLists.txt b/system/ubloxmodem/CMakeLists.txt new file mode 100644 index 000000000..cfee0a0ba --- /dev/null +++ b/system/ubloxmodem/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/ubloxmodem/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_UBLOXMODEM) + nuttx_add_application(NAME ubloxmodem) +endif() diff --git a/system/usbmsc/CMakeLists.txt b/system/usbmsc/CMakeLists.txt new file mode 100644 index 000000000..86f984db6 --- /dev/null +++ b/system/usbmsc/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/usbmsc/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_USBMSC) + nuttx_add_application(NAME usbmsc STACKSIZE 768 SRCS usbmsc_main.c) +endif() diff --git a/system/vi/CMakeLists.txt b/system/vi/CMakeLists.txt new file mode 100644 index 000000000..1095980e7 --- /dev/null +++ b/system/vi/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/vi/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_VI) + nuttx_add_application(NAME vi) +endif() diff --git a/system/zmodem/CMakeLists.txt b/system/zmodem/CMakeLists.txt new file mode 100644 index 000000000..3764f8313 --- /dev/null +++ b/system/zmodem/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/system/zmodem/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_ZMODEM) + nuttx_add_application(NAME zmodem) +endif() diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt new file mode 100644 index 000000000..217971327 --- /dev/null +++ b/testing/CMakeLists.txt @@ -0,0 +1,22 @@ +# ############################################################################## +# apps/testing/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_add_subdirectory() +nuttx_generate_kconfig(MENUDESC "Testing") diff --git a/testing/ostest/CMakeLists.txt b/testing/ostest/CMakeLists.txt new file mode 100644 index 000000000..c0b1691b4 --- /dev/null +++ b/testing/ostest/CMakeLists.txt @@ -0,0 +1,144 @@ +# ############################################################################## +# apps/testing/ostest/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_TESTING_OSTEST) + + set(SRCS + getopt.c + dev_null.c + restart.c + sigprocmask.c + sighand.c + signest.c + sighelper.c) + + if(CONFIG_SIG_SIGSTOP_ACTION) + if(CONFIG_SIG_SIGKILL_ACTION) + list(APPEND SRCS suspend.c) + endif() + endif() + + if(CONFIG_ARCH_FPU) + if(NOT CONFIG_TESTING_OSTEST_FPUTESTDISABLE) + list(APPEND SRCS fpu.c) + endif() + endif() + + if(NOT CONFIG_STDIO_DISABLE_BUFFERING) + list(APPEND SRCS setvbuf.c) + endif() + + if(NOT CONFIG_TLS_NELEM EQUAL 0) + list(APPEND SRCS tls.c) + endif() + + if(CONFIG_TESTING_OSTEST_AIO) + list(APPEND SRCS aio.c) + endif() + + if(CONFIG_SCHED_WAITPID) + list(APPEND SRCS waitpid.c) + endif() + + if(NOT CONFIG_DISABLE_PTHREAD) + list( + APPEND + SRCS + cancel.c + cond.c + mutex.c + timedmutex.c + sem.c + semtimed.c + barrier.c) + list(APPEND SRCS timedwait.c) + list(APPEND SRCS pthread_rwlock.c pthread_rwlock_cancel.c) + + if(CONFIG_SCHED_WAITPID) + list(APPEND SRCS pthread_exit.c) + endif() + + if(NOT CONFIG_TLS_NELEM EQUAL 0) + list(APPEND SRCS specific.c) + endif() + + if(NOT CONFIG_PTHREAD_CLEANUP_STACKSIZE EQUAL 0) + list(APPEND SRCS pthread_cleanup.c) + endif() + + if(NOT CONFIG_PTHREAD_MUTEX_UNSAFE) + list(APPEND SRCS robust.c) + endif() + + if(CONFIG_PTHREAD_MUTEX_TYPES) + list(APPEND SRCS rmutex.c) + endif() + + if(CONFIG_FS_NAMED_SEMAPHORES) + list(APPEND SRCS nsem.c) + endif() + + if(NOT "${CONFIG_RR_INTERVAL}" STREQUAL "0") + list(APPEND SRCS roundrobin.c) + endif() + + if(CONFIG_SCHED_SPORADIC) + list(APPEND SRCS sporadic.c sporadic2.c) + endif() + + if(CONFIG_SCHED_WORKQUEUE) + list(APPEND SRCS wqueue.c) + endif() + endif() # CONFIG_DISABLE_PTHREAD + + if(NOT CONFIG_DISABLE_MQUEUE) + if(NOT CONFIG_DISABLE_PTHREAD) + list(APPEND SRCS mqueue.c timedmqueue.c) + endif() # CONFIG_DISABLE_PTHREAD + endif() # CONFIG_DISABLE_MQUEUE + + if(NOT CONFIG_DISABLE_POSIX_TIMERS) + list(APPEND SRCS posixtimer.c) + if(CONFIG_SIG_EVTHREAD) + list(APPEND SRCS sigev_thread.c) + endif() + endif() + + if(CONFIG_ARCH_HAVE_VFORK) + if(CONFIG_SCHED_WAITPID) + list(APPEND SRCS vfork.c) + endif() + endif() + + if(NOT CONFIG_DISABLE_PTHREAD) + if(CONFIG_PRIORITY_INHERITANCE) + list(APPEND SRCS prioinherit.c) + endif() # CONFIG_PRIORITY_INHERITANCE + endif() # CONFIG_DISABLE_PTHREAD + + if(CONFIG_ARCH_SETJMP_H) + list(APPEND SRCS setjmp.c) + endif() + + target_sources(apps PRIVATE ${SRCS}) + + nuttx_add_application(NAME ostest SRCS ostest_main.c) + +endif() diff --git a/wireless/CMakeLists.txt b/wireless/CMakeLists.txt new file mode 100644 index 000000000..bf1036719 --- /dev/null +++ b/wireless/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/wireless/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +nuttx_add_subdirectory() + +nuttx_generate_kconfig(MENUDESC "Wireless Libraries and NSH Add-Ons") diff --git a/wireless/wapi/CMakeLists.txt b/wireless/wapi/CMakeLists.txt new file mode 100644 index 000000000..440e9a477 --- /dev/null +++ b/wireless/wapi/CMakeLists.txt @@ -0,0 +1,39 @@ +# ############################################################################## +# wireless/wapi/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_WIRELESS_WAPI) + + set(CSRCS src/network.c src/util.c src/wireless.c src/driver_wext.c) + + if(CONFIG_WIRELESS_WAPI_CMDTOOL) + nuttx_add_application( + NAME + ${CONFIG_WIRELESS_WAPI_PROGNAME} + SRCS + src/wapi.c + STACKSIZE + ${CONFIG_WIRELESS_WAPI_STACKSIZE} + PRIORITY + ${CONFIG_WIRELESS_WAPI_PRIORITY}) + endif() + + target_sources(apps PRIVATE ${CSRCS}) + +endif()