BUILD.gn 1.0 KB
Newer Older
F
fanxiaoyu 已提交
1 2 3 4 5 6 7 8 9 10 11
# Copyright (C) 2022 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
12
# limitations under the License.
F
fanxiaoyu 已提交
13 14 15 16 17 18

import("//build/ohos.gni")

SUBSYSTEM_DIR = "//foundation/communication/ipc"

ohos_rust_shared_library("test_ipc_service") {
F
fanxiaoyu 已提交
19 20 21 22
  sources = [
    "src/access_token.rs",
    "src/lib.rs",
  ]
F
fanxiaoyu 已提交
23

24 25 26 27 28
  deps = [ "$SUBSYSTEM_DIR/interfaces/innerkits/rust:ipc_rust" ]

  external_deps = [
    "access_token:libnativetoken",
    "access_token:libtoken_setproc",
F
fanxiaoyu 已提交
29
  ]
F
fanxiaoyu 已提交
30 31 32 33 34 35 36

  crate_name = "test_ipc_service"
  crate_type = "dylib"

  subsystem_name = "communication"
  part_name = "ipc"
}