162b8cbc9Sopenharmony_ci# Copyright (c) 2020-2021 Huawei Device Co., Ltd. 262b8cbc9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 362b8cbc9Sopenharmony_ci# you may not use this file except in compliance with the License. 462b8cbc9Sopenharmony_ci# You may obtain a copy of the License at 562b8cbc9Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 662b8cbc9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 762b8cbc9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 862b8cbc9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 962b8cbc9Sopenharmony_ci# See the License for the specific language governing permissions and 1062b8cbc9Sopenharmony_ci# limitations under the License. 1162b8cbc9Sopenharmony_ci 1262b8cbc9Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni") 1362b8cbc9Sopenharmony_ciimport("//build/lite/config/subsystem/graphic/config.gni") 1462b8cbc9Sopenharmony_ci 1562b8cbc9Sopenharmony_cigroup("window_manager_lite_test") { 1662b8cbc9Sopenharmony_ci if (ohos_build_type == "debug") { 1762b8cbc9Sopenharmony_ci deps = [ 1862b8cbc9Sopenharmony_ci ":sample_auto_ui", 1962b8cbc9Sopenharmony_ci ":sample_ui", 2062b8cbc9Sopenharmony_ci ":sample_window", 2162b8cbc9Sopenharmony_ci ] 2262b8cbc9Sopenharmony_ci } 2362b8cbc9Sopenharmony_ci} 2462b8cbc9Sopenharmony_ci 2562b8cbc9Sopenharmony_ciif (ohos_build_type == "debug") { 2662b8cbc9Sopenharmony_ci executable("sample_ui") { 2762b8cbc9Sopenharmony_ci sources = [ "sample_ui.cpp" ] 2862b8cbc9Sopenharmony_ci include_dirs = [ 2962b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite/frameworks", 3062b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite/test/framework", 3162b8cbc9Sopenharmony_ci ] 3262b8cbc9Sopenharmony_ci ldflags = [ 3362b8cbc9Sopenharmony_ci "-lstdc++", 3462b8cbc9Sopenharmony_ci "-lpthread", 3562b8cbc9Sopenharmony_ci "-Wl,-rpath-link=$ohos_root_path/$root_out_dir", 3662b8cbc9Sopenharmony_ci ] 3762b8cbc9Sopenharmony_ci 3862b8cbc9Sopenharmony_ci deps = [ 3962b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite/test/framework:lite_graphic_test_framework", 4062b8cbc9Sopenharmony_ci "//foundation/graphic/graphic_utils_lite:lite_graphic_hals", 4162b8cbc9Sopenharmony_ci "//foundation/window/window_manager_lite:wms_client", 4262b8cbc9Sopenharmony_ci "//third_party/freetype:freetype", 4362b8cbc9Sopenharmony_ci ] 4462b8cbc9Sopenharmony_ci output_dir = "$root_out_dir/dev_tools" 4562b8cbc9Sopenharmony_ci } 4662b8cbc9Sopenharmony_ci 4762b8cbc9Sopenharmony_ci executable("sample_auto_ui") { 4862b8cbc9Sopenharmony_ci sources = [ "sample_ui.cpp" ] 4962b8cbc9Sopenharmony_ci include_dirs = [ 5062b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite/frameworks", 5162b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite/test/framework", 5262b8cbc9Sopenharmony_ci ] 5362b8cbc9Sopenharmony_ci ldflags = [ 5462b8cbc9Sopenharmony_ci "-lstdc++", 5562b8cbc9Sopenharmony_ci "-lpthread", 5662b8cbc9Sopenharmony_ci "-Wl,-rpath-link=$ohos_root_path/$root_out_dir", 5762b8cbc9Sopenharmony_ci ] 5862b8cbc9Sopenharmony_ci deps = [ 5962b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite/test/framework:auto_framework", 6062b8cbc9Sopenharmony_ci "//foundation/graphic/graphic_utils_lite:lite_graphic_hals", 6162b8cbc9Sopenharmony_ci "//foundation/window/window_manager_lite:wms_client", 6262b8cbc9Sopenharmony_ci "//third_party/freetype:freetype", 6362b8cbc9Sopenharmony_ci ] 6462b8cbc9Sopenharmony_ci 6562b8cbc9Sopenharmony_ci output_dir = "$root_out_dir/dev_tools" 6662b8cbc9Sopenharmony_ci } 6762b8cbc9Sopenharmony_ci 6862b8cbc9Sopenharmony_ci executable("sample_window") { 6962b8cbc9Sopenharmony_ci sources = [ 7062b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite/test/framework/common/ui_text_language.cpp", 7162b8cbc9Sopenharmony_ci "sample_window.cpp", 7262b8cbc9Sopenharmony_ci ] 7362b8cbc9Sopenharmony_ci include_dirs = [ 7462b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite/frameworks", 7562b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite/test/framework", 7662b8cbc9Sopenharmony_ci "//foundation/graphic/surface_lite/interfaces/kits", 7762b8cbc9Sopenharmony_ci ] 7862b8cbc9Sopenharmony_ci ldflags = [ 7962b8cbc9Sopenharmony_ci "-lstdc++", 8062b8cbc9Sopenharmony_ci "-lpthread", 8162b8cbc9Sopenharmony_ci "-Wl,-rpath-link=$ohos_root_path/$root_out_dir", 8262b8cbc9Sopenharmony_ci ] 8362b8cbc9Sopenharmony_ci 8462b8cbc9Sopenharmony_ci deps = [ 8562b8cbc9Sopenharmony_ci "//foundation/arkui/ui_lite:ui_lite", 8662b8cbc9Sopenharmony_ci "//third_party/freetype:freetype", 8762b8cbc9Sopenharmony_ci ] 8862b8cbc9Sopenharmony_ci output_dir = "$root_out_dir/dev_tools" 8962b8cbc9Sopenharmony_ci } 9062b8cbc9Sopenharmony_ci} 91