l0 complie

Signed-off-by: zhufenghao <2581725389@qq.com>
This commit is contained in:
zhufenghao 2021-09-07 11:37:08 +08:00
parent 1e8a17c7e1
commit 51f8981af3
5 changed files with 70 additions and 1 deletions

View File

@ -23,6 +23,8 @@ if (defined(ohos_lite)) {
common_include = [
"$dsoftbus_root_path/core/common/include",
"$softbus_adapter_common/include",
"$libsec_include_path",
"$hilog_lite_include_path",
]
common_deps = [
"$dsoftbus_root_path/adapter:softbus_adapter",

View File

@ -60,6 +60,7 @@ if (ohos_kernel_type == "liteos_m") {
"$dsoftbus_root_path/core/common/utils:softbus_utils",
"$dsoftbus_root_path/core/connection:softbus_connection",
"$dsoftbus_root_path/core/transmission/session:dsoftbus_trans_session",
"$dsoftbus_root_path/core/discovery:dsoftbus_disc_server",
]
}
} else {

View File

@ -57,7 +57,7 @@ if (defined(ohos_lite)) {
static_library("dsoftbus_trans_direct_channel") {
include_dirs =
[ "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite" ]
include_dirs = common_include
include_dirs += common_include
sources = common_src
public_configs = [ ":trans_direct_channel_interface" ]
deps = common_deps

View File

@ -0,0 +1,29 @@
/*
* 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.
*/
#ifndef SOFTBUS_CLIENT_STUB_H
#define SOFTBUS_CLIENT_STUB_H
#include "softbus_client_stub_interface.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif

View File

@ -0,0 +1,37 @@
/*
* 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.
*/
int ClientStubInit(void)
{
return 0;
}/*
* 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.
*/
int ClientStubInit(void)
{
return 0;
}