1799b5ee9Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2799b5ee9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3799b5ee9Sopenharmony_ci# you may not use this file except in compliance with the License.
4799b5ee9Sopenharmony_ci# You may obtain a copy of the License at
5799b5ee9Sopenharmony_ci#
6799b5ee9Sopenharmony_ci#    http://www.apache.org/licenses/LICENSE-2.0
7799b5ee9Sopenharmony_ci#
8799b5ee9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9799b5ee9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10799b5ee9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11799b5ee9Sopenharmony_ci# See the License for the specific language governing permissions and
12799b5ee9Sopenharmony_ci# limitations under the License.
13799b5ee9Sopenharmony_ci
14799b5ee9Sopenharmony_cideclare_args() {
15799b5ee9Sopenharmony_ci  app_ui_test = false
16799b5ee9Sopenharmony_ci  app_ability_test = true
17799b5ee9Sopenharmony_ci}
18799b5ee9Sopenharmony_ci
19799b5ee9Sopenharmony_cistatic_library("example") {
20799b5ee9Sopenharmony_ci  sources = [ "app.cpp" ]
21799b5ee9Sopenharmony_ci  defines = []
22799b5ee9Sopenharmony_ci  deps = []
23799b5ee9Sopenharmony_ci
24799b5ee9Sopenharmony_ci  include_dirs = []
25799b5ee9Sopenharmony_ci
26799b5ee9Sopenharmony_ci  if (app_ui_test) {
27799b5ee9Sopenharmony_ci    deps += [ "ui:ui_demo" ]
28799b5ee9Sopenharmony_ci    defines += [ "UI_TEST" ]
29799b5ee9Sopenharmony_ci    include_dirs += [ "ui" ]
30799b5ee9Sopenharmony_ci  } else if (app_ability_test) {
31799b5ee9Sopenharmony_ci    deps += [ "ability:ability_demo" ]
32799b5ee9Sopenharmony_ci    defines += [ "ABILITY_TEST" ]
33799b5ee9Sopenharmony_ci    include_dirs += [ "ability" ]
34799b5ee9Sopenharmony_ci  }
35799b5ee9Sopenharmony_ci}
36