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 = [ ":cli_config" ] 22 sources = [ 23 "CommandLine.cpp", 24 "CommandLineFactory.cpp", 25 "CommandLineInterface.cpp", 26 ] 27 28 deps = [ 29 "../jsapp:jsapp_lite", 30 "../mock:mock_lite", 31 "../util:util_lite", 32 "//foundation/arkui/ace_engine_lite/frameworks/targets/simulator:ace_lite", 33 "//third_party/libwebsockets:websockets_static", 34 ] 35 36 include_dirs = [ 37 ".", 38 "../util/", 39 "../jsapp/", 40 "../jsapp/lite/", 41 "//third_party/jsoncpp/include/json/", 42 "//foundation/arkui/ui_lite/frameworks/", 43 "//foundation/arkui/ui_lite/frameworks/dock/", 44 "//foundation/graphic/graphic_utils_lite/interfaces/innerkits/", 45 "//foundation/graphic/graphic_utils_lite/interfaces/kits/", 46 "//foundation/arkui/ui_lite/interfaces/kits/", 47 "//foundation/arkui/ui_lite/interfaces/innerkits/dock/", 48 "//foundation/arkui/ui_lite/interfaces/innerkits/", 49 ] 50 51 include_dirs += [ 52 "../mock/", 53 "../mock/lite/", 54 ] 55 56 cflags = [ "-Wno-deprecated-declarations" ] 57 part_name = "previewer" 58 subsystem_name = "ide" 59} 60 61ohos_source_set("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 include_dirs += [ 84 "../mock/", 85 "../mock/rich/", 86 ] 87 88 include_dirs += os_include_dirs 89 part_name = "previewer" 90 subsystem_name = "ide" 91} 92