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 = [ 18 "NOGDI", 19 ] 20 cflags = [ "-std=c++17" ] 21} 22ohos_static_library("cli_lite") { 23 configs = [ ":cli_config" ] 24 sources = [ 25 "CommandLine.cpp", 26 "CommandLineFactory.cpp", 27 "CommandLineInterface.cpp", 28 ] 29 30 deps = [ 31 "../jsapp:jsapp_lite", 32 "../mock:mock_lite", 33 "../util:util_lite", 34 "//foundation/arkui/ace_engine_lite/frameworks/targets/simulator:ace_lite", 35 "//third_party/libwebsockets:websockets_static", 36 ] 37 38 include_dirs = [ 39 ".", 40 "../util/", 41 "../jsapp/", 42 "../jsapp/lite/", 43 "//third_party/jsoncpp/include/json/", 44 "//foundation/graphic/ui/frameworks/", 45 "//foundation/graphic/ui/frameworks/dock/", 46 "//foundation/graphic/utils/interfaces/innerkits/", 47 "//foundation/graphic/utils/interfaces/kits/", 48 "//foundation/graphic/ui/interfaces/kits/", 49 "//foundation/graphic/ui/interfaces/innerkits/dock/", 50 "//foundation/graphic/ui/interfaces/innerkits/", 51 ] 52 53 include_dirs += [ 54 "../mock/", 55 "../mock/lite/", 56 ] 57 58 cflags = [ "-Wno-deprecated-declarations" ] 59} 60 61ohos_static_library("cli_rich") { 62 configs = [ ":cli_config" ] 63 sources = [ 64 "CommandLine.cpp", 65 "CommandLineFactory.cpp", 66 "CommandLineInterface.cpp", 67 ] 68 69 deps = [ 70 "../jsapp:jsapp_rich", 71 "../mock:mock_rich", 72 "../util:util_rich", 73 "//third_party/libwebsockets:websockets_static", 74 ] 75 76 include_dirs = [ 77 ".", 78 "../util/", 79 "../jsapp/", 80 "../jsapp/rich/", 81 "//third_party/jsoncpp/include/json/", 82 ] 83 84 include_dirs += [ 85 "../mock/", 86 "../mock/rich/", 87 ] 88 89 include_dirs += os_include_dirs 90} 91