communication_dsoftbus/core/frame/BUILD.gn

126 lines
5.3 KiB
Plaintext
Raw Normal View History

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",
"$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",
"$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",
"$dsoftbus_root_path/interfaces/kits/transport",
"$hilog_lite_include_path",
2021-07-23 06:15:53 +00:00
"$softbus_adapter_config/spec_config",
"$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
]
sources = [
"common/src/softbus_server_frame.c",
"mini/src/softbus_server_stub.c",
]
deps = [
"$dsoftbus_root_path/adapter:softbus_adapter",
"$dsoftbus_root_path/core/authentication:dsoftbus_auth_server",
"$dsoftbus_root_path/core/bus_center:dsoftbus_bus_center_server",
"$dsoftbus_root_path/core/common/log:softbus_log",
"$dsoftbus_root_path/core/common/message_handler:message_handler",
"$dsoftbus_root_path/core/common/security/permission:softbus_permission",
"$dsoftbus_root_path/core/common/utils:softbus_utils",
"$dsoftbus_root_path/core/connection:softbus_connection",
"$dsoftbus_root_path/core/discovery:dsoftbus_disc_server",
"$dsoftbus_root_path/core/transmission/session:dsoftbus_trans_session",
]
2021-06-01 16:05:35 +00:00
}
} else {
shared_library("softbus_server_frame") {
include_dirs = [
"common/include",
"small/init/include",
"small/client_manager/include",
"$softbus_adapter_common/include",
"$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",
"$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",
"$dsoftbus_root_path/interfaces/kits/transport",
"//base/security/deviceauth/interfaces/innerkits",
2021-06-01 16:05:35 +00:00
"//utils/native/lite/include",
"$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 = [
"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/adapter:softbus_adapter",
"$dsoftbus_root_path/core/authentication:dsoftbus_auth_server",
"$dsoftbus_root_path/core/bus_center:dsoftbus_bus_center_server",
"$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",
"$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",
"$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",
]
}
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
}