• 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#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/lite/config/subsystem/aafwk/config.gni")
15import("//test/xts/tools/lite/build/suite_lite.gni")
16
17hcpptest_suite("ActsMediaPlayerTest") {
18  suite_name = "acts"
19  sources = [ "src/ActsMediaPlayerAudioTest.cpp" ]
20  if (ohos_kernel_type == "liteos_a" &&
21      enable_ohos_appexecfwk_feature_ability == true) {
22    sources += [ "src/ActsMediaPlayerVideoTest.cpp" ]
23  }
24
25  ldflags = [ "-lstdc++" ]
26  ldflags += [ "-lm" ]
27  if (ohos_kernel_type == "linux") {
28    ldflags += [ "-lpthread" ]
29  }
30  ldflags += [ "-Wl,-rpath-link=$ohos_root_path/$root_out_dir" ]
31
32  include_dirs = [
33    "src",
34    "//test/xts/acts/multimedia_lite/utils_posix/common/include",
35    "//third_party/bounds_checking_function/include",
36    "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base",
37    "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/async",
38    "//foundation/multimedia/media_lite/interfaces/kits/player_lite",
39    "//foundation/multimedia/media_utils_lite/include",
40    "//foundation/multimedia/media_lite/test/unittest/player_lite",
41  ]
42
43  deps = [
44    "//foundation/multimedia/media_lite/frameworks/player_lite:player_lite",
45    "//foundation/multimedia/media_utils_lite:media_common",
46    "//third_party/bounds_checking_function:libsec_shared",
47  ]
48
49  cflags = [ "-Wno-error" ]
50}
51