summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Loo Rong Jie <loorongjie@gmail.com>2018-08-22 21:13:18 +0800
committerGravatar Loo Rong Jie <loorongjie@gmail.com>2018-10-09 23:33:45 +0800
commit73b908fbcf9821fb2b1d4975d5cd03002f2fa7f7 (patch)
tree6b843c8fd92852261290a4df2d5f1a072e9ad0b6
parent027ebfdb8fe9dc3fd85d34fbc5af0b2b7ac298f4 (diff)
Migrate some internal base targets
-rw-r--r--absl/base/CMakeLists.txt61
1 files changed, 27 insertions, 34 deletions
diff --git a/absl/base/CMakeLists.txt b/absl/base/CMakeLists.txt
index a73ea359..eb29cd28 100644
--- a/absl/base/CMakeLists.txt
+++ b/absl/base/CMakeLists.txt
@@ -83,20 +83,17 @@ absl_library(
base
)
-# throw delegate library
-set(THROW_DELEGATE_SRC "internal/throw_delegate.cc")
-
-absl_library(
- TARGET
- absl_throw_delegate
- SOURCES
- ${THROW_DELEGATE_SRC}
- PUBLIC_LIBRARIES
- ${THROW_DELEGATE_PUBLIC_LIBRARIES}
- PRIVATE_COMPILE_FLAGS
- ${ABSL_EXCEPTIONS_FLAG}
- EXPORT_NAME
+absl_cc_library(
+ NAME
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}
)
-
-# spinlock_wait library
-set(SPINLOCK_WAIT_SRC "internal/spinlock_wait.cc")
-
-absl_library(
- TARGET
- absl_spinlock_wait
- SOURCES
- ${SPINLOCK_WAIT_SRC}
-)
-
-
-# malloc_internal library
-list(APPEND MALLOC_INTERNAL_SRC
- "internal/low_level_alloc.cc"
+absl_cc_library(
+ NAME
+ spinlock_wait
+ SRCS
+ "internal/spinlock_wait.cc"
+ HDRS
+ "internal/scheduling_mode.h"
+ "internal/spinlock_wait.h"
)
-absl_library(
- TARGET
- absl_malloc_internal
- SOURCES
- ${MALLOC_INTERNAL_SRC}
- PUBLIC_LIBRARIES
+absl_cc_library(
+ NAME
+ malloc_internal
+ SRCS
+ "internal/low_level_alloc.cc"
+ HDRS
+ "internal/direct_mmap.h"
+ "internal/low_level_alloc.h"
+ DEPS
absl_dynamic_annotations
)