• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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")
15import("../gn/config.gni")
16config("cli_config") {
17  defines = [ "NOGDI" ]
18  cflags = [ "-std=c++17" ]
19}
20ohos_source_set("cli_lite") {
21  configs = [
22    ":cli_config",
23    "//third_party/jsoncpp:jsoncpp_public_config",
24  ]
25  sources = [
26    "CommandLine.cpp",
27    "CommandLineFactory.cpp",
28    "CommandLineInterface.cpp",
29  ]
30
31  deps = [
32    "../jsapp:jsapp_lite",
33    "../mock:mock_lite",
34    "../util:util_lite",
35    "//foundation/arkui/ace_engine_lite/frameworks/targets/simulator:ace_lite",
36    "//third_party/libwebsockets:websockets_static",
37  ]
38
39  include_dirs = [
40    ".",
41    "../util/",
42    "../jsapp/",
43    "../jsapp/lite/",
44    "//foundation/arkui/ui_lite/frameworks/",
45    "//foundation/arkui/ui_lite/frameworks/dock/",
46    "//foundation/graphic/graphic_utils_lite/interfaces/innerkits/",
47    "//foundation/graphic/graphic_utils_lite/interfaces/kits/",
48    "//foundation/arkui/ui_lite/interfaces/kits/",
49    "//foundation/arkui/ui_lite/interfaces/innerkits/dock/",
50    "//foundation/arkui/ui_lite/interfaces/innerkits/",
51  ]
52
53  include_dirs += [
54    "../mock/",
55    "../mock/lite/",
56  ]
57
58  cflags = [ "-Wno-deprecated-declarations" ]
59  part_name = "previewer"
60  subsystem_name = "ide"
61}
62
63ohos_source_set("cli_rich") {
64  configs = [
65    ":cli_config",
66    "//third_party/jsoncpp:jsoncpp_public_config",
67  ]
68  sources = [
69    "CommandLine.cpp",
70    "CommandLineFactory.cpp",
71    "CommandLineInterface.cpp",
72  ]
73
74  deps = [
75    "../jsapp:jsapp_rich",
76    "../mock:mock_rich",
77    "../util:util_rich",
78    "//third_party/libwebsockets:websockets_static",
79  ]
80
81  include_dirs = [
82    ".",
83    "../util/",
84    "../jsapp/",
85    "../jsapp/rich/",
86  ]
87  include_dirs += [
88    "../mock/",
89    "../mock/rich/",
90  ]
91
92  include_dirs += os_include_dirs
93  part_name = "previewer"
94  subsystem_name = "ide"
95}
96