diff options
author | Loo Rong Jie <loorongjie@gmail.com> | 2018-08-22T13·13+0800 |
---|---|---|
committer | Loo Rong Jie <loorongjie@gmail.com> | 2018-10-09T15·33+0800 |
commit | 73b908fbcf9821fb2b1d4975d5cd03002f2fa7f7 (patch) | |
tree | 6b843c8fd92852261290a4df2d5f1a072e9ad0b6 | |
parent | 027ebfdb8fe9dc3fd85d34fbc5af0b2b7ac298f4 (diff) |
Migrate some internal base targets
-rw-r--r-- | absl/base/CMakeLists.txt | 61 |
1 files changed, 27 insertions, 34 deletions
diff --git a/absl/base/CMakeLists.txt b/absl/base/CMakeLists.txt index a73ea359d7b2..eb29cd282576 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 ) |