blob: 78b9665e072a4ea3fdb7514f6aa8cdacf5bbb042 [file] [log] [blame]
iree_cc_library(
NAME
util_base
HDRS
"util.h"
SRCS
"util.c"
DEPS
::alloc
iree::modules::hal
)
if (${BUILD_WITH_KELVIN})
target_compile_definitions(model_util_util_base PUBLIC BUILD_KELVIN)
endif()
# static library using regular HAL
iree_cc_library(
NAME
util_static
DEPS
::util_base
device::device_static_loader
)
# vmvx using regular HAL
iree_cc_library(
NAME
util_vmvx
DEPS
::util_base
device::device_vmvx_loader
)
# static library using inline HAL
iree_cc_library(
NAME
util_static_inline
HDRS
"util.h"
SRCS
"util.c"
DEPS
::alloc
device::device_static_loader
iree::modules::hal::inline
iree::modules::hal::loader
COPTS
"-DBUILD_LOADER_HAL"
)
# vmvx using inline HAL
iree_cc_library(
NAME
util_vmvx_inline
HDRS
"util.h"
SRCS
"util.c"
DEPS
::alloc
device::device_vmvx_loader
iree::modules::hal::inline
COPTS
"-DBUILD_INLINE_HAL"
)
iree_cc_library(
NAME
alloc
HDRS
"alloc.h"
SRCS
"alloc.c"
DEPS
iree::base
)