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",
|
2021-08-10 03:16:24 +00:00
|
|
|
"$softbus_adapter_common/include",
|
2021-06-01 16:05:35 +00:00
|
|
|
"$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",
|
2021-08-31 09:33:05 +00:00
|
|
|
"$dsoftbus_root_path/core/frame/common/include",
|
2021-06-01 16:05:35 +00:00
|
|
|
"$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-09-02 13:34:36 +00:00
|
|
|
"$dsoftbus_root_path/core/authentication/include",
|
|
|
|
"$dsoftbus_root_path/core/authentication/interface",
|
|
|
|
"$dsoftbus_root_path/core/connection/interface",
|
|
|
|
"$dsoftbus_root_path/core/connection/manager",
|
|
|
|
"$dsoftbus_root_path/core/bus_center/interface",
|
|
|
|
"$dsoftbus_root_path/core/frame/common/include",
|
|
|
|
"$dsoftbus_root_path/core/discovery/manager/include",
|
|
|
|
"$dsoftbus_root_path/core/discovery/interface",
|
|
|
|
"$dsoftbus_root_path/interfaces/kits/common",
|
|
|
|
"//base/security/deviceauth/interfaces/innerkits",
|
2021-06-01 16:05:35 +00:00
|
|
|
]
|
|
|
|
|
2021-09-02 13:34:36 +00:00
|
|
|
sources = [
|
|
|
|
"common/src/softbus_server_frame.c",
|
|
|
|
"mini/src/softbus_server_stub.c",
|
|
|
|
]
|
2021-07-13 07:10:49 +00:00
|
|
|
|
2021-07-26 09:24:38 +00:00
|
|
|
deps = [
|
2021-08-31 09:33:05 +00:00
|
|
|
"$dsoftbus_root_path/adapter:softbus_adapter",
|
2021-09-02 13:34:36 +00:00
|
|
|
"$dsoftbus_root_path/core/authentication:dsoftbus_auth_server",
|
|
|
|
"$dsoftbus_root_path/core/bus_center:dsoftbus_bus_center_server",
|
2021-07-26 09:24:38 +00:00
|
|
|
"$dsoftbus_root_path/core/common/log:softbus_log",
|
2021-08-31 09:33:05 +00:00
|
|
|
"$dsoftbus_root_path/core/common/message_handler:message_handler",
|
2021-09-02 13:34:36 +00:00
|
|
|
"$dsoftbus_root_path/core/common/security/permission:softbus_permission",
|
2021-08-31 11:31:33 +00:00
|
|
|
"$dsoftbus_root_path/core/common/utils:softbus_utils",
|
2021-09-02 13:34:36 +00:00
|
|
|
"$dsoftbus_root_path/core/connection:softbus_connection",
|
2021-09-07 03:37:08 +00:00
|
|
|
"$dsoftbus_root_path/core/discovery:dsoftbus_disc_server",
|
2021-09-07 06:19:02 +00:00
|
|
|
"$dsoftbus_root_path/core/transmission/session:dsoftbus_trans_session",
|
2021-07-26 09:24:38 +00:00
|
|
|
]
|
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-08-10 03:16:24 +00:00
|
|
|
"$softbus_adapter_common/include",
|
2021-08-25 09:14:38 +00:00
|
|
|
"$dsoftbus_root_path/core/bus_center/utils/include",
|
2021-06-01 16:05:35 +00:00
|
|
|
"$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 = [
|
2021-08-10 03:16:24 +00:00
|
|
|
"$dsoftbus_root_path/adapter:softbus_adapter",
|
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-08-10 08:56:41 +00:00
|
|
|
"$dsoftbus_root_path/core/common/log:softbus_log",
|
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-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-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
|
|
|
}
|