BUILD.gn 1.5 KB
Newer Older
M
mamingshuai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Copyright (c) 2020 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/xts/tools/lite/build/suite_lite.gni")

open_source_suite("ActsOpenPosixBuildOnlyTest") {
  suite_name = "acts"
  exec_command_path = "//third_party/ltp/testcases/open_posix_testsuite/"
J
jiyong 已提交
19 20
  compiler =
      rebase_path("${ohos_build_compiler_dir}/bin/${ohos_build_compiler}")
C
chuaizhzh 已提交
21
  sysroot_path = rebase_path(ohos_current_sysroot)
C
chuaizhzh 已提交
22 23
  arch_cflags = string_join(" ", target_arch_cflags)
  prebuild_command = "make clean && make distclean && ./scripts/generate-makefiles.sh $compiler ${ohos_root_path} ${sysroot_path} \"${arch_cflags}\" && make -j -C conformance/definitions"
M
mamingshuai 已提交
24 25 26 27 28 29 30 31 32 33 34
  exec_sub_dir = "conformance/definitions"
  build_args = [
    "signal_h/logfile",
    "pthread_h/logfile",
    "errno_h/logfile",
    "mqueue_h/logfile",
    "time_h/logfile",
    "unistd_h/logfile",
    "aio_h/logfile",
    "sched_h/logfile",
  ]
J
jiyong 已提交
35
  deps = [ ":install_patch" ]
M
mamingshuai 已提交
36 37 38
}

build_ext_component("install_patch") {
J
jiyong 已提交
39 40
  exec_path = rebase_path(".", root_build_dir)
  command = "./../../ltp-patch/patch.sh"
M
mamingshuai 已提交
41
}