From ac1b671b3ea23b567e3c4c5048366b3a9bd3bc2b Mon Sep 17 00:00:00 2001 From: hhchinasoft Date: Thu, 23 Dec 2021 16:28:34 +0800 Subject: [PATCH] add BUILG.gn and config.h file Signed-off-by: hhchinasoft --- BUILD.gn | 44 +++++++++++++++++++++++++++++++++++++ config.h | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 BUILD.gn create mode 100644 config.h diff --git a/BUILD.gn b/BUILD.gn new file mode 100644 index 0000000..963c11e --- /dev/null +++ b/BUILD.gn @@ -0,0 +1,44 @@ +# Copyright (c) 2020 Huawei Device Co., Ltd. +# Licensed 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. + +import("//build/ohos.gni") + +ohos_shared_library("mnl") { + sources = [ + "//third_party/libmnl/src/attr.c", + "//third_party/libmnl/src/callback.c", + "//third_party/libmnl/src/nlmsg.c", + "//third_party/libmnl/src/socket.c", + ] + + include_dirs = [ + "//third_party/libmnl", + "//third_party/libmnl/include", + "//third_party/libmnl/src", + ] + + cflags = [ + "-fPIC", + "-Os", + "-g", + "-Wall", + "-fno-strict-aliasing", + "-fvisibility=hidden", + ] + + deps = [ + ] + + part_name = "netmanager_base" + subsystem_name = "communication" +} diff --git a/config.h b/config.h new file mode 100644 index 0000000..1aa6b76 --- /dev/null +++ b/config.h @@ -0,0 +1,66 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* True if compiler supports -fvisibility=hidden */ +#define HAVE_VISIBILITY_HIDDEN 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "libmnl" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libmnl" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libmnl 1.0.4" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libmnl" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "1.0.4" + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "1.0.4" -- Gitee