1a34a8711Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2a34a8711Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3a34a8711Sopenharmony_ci# you may not use this file except in compliance with the License. 4a34a8711Sopenharmony_ci# You may obtain a copy of the License at 5a34a8711Sopenharmony_ci# 6a34a8711Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7a34a8711Sopenharmony_ci# 8a34a8711Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9a34a8711Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10a34a8711Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11a34a8711Sopenharmony_ci# See the License for the specific language governing permissions and 12a34a8711Sopenharmony_ci# limitations under the License. 13a34a8711Sopenharmony_ci 14a34a8711Sopenharmony_ciimport("//build/ohos.gni") 15a34a8711Sopenharmony_ci 16a34a8711Sopenharmony_ciconfig("libipc_c_private_config") { 17a34a8711Sopenharmony_ci cflags_cc = [ 18a34a8711Sopenharmony_ci "-DCONFIG_IPC_SINGLE", 19a34a8711Sopenharmony_ci "-O2", 20a34a8711Sopenharmony_ci ] 21a34a8711Sopenharmony_ci} 22a34a8711Sopenharmony_ci 23a34a8711Sopenharmony_ciohos_static_library("ipc_rust_test_c") { 24a34a8711Sopenharmony_ci include_dirs = [ "include" ] 25a34a8711Sopenharmony_ci 26a34a8711Sopenharmony_ci sources = [ "src/ipc_rust_test.cpp" ] 27a34a8711Sopenharmony_ci configs = [ ":libipc_c_private_config" ] 28a34a8711Sopenharmony_ci deps = [ "../../../ipc_single:ipc_single" ] 29a34a8711Sopenharmony_ci 30a34a8711Sopenharmony_ci external_deps = [ "c_utils:utils" ] 31a34a8711Sopenharmony_ci 32a34a8711Sopenharmony_ci subsystem_name = "communication" 33a34a8711Sopenharmony_ci part_name = "ipc" 34a34a8711Sopenharmony_ci} 35