• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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_template.gni")
15import("test_src_functionalext_symver.gni")
16
17foreach(s, functionalext_symver_list) {
18  test_unittest(s) {
19    target_dir = "functionalext/symver"
20  }
21}
22
23group("functionalext_symver_test") {
24  testonly = true
25  deps = [ ":dso_shared" ]
26
27  foreach(s, functionalext_symver_list) {
28    deps += [ ":${s}" ]
29  }
30}
31
32group("dso_shared") {
33  testonly = true
34
35  deps = [
36    ":dso_easy_symver",
37    ":dso_hard_symver",
38    ":dso_no_symver",
39    ":dso_symver",
40    ":reloc_symver_dso",
41  ]
42}
43
44test_sharedlib("dso_easy_symver") {
45  version_script = "dso_easy_symver.map"
46}
47
48test_sharedlib("dso_hard_symver") {
49  version_script = "dso_hard_symver.map"
50}
51
52test_sharedlib("dso_no_symver") {
53}
54
55test_sharedlib("dso_symver") {
56}
57
58test_sharedlib("reloc_symver_dso") {
59  deps = [
60    ":dso_easy_symver",
61    ":dso_no_symver",
62  ]
63}
64