• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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
14configs = [ "${MAPLEALL_ROOT}:mapleallcompilecfg" ]
15
16cflags_cc -= [ "-Werror" ]
17
18include_directories = [
19  "${MAPLE_ROOT}/tools/gtest_lib/include",
20  "${MAPLEALL_ROOT}/maple_util/include",
21  "${MAPLEALL_ROOT}/maple_driver/include",
22]
23src_mapleallUT = [
24  "cl_ut_test.cpp",
25  "triple_ut_test.cpp",
26]
27
28executable("mapleallUT") {
29  sources = src_mapleallUT
30  include_dirs = include_directories
31  output_dir = "${root_out_dir}/lib/${HOST_ARCH}"
32
33  deps = [
34    "${MAPLEALL_ROOT}/maple_driver:libmaple_driver",
35    "${MAPLEALL_ROOT}/maple_ir:libmplir",
36    "${MAPLEALL_ROOT}/maple_util:libcommandline",
37    "${MAPLEALL_ROOT}/maple_util:libmplutil",
38    "${MAPLEALL_ROOT}/mempool:libmempool",
39    "${MAPLEALL_ROOT}/mpl2mpl:libmpl2mpl",
40    "${MAPLEALL_THIRD_PARTY_ROOT}/bounds_checking_function:libsec_static",
41  ]
42
43  libs = [
44    "${MAPLE_ROOT}/tools/gtest_lib/lib/libgmock.a",
45    "${MAPLE_ROOT}/tools/gtest_lib/lib/libgmock_main.a",
46    "${MAPLE_ROOT}/tools/gtest_lib/lib/libgtest.a",
47    "${MAPLE_ROOT}/tools/gtest_lib/lib/libgtest_main.a",
48    "pthread",
49  ]
50}
51