From cf6aaa45b842bb1bdf34897c4d04c7548509253e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E8=BE=9C=E7=9A=84=E7=86=8A=E6=9C=AC=E7=86=8A?= <10804640+innocent-kumamoto@user.noreply.gitee.com> Date: Fri, 10 May 2024 14:35:40 +0800 Subject: [PATCH] update --- BUILD.gn | 54 ++++++++++++++++++++++++++ CHANGELOG.md | 3 ++ CONTRIBUTORS.md | 9 +++++ LICENSE | 20 ++++++++++ README.OpenSource | 12 ++++++ bundle.json | 30 ++++++++++++++ test.c => example.c | 0 simplehttpd.h => include/simplehttpd.h | 0 simplehttpd.c => src/simplehttpd.c | 0 9 files changed, 128 insertions(+) create mode 100644 BUILD.gn create mode 100644 CHANGELOG.md create mode 100644 CONTRIBUTORS.md create mode 100644 LICENSE create mode 100644 README.OpenSource create mode 100644 bundle.json rename test.c => example.c (100%) rename simplehttpd.h => include/simplehttpd.h (100%) rename simplehttpd.c => src/simplehttpd.c (100%) diff --git a/BUILD.gn b/BUILD.gn new file mode 100644 index 0000000..e6046c4 --- /dev/null +++ b/BUILD.gn @@ -0,0 +1,54 @@ +#Copyright (c) 2019-2024 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. + +if (defined(ohos_lite)) { + +} else { + import("//build/ohos.gni") + ohos_shared_library("simplehttpd") { + include_dirs = [ + "include", + ] + + sources = [ + "src/simplehttpd.c", + ] + + cflags = [ + "-Wall", + "-fPIC", + ] + + deps = [] + + part_name = "simplehttpd" + subsystem_name = "thirdparty" + } + + ohos_executable("simplehttpd") { + include_dirs = [ + "include", + ] + + sources = [ + "src/simplehttpd.c", + "example.c", + ] + + deps = [] + + part_name = "simplehttpd" + subsystem_name = "thirdparty" + } + +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6777dde --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +1.0 (May 9, 2024) +===== +This is the first official versioned release of simplehttpd. Have fun! diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md new file mode 100644 index 0000000..ccd1654 --- /dev/null +++ b/CONTRIBUTORS.md @@ -0,0 +1,9 @@ +Contributors +============ + +Author and Maintainer: +- [Innocent Kumamoto](https://gitee.com/innocent-kumamoto) +- [uoengopen](https://gitee.com/uoengopen) +- [null_628_5802](https://gitee.com/null_628_5802) + +Also thanks to all the people who reported bugs and suggested new features. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e421df6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2024 simplehttpd contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/README.OpenSource b/README.OpenSource new file mode 100644 index 0000000..a15a2e7 --- /dev/null +++ b/README.OpenSource @@ -0,0 +1,12 @@ +[ + { + "Name": "simplehttpd", + "License": "MIT License", + "License File": "LICENSE", + "Version Number": "1.0", + "Owner": "innocent-kumamoto@gitee.com", + "Upstream URL": "https://gitee.com/mhbase/third_party_simplehttpd", + "Description": "Ultra lightweight http server." + } +] + diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000..036a91c --- /dev/null +++ b/bundle.json @@ -0,0 +1,30 @@ +{ + "name": "@ohos/simplehttpd", + "description": "Third-party open-source software simplehttpd | Ultral ightweight http server.", + "version": "1.0", + "license": " MIT License", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/simplehttpd" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "simplehttpd", + "subsystem": "thirdparty", + "syscap": [], + "features": [], + "adapted_system_type": [ "mini", "small", "standard" ], + "rom": "", + "ram": "", + "deps": { + "components": [], + "third_party": [] + }, + "build": { + "sub_component": [], + "inner_kits": [], + "test": [] + } + } +} diff --git a/test.c b/example.c similarity index 100% rename from test.c rename to example.c diff --git a/simplehttpd.h b/include/simplehttpd.h similarity index 100% rename from simplehttpd.h rename to include/simplehttpd.h diff --git a/simplehttpd.c b/src/simplehttpd.c similarity index 100% rename from simplehttpd.c rename to src/simplehttpd.c -- Gitee