# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("../../../test_template.gni") test_unittest("ldso_randomization_test") { target_dir = "functionalext/ldso_randomization" } test_unittest("ldso_randomization_manual") { target_dir = "functionalext/ldso_randomization" } ohos_shared_library("ldso_randomization_dep_e") { include_dirs = [ "." ] sources = [ "ldso_randomization_dep_e.c" ] output_name = "ldso_randomization_dep_e" output_extension = "so" subsystem_name = "musl" part_name = "libc-test-lib" } ohos_shared_library("ldso_randomization_dep_d") { include_dirs = [ "." ] sources = [ "ldso_randomization_dep_d.c" ] output_name = "ldso_randomization_dep_d" output_extension = "so" subsystem_name = "musl" part_name = "libc-test-lib" } ohos_shared_library("ldso_randomization_dep_c") { include_dirs = [ "." ] sources = [ "ldso_randomization_dep_c.c" ] output_name = "ldso_randomization_dep_c" output_extension = "so" subsystem_name = "musl" part_name = "libc-test-lib" } ohos_shared_library("ldso_randomization_dep_b") { include_dirs = [ "." ] sources = [ "ldso_randomization_dep_b.c" ] output_name = "ldso_randomization_dep_b" output_extension = "so" deps = [ ":ldso_randomization_dep_d", ":ldso_randomization_dep_e", ] subsystem_name = "musl" part_name = "libc-test-lib" } ohos_shared_library("ldso_randomization_dep_a") { include_dirs = [ "." ] sources = [ "ldso_randomization_dep_a.c" ] output_name = "ldso_randomization_dep_a" output_extension = "so" deps = [ ":ldso_randomization_dep_b", ":ldso_randomization_dep_c", ] subsystem_name = "musl" part_name = "libc-test-lib" } ohos_shared_library("ldso_randomization_dep") { include_dirs = [ "." ] sources = [ "ldso_randomization_dep.c" ] output_name = "ldso_randomization_dep" output_extension = "so" subsystem_name = "musl" part_name = "libc-test-lib" } group("functionalext_ldso_randomization_test") { testonly = true deps = [ ":ldso_randomization_dep", ":ldso_randomization_dep_a", ":ldso_randomization_manual", ":ldso_randomization_test", ] }