This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new acf9e3679 netutils/iptables: add cmake support.
acf9e3679 is described below

commit acf9e3679e18075f7baf7195a237113b3fe56f24
Author: zhanghongyu <[email protected]>
AuthorDate: Fri May 10 16:50:26 2024 +0800

    netutils/iptables: add cmake support.
    
    add cmake support for xtables.c, solves the problem of missing symbols
    when compiling with cmake
    
    Signed-off-by: zhanghongyu <[email protected]>
---
 netutils/iptables/CMakeLists.txt | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/netutils/iptables/CMakeLists.txt b/netutils/iptables/CMakeLists.txt
new file mode 100644
index 000000000..94f1816d6
--- /dev/null
+++ b/netutils/iptables/CMakeLists.txt
@@ -0,0 +1,23 @@
+# 
##############################################################################
+# apps/netutils/iptables/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_IPTABLES)
+  target_sources(apps PRIVATE xtables.c)
+endif()

Reply via email to