• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15SUBSYSTEM_DIR = "//foundation/appexecfwk/standard"
16
17config("fmskit_config") {
18  defines = [
19    "APP_LOG_TAG = \"FmskitNative\"",
20    "LOG_DOMAIN = 0xD001151",
21  ]
22}
23config("fmskit_public_config") {
24  include_dirs = [
25    "$SUBSYSTEM_DIR/common/log/include",
26    "//foundation/appexecfwk/standard/interfaces/innerkits/fmskit/native/include",
27    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include",
28    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include/formmgr",
29    "//foundation/aafwk/standard/interfaces/innerkits/want/include",
30    "//utils/system/safwk/native/include",
31  ]
32}
33
34# build so
35ohos_shared_library("fmskit_native") {
36  configs = [ ":fmskit_config" ]
37  public_configs = [ ":fmskit_public_config" ]
38  sources = [
39    "$SUBSYSTEM_DIR/interfaces/innerkits/fmskit/native/src/form_errors.cpp",
40    "$SUBSYSTEM_DIR/interfaces/innerkits/fmskit/native/src/form_host_client.cpp",
41    "$SUBSYSTEM_DIR/interfaces/innerkits/fmskit/native/src/form_mgr.cpp",
42  ]
43  cflags = []
44  if (target_cpu == "arm") {
45    cflags += [ "-DBINDER_IPC_32BIT" ]
46  }
47  deps = [
48    "$SUBSYSTEM_DIR/common:libappexecfwk_common",
49    "//utils/native/base:utils",
50  ]
51
52  external_deps = [
53    "aafwk_standard:want",
54    "appexecfwk_standard:appexecfwk_base",
55    "appexecfwk_standard:appexecfwk_core",
56    "hiviewdfx_hilog_native:libhilog",
57    "ipc:ipc_core",
58    "samgr_L2:samgr_proxy",
59  ]
60
61  subsystem_name = "appexecfwk"
62  part_name = "appexecfwk_standard"
63}
64