• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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("//test/xts/tools/build/suite.gni")
15
16module_output_path = "av_codec/ActsAvAudioEncoderCapiNdkTest"
17
18test_cflags = [
19  "-std=c++17",
20  "-fno-rtti",
21  "-fno-exceptions",
22  "-Wall",
23  "-fno-common",
24  "-fstack-protector-strong",
25  "-Wshadow",
26  "-FPIC",
27  "-FS",
28  "-O2",
29  "-D_FORTIFY_SOURCE=2",
30  "-fvisibility=hidden",
31  "-Wformat=2",
32  "-Wdate-time",
33  "-Werror",
34  "-Wextra",
35  "-Wimplicit-fallthrough",
36  "-Wsign-compare",
37  "-Wunused-parameter",
38]
39
40##################################################################################################################
41ohos_moduletest_suite("ActsAvAudioEncoderCapiNdkTest") {
42  sanitize = {
43    debug = false
44  }
45  module_out_path = module_output_path
46  include_dirs = []
47  include_dirs += [
48    "./",
49    "//interface/sdk_c",
50    "//interface/sdk_c/multimedia/av_codec",
51    "//interface/sdk_c/multimedia/media_foundation",
52  ]
53
54  cflags = test_cflags
55
56  cflags_cc = cflags
57
58  public_configs = []
59
60  sources = [ "./src/audio_encoder_capi_ndk_test.cpp" ]
61
62  deps = [ "//foundation/multimedia/av_codec/interfaces/kits/c:capi_packages" ]
63
64  external_deps = [ "media_foundation:native_media_core" ]
65
66  part_name = "av_codec"
67  subsystem_name = "multimedia"
68}
69