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 12if (ohos_kernel_type != "liteos_m") { 13 import("//build/lite/config/test.gni") 14 15 group("graphic_utils_lite_test") { 16 if (ohos_build_type == "debug") { 17 deps = [ ":graphic_test_utils_door" ] 18 } 19 } 20 21 config("graphic_utils_lite_test_config") { 22 include_dirs = [] 23 ldflags = [ 24 "-lstdc++", 25 "-Wl,-rpath-link=$ohos_root_path/$root_out_dir", 26 ] 27 } 28 29 if (ohos_build_type == "debug") { 30 unittest("graphic_test_utils_door") { 31 output_extension = "bin" 32 output_dir = "$root_out_dir/test/unittest/graphic" 33 deps = [ "//foundation/graphic/graphic_utils_lite:utils_lite" ] 34 configs = [ ":graphic_utils_lite_test_config" ] 35 sources = [ 36 "color_unit_test.cpp", 37 "geometry2d_unit_test.cpp", 38 "graphic_math_unit_test.cpp", 39 "list_unit_test.cpp", 40 "rect_unit_test.cpp", 41 "style_unit_test.cpp", 42 "vector_unit_test.cpp", 43 ] 44 } 45 } 46} else { 47 group("graphic_utils_lite_test") { 48 } 49} 50