1# Copyright (c) 2020-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# http://www.apache.org/licenses/LICENSE-2.0 6# Unless required by applicable law or agreed to in writing, software 7# distributed under the License is distributed on an "AS IS" BASIS, 8# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 9# See the License for the specific language governing permissions and 10# limitations under the License. 11 12import("//build/lite/config/component/lite_component.gni") 13import("//build/lite/config/subsystem/graphic/config.gni") 14 15group("window_manager_lite_test") { 16 if (ohos_build_type == "debug") { 17 deps = [ 18 ":sample_auto_ui", 19 ":sample_ui", 20 ":sample_window", 21 ] 22 } 23} 24 25if (ohos_build_type == "debug") { 26 executable("sample_ui") { 27 sources = [ "sample_ui.cpp" ] 28 include_dirs = [ 29 "//foundation/arkui/ui_lite/frameworks", 30 "//foundation/arkui/ui_lite/test/framework", 31 ] 32 ldflags = [ 33 "-lstdc++", 34 "-lpthread", 35 "-Wl,-rpath-link=$ohos_root_path/$root_out_dir", 36 ] 37 38 deps = [ 39 "//foundation/arkui/ui_lite/test/framework:lite_graphic_test_framework", 40 "//foundation/graphic/graphic_utils_lite:lite_graphic_hals", 41 "//foundation/window/window_manager_lite:wms_client", 42 "//third_party/freetype:freetype", 43 ] 44 output_dir = "$root_out_dir/dev_tools" 45 } 46 47 executable("sample_auto_ui") { 48 sources = [ "sample_ui.cpp" ] 49 include_dirs = [ 50 "//foundation/arkui/ui_lite/frameworks", 51 "//foundation/arkui/ui_lite/test/framework", 52 ] 53 ldflags = [ 54 "-lstdc++", 55 "-lpthread", 56 "-Wl,-rpath-link=$ohos_root_path/$root_out_dir", 57 ] 58 deps = [ 59 "//foundation/arkui/ui_lite/test/framework:auto_framework", 60 "//foundation/graphic/graphic_utils_lite:lite_graphic_hals", 61 "//foundation/window/window_manager_lite:wms_client", 62 "//third_party/freetype:freetype", 63 ] 64 65 output_dir = "$root_out_dir/dev_tools" 66 } 67 68 executable("sample_window") { 69 sources = [ 70 "//foundation/arkui/ui_lite/test/framework/common/ui_text_language.cpp", 71 "sample_window.cpp", 72 ] 73 include_dirs = [ 74 "//foundation/arkui/ui_lite/frameworks", 75 "//foundation/arkui/ui_lite/test/framework", 76 "//foundation/graphic/surface_lite/interfaces/kits", 77 ] 78 ldflags = [ 79 "-lstdc++", 80 "-lpthread", 81 "-Wl,-rpath-link=$ohos_root_path/$root_out_dir", 82 ] 83 84 deps = [ 85 "//foundation/arkui/ui_lite:ui_lite", 86 "//third_party/freetype:freetype", 87 ] 88 output_dir = "$root_out_dir/dev_tools" 89 } 90} 91