Add "native" to make a shell for commonlibrary_c_utils

We are working with switching utils_native to commonlibrary_c_utils which need to change the path of source code. And there are too many path dependence in other modules. So we make a shell for the new modules.
We will delete this shell when we have deal with the path dependence.

Signed-off-by: liujialiang <liujialiang10@huawei.com>
This commit is contained in:
liujialiang
2022-07-14 19:52:33 +08:00
parent b679d7e087
commit 1b6f68dbb7
5 changed files with 134 additions and 1 deletions
-1
View File
@@ -1,4 +1,3 @@
/resources
/system/sepolicy
/native
/system/selinux_policy_standard
+60
View File
@@ -0,0 +1,60 @@
# Copyright (c) 2021 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")
###############################################################################
config("utils_config") {
visibility = [ ":*" ]
include_dirs = [
"include",
"//developtools/liblog",
]
cflags = []
if (current_os == "mingw") {
cflags += [ "-Wno-error=inconsistent-dllimport" ]
}
}
config("private_securec_config") {
cflags = [ "-Wno-implicit-fallthrough" ]
}
config("static_utils_config") {
visibility = [ ":*" ]
include_dirs = [
"include",
"//developtools/liblog",
]
}
group("utilsbase") {
public_deps = [ "//commonlibrary/c_utils/base:utilsbase" ]
}
group("utils") {
public_deps = [ "//commonlibrary/c_utils/base:utils" ]
}
group("utilsecurec") {
visibility = [ "//foundation/arkui/ace_engine/*:*" ]
public_deps = [ "//commonlibrary/c_utils/base:utilsecurec" ]
}
group("utilsecurec_shared") {
visibility = [
":*",
"//foundation/arkui/ace_engine/*:*",
]
public_deps = [ "//commonlibrary/c_utils/base:utilsecurec_shared" ]
}
###############################################################################
+1
View File
@@ -0,0 +1 @@
../../../commonlibrary/c_utils/base/include
+1
View File
@@ -0,0 +1 @@
../../../commonlibrary/c_utils/base/src
+72
View File
@@ -0,0 +1,72 @@
{
"name": "@openharmony/utils_base",
"version": "3.1.0",
"description": "utils_base",
"publishAs": "code-segment",
"scripts": {
"install": "DEST_PATH=${DEP_BUNDLE_BASE}/utils/native/base && mkdir -p $DEST_PATH && cp -r ./* $DEST_PATH"
},
"author": {},
"repository": "",
"license": "Apache License 2.0",
"component": {
"name": "utils_base",
"subsystem": "utils",
"adapted_system_type": [ "standard" ],
"deps": {
"components": [
"hilog_native"
],
"third_party": []
},
"build": {
"sub_component": [
"//utils/native/base:utils"
],
"inner_kits": [
{
"name": "//utils/native/base:utils",
"header": {
"header_files": [
"include/ashmem.h",
"include/common_errors.h",
"include/common_timer_errors.h",
"include/datetime_ex.h",
"include/directory_ex.h",
"include/errors.h",
"include/file_ex.h",
"include/flat_obj.h",
"include/nocopyable.h",
"include/observer.h",
"include/parcel.h",
"include/pubdef.h",
"include/refbase.h",
"include/rwlock.h",
"include/safe_block_queue.h",
"include/safe_map.h",
"include/safe_queue.h",
"include/securec_p.h",
"include/securec.h",
"include/securectype.h",
"include/semaphore_ex.h",
"include/singleton.h",
"include/sorted_vector.h",
"include/string_ex.h",
"include/thread_ex.h",
"include/thread_pool.h",
"include/timer.h",
"include/unique_fd.h",
"src/event_demultiplexer.h",
"src/event_handler.h",
"src/event_reactor.h",
"src/timer_event_handler.h",
"src/unicode_ex.h",
"src/utils_log.h"
],
"header_base": "//utils/native/base/"
}
}
]
}
}
}