• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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      "//third_party/freetype/include",
32    ]
33    ldflags = [
34      "-lstdc++",
35      "-lpthread",
36      "-Wl,-rpath-link=$ohos_root_path/$root_out_dir",
37    ]
38
39    deps = [
40      "//foundation/arkui/ui_lite/test/framework:lite_graphic_test_framework",
41      "//foundation/graphic/graphic_utils_lite:lite_graphic_hals",
42      "//foundation/window/window_manager_lite:wms_client",
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      "//third_party/freetype/include",
53    ]
54    ldflags = [
55      "-lstdc++",
56      "-lpthread",
57      "-Wl,-rpath-link=$ohos_root_path/$root_out_dir",
58    ]
59    deps = [
60      "//foundation/arkui/ui_lite/test/framework:auto_framework",
61      "//foundation/graphic/graphic_utils_lite:lite_graphic_hals",
62      "//foundation/window/window_manager_lite:wms_client",
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      "//third_party/freetype/include",
78    ]
79    ldflags = [
80      "-lstdc++",
81      "-lpthread",
82      "-Wl,-rpath-link=$ohos_root_path/$root_out_dir",
83    ]
84
85    deps = [ "//foundation/arkui/ui_lite:ui_lite" ]
86    output_dir = "$root_out_dir/dev_tools"
87  }
88}
89