Migrate some internal base targets

This commit is contained in:
Loo Rong Jie 2018-08-22 21:13:18 +08:00
parent 027ebfdb8f
commit 73b908fbcf

View file

@ -83,20 +83,17 @@ absl_library(
base base
) )
# throw delegate library absl_cc_library(
set(THROW_DELEGATE_SRC "internal/throw_delegate.cc") NAME
absl_library(
TARGET
absl_throw_delegate
SOURCES
${THROW_DELEGATE_SRC}
PUBLIC_LIBRARIES
${THROW_DELEGATE_PUBLIC_LIBRARIES}
PRIVATE_COMPILE_FLAGS
${ABSL_EXCEPTIONS_FLAG}
EXPORT_NAME
throw_delegate throw_delegate
SRCS
"internal/throw_delegate.cc"
HDRS
"internal/throw_delegate.h"
COPTS
${ABSL_EXCEPTIONS_FLAG}
DEPS
absl::base
) )
@ -131,29 +128,25 @@ absl_library(
${DYNAMIC_ANNOTATIONS_SRC} ${DYNAMIC_ANNOTATIONS_SRC}
) )
absl_cc_library(
# spinlock_wait library NAME
set(SPINLOCK_WAIT_SRC "internal/spinlock_wait.cc") spinlock_wait
SRCS
absl_library( "internal/spinlock_wait.cc"
TARGET HDRS
absl_spinlock_wait "internal/scheduling_mode.h"
SOURCES "internal/spinlock_wait.h"
${SPINLOCK_WAIT_SRC}
) )
absl_cc_library(
# malloc_internal library NAME
list(APPEND MALLOC_INTERNAL_SRC malloc_internal
SRCS
"internal/low_level_alloc.cc" "internal/low_level_alloc.cc"
) HDRS
"internal/direct_mmap.h"
absl_library( "internal/low_level_alloc.h"
TARGET DEPS
absl_malloc_internal
SOURCES
${MALLOC_INTERNAL_SRC}
PUBLIC_LIBRARIES
absl_dynamic_annotations absl_dynamic_annotations
) )