From 21be1adade6f4ca2646c60af11cbcc4474db0abe Mon Sep 17 00:00:00 2001 From: binaryfz Date: Wed, 6 Jan 2021 09:47:23 +0800 Subject: [PATCH] add maple_util Build.gn --- src/mapleall/maple_util/BUILD.gn | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 src/mapleall/maple_util/BUILD.gn diff --git a/src/mapleall/maple_util/BUILD.gn b/src/mapleall/maple_util/BUILD.gn new file mode 100755 index 0000000000..1a2830979c --- /dev/null +++ b/src/mapleall/maple_util/BUILD.gn @@ -0,0 +1,31 @@ +src_libmplutil = [ + "src/mpl_logging.cpp", + "src/muid.cpp", + "src/namemangler.cpp", + "src/literalstrname.cpp", + "src/file_layout.cpp", + "src/mpl_scheduler.cpp", + "src/itab_util.cpp", + "src/mpl_timer.cpp", + "src/profile.cpp", + "src/string_utils.cpp", + "src/error_code.cpp", + "src/thread_env.cpp", +] + +include_libmplutil = [ + "${MAPLEALL_ROOT}/maple_util/include", + "${MAPLEALL_ROOT}/maple_ir/include", + "${MAPLEALL_ROOT}/mempool/include", + "${MAPLEALL_ROOT}/maple_driver/include", + "${MAPLE_ROOT}/third-party/bounds_checking_function/include", +] + +configs = [ "${MAPLEALL_ROOT}:mapleallcompilecfg" ] + +static_library("libmplutil") { + sources = src_libmplutil + include_dirs = include_libmplutil + libs = [ "pthread" ] + output_dir = "${root_out_dir}/lib/${HOST_ARCH}" +} -- Gitee