2021-06-01 16:05:35 +00:00
|
|
|
# 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/lite/config/component/lite_component.gni")
|
|
|
|
import("//foundation/communication/dsoftbus/dsoftbus.gni")
|
|
|
|
|
|
|
|
if (ohos_kernel_type == "liteos_m") {
|
|
|
|
static_library("softbus_server_frame") {
|
|
|
|
include_dirs = [
|
|
|
|
"include",
|
|
|
|
"$dsoftbus_root_path/core/adapter/kernel/include",
|
|
|
|
"$dsoftbus_root_path/core/common/message_handler/include",
|
|
|
|
"$dsoftbus_root_path/core/common/include",
|
|
|
|
"$dsoftbus_root_path/core/common/inner_communication",
|
2021-07-23 07:39:46 +00:00
|
|
|
"$dsoftbus_root_path/core/common/softbus_property/include",
|
2021-06-01 16:05:35 +00:00
|
|
|
"$dsoftbus_root_path/core/transmission/session/include",
|
|
|
|
"$dsoftbus_root_path/core/transmission/trans_channel/manager/include",
|
|
|
|
"$dsoftbus_root_path/sdk/bus_center/include",
|
|
|
|
"$dsoftbus_root_path/sdk/transmission/trans_channel/manager/include",
|
|
|
|
"$dsoftbus_root_path/interfaces/kits",
|
|
|
|
"$dsoftbus_root_path/interfaces/kits/bus_center",
|
2021-07-13 07:10:49 +00:00
|
|
|
"$dsoftbus_root_path/interfaces/kits/transport",
|
|
|
|
"$hilog_lite_include_path",
|
2021-07-23 06:15:53 +00:00
|
|
|
"$softbus_adapter_config/spec_config",
|
2021-06-01 16:05:35 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"$dsoftbus_root_path/core/common/inner_communication/c/softbus_client_interface.c",
|
|
|
|
"$dsoftbus_root_path/core/common/inner_communication/c/softbus_server_interface_impl.c",
|
|
|
|
"src/softbus_server_frame.c",
|
|
|
|
"src/softbus_server_frame_weak.c",
|
|
|
|
]
|
2021-07-13 07:10:49 +00:00
|
|
|
|
2021-07-26 09:24:38 +00:00
|
|
|
deps = [
|
|
|
|
"$hilog_lite_deps_path",
|
|
|
|
"$dsoftbus_root_path/core/common/log:softbus_log",
|
|
|
|
]
|
2021-06-01 16:05:35 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
shared_library("softbus_server_frame") {
|
|
|
|
include_dirs = [
|
2021-07-13 07:10:49 +00:00
|
|
|
"common/include",
|
|
|
|
"small/init/include",
|
|
|
|
"small/client_manager/include",
|
2021-06-01 16:05:35 +00:00
|
|
|
"$dsoftbus_root_path/core/adapter/kernel/include",
|
|
|
|
"$dsoftbus_root_path/core/common/message_handler/include",
|
|
|
|
"$dsoftbus_root_path/core/common/include",
|
|
|
|
"$dsoftbus_root_path/core/common/inner_communication",
|
2021-07-13 07:10:49 +00:00
|
|
|
"$dsoftbus_root_path/core/connection/interface",
|
|
|
|
"$dsoftbus_root_path/core/connection/manager",
|
|
|
|
"$dsoftbus_root_path/core/transmission/trans_channel/proxy/include",
|
|
|
|
"$dsoftbus_root_path/core/transmission/common/include",
|
2021-07-23 07:39:46 +00:00
|
|
|
"$dsoftbus_root_path/core/common/softbus_property/include",
|
2021-07-13 07:10:49 +00:00
|
|
|
"$dsoftbus_root_path/interfaces/kits/transport",
|
2021-07-15 02:47:02 +00:00
|
|
|
"//base/security/deviceauth/interfaces/innerkits",
|
2021-06-01 16:05:35 +00:00
|
|
|
"//utils/native/lite/include",
|
2021-07-13 07:10:49 +00:00
|
|
|
"$hilog_lite_include_path",
|
2021-07-23 06:15:53 +00:00
|
|
|
"$softbus_adapter_config/spec_config",
|
2021-06-01 16:05:35 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sources = [
|
2021-07-13 07:10:49 +00:00
|
|
|
"common/src/softbus_server_frame.c",
|
|
|
|
"small/init/src/bus_center_server_stub.c",
|
|
|
|
"small/init/src/disc_server_stub.c",
|
|
|
|
"small/init/src/softbus_server_stub.c",
|
|
|
|
"small/init/src/trans_server_stub.c",
|
|
|
|
]
|
|
|
|
|
|
|
|
cflags = [
|
|
|
|
"-Wall",
|
|
|
|
"-fPIC",
|
|
|
|
"-std=c99",
|
2021-06-01 16:05:35 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"$dsoftbus_root_path/core/adapter/kernel:softbus_adapter_kernel",
|
2021-07-13 07:10:49 +00:00
|
|
|
"$dsoftbus_root_path/core/authentication:dsoftbus_auth_server",
|
|
|
|
"$dsoftbus_root_path/core/bus_center:dsoftbus_bus_center_server",
|
2021-06-01 16:05:35 +00:00
|
|
|
"$dsoftbus_root_path/core/common/message_handler:message_handler",
|
2021-07-13 07:10:49 +00:00
|
|
|
"$dsoftbus_root_path/core/common/security/permission:softbus_permission",
|
2021-06-01 16:05:35 +00:00
|
|
|
"$dsoftbus_root_path/core/common/utils:softbus_utils",
|
2021-07-20 11:38:36 +00:00
|
|
|
"$dsoftbus_root_path/core/common/log:softbus_log",
|
2021-07-13 07:10:49 +00:00
|
|
|
"$dsoftbus_root_path/core/connection:softbus_connection",
|
|
|
|
"$dsoftbus_root_path/core/discovery:dsoftbus_disc_server",
|
|
|
|
"$dsoftbus_root_path/core/frame/small/client_manager:client_manager",
|
|
|
|
"$dsoftbus_root_path/core/transmission/session:dsoftbus_trans_session",
|
|
|
|
"$hilog_lite_deps_path",
|
|
|
|
"//foundation/communication/ipc_lite:liteipc_adapter",
|
2021-06-01 16:05:35 +00:00
|
|
|
"//foundation/distributedschedule/samgr_lite/samgr:samgr",
|
2021-07-24 09:55:34 +00:00
|
|
|
"$dsoftbus_root_path/core/bus_center/service:dsoftbus_bus_center_service",
|
2021-06-01 16:05:35 +00:00
|
|
|
]
|
|
|
|
}
|
2021-07-13 07:10:49 +00:00
|
|
|
executable("softbus_server") {
|
|
|
|
sources = [ "small/init/src/softbus_server_main.c" ]
|
|
|
|
include_dirs = [ "common/include" ]
|
|
|
|
deps = [ ":softbus_server_frame" ]
|
|
|
|
}
|
2021-06-01 16:05:35 +00:00
|
|
|
}
|