1799b5ee9Sopenharmony_ci# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
2799b5ee9Sopenharmony_ci#
3799b5ee9Sopenharmony_ci# Redistribution and use in source and binary forms, with or without modification,
4799b5ee9Sopenharmony_ci# are permitted provided that the following conditions are met:
5799b5ee9Sopenharmony_ci#
6799b5ee9Sopenharmony_ci# 1. Redistributions of source code must retain the above copyright notice, this list of
7799b5ee9Sopenharmony_ci#    conditions and the following disclaimer.
8799b5ee9Sopenharmony_ci#
9799b5ee9Sopenharmony_ci# 2. Redistributions in binary form must reproduce the above copyright notice, this list
10799b5ee9Sopenharmony_ci#    of conditions and the following disclaimer in the documentation and/or other materials
11799b5ee9Sopenharmony_ci#    provided with the distribution.
12799b5ee9Sopenharmony_ci#
13799b5ee9Sopenharmony_ci# 3. Neither the name of the copyright holder nor the names of its contributors may be used
14799b5ee9Sopenharmony_ci#    to endorse or promote products derived from this software without specific prior written
15799b5ee9Sopenharmony_ci#    permission.
16799b5ee9Sopenharmony_ci#
17799b5ee9Sopenharmony_ci# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18799b5ee9Sopenharmony_ci# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19799b5ee9Sopenharmony_ci# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20799b5ee9Sopenharmony_ci# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21799b5ee9Sopenharmony_ci# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22799b5ee9Sopenharmony_ci# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23799b5ee9Sopenharmony_ci# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24799b5ee9Sopenharmony_ci# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25799b5ee9Sopenharmony_ci# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26799b5ee9Sopenharmony_ci# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27799b5ee9Sopenharmony_ci# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28799b5ee9Sopenharmony_ci
29799b5ee9Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
30799b5ee9Sopenharmony_ci
31799b5ee9Sopenharmony_cilite_component("apps") {
32799b5ee9Sopenharmony_ci  features = [ ":simple_ui_demo" ]
33799b5ee9Sopenharmony_ci}
34799b5ee9Sopenharmony_ci
35799b5ee9Sopenharmony_ciexecutable("simple_ui_demo") {
36799b5ee9Sopenharmony_ci  sources = [ "src/sample_ui.cpp" ]
37799b5ee9Sopenharmony_ci  include_dirs = [
38799b5ee9Sopenharmony_ci    "//foundation/arkui/ui_lite/interfaces/kits",
39799b5ee9Sopenharmony_ci    "//foundation/arkui/ui_lite/interfaces/innerkits",
40799b5ee9Sopenharmony_ci    "//foundation/graphic/graphic_utils_lite/interfaces",
41799b5ee9Sopenharmony_ci  ]
42799b5ee9Sopenharmony_ci  ldflags = [
43799b5ee9Sopenharmony_ci    "-lstdc++",
44799b5ee9Sopenharmony_ci    "-lpthread",
45799b5ee9Sopenharmony_ci    "-Wl,-rpath-link=$ohos_root_path/$root_out_dir",
46799b5ee9Sopenharmony_ci  ]
47799b5ee9Sopenharmony_ci
48799b5ee9Sopenharmony_ci  deps = [
49799b5ee9Sopenharmony_ci    "//foundation/arkui/ui_lite/test/framework:lite_graphic_test_framework",
50799b5ee9Sopenharmony_ci    "//foundation/graphic/graphic_utils_lite:lite_graphic_hals",
51799b5ee9Sopenharmony_ci    "//foundation/window/window_manager_lite:wms_client",
52799b5ee9Sopenharmony_ci  ]
53799b5ee9Sopenharmony_ci}
54