Skip to content

Commit

Permalink
add includes for cc_library
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Jul 3, 2024
1 parent 23d37b7 commit ffbb1e9
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 5 deletions.
21 changes: 18 additions & 3 deletions src/babylon/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cc_library(
name = 'absl_base_internal_invoke',
hdrs = ['absl_base_internal_invoke.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':environment',
Expand All @@ -31,6 +32,7 @@ cc_library(
name = 'absl_numeric_bits',
hdrs = ['absl_numeric_bits.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':environment',
Expand All @@ -43,6 +45,7 @@ cc_library(
srcs = ['any.cpp'],
hdrs = ['any.h', 'any.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':type_traits',
Expand All @@ -53,8 +56,8 @@ cc_library(
name = 'application_context',
srcs = ['application_context.cpp'],
hdrs = ['application_context.h'],
includes = ['.'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':any',
Expand All @@ -67,8 +70,9 @@ cc_library(
cc_library(
name = 'environment',
hdrs = ['environment.h', 'protect.h', 'unprotect.h'],
strip_include_prefix = '//src',
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
'@com_google_absl//absl/base:core_headers',
],
Expand All @@ -79,6 +83,7 @@ cc_library(
srcs = ['executor.cpp'],
hdrs = ['executor.h', 'executor.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':future',
Expand All @@ -90,6 +95,7 @@ cc_library(
name = 'future',
hdrs = ['future.h', 'future.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':move_only_function',
Expand All @@ -102,6 +108,7 @@ cc_library(
srcs = ['mlock.cpp'],
hdrs = ['mlock.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':string_view',
Expand All @@ -114,6 +121,7 @@ cc_library(
name = 'move_only_function',
hdrs = ['move_only_function.h', 'move_only_function.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':type_traits',
Expand All @@ -125,6 +133,7 @@ cc_library(
srcs = ['new.cpp'],
hdrs = ['new.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':environment',
Expand All @@ -135,6 +144,7 @@ cc_library(
name = 'sanitizer_helper',
hdrs = ['sanitizer_helper.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':environment',
Expand All @@ -144,8 +154,9 @@ cc_library(
cc_library(
name = 'serialization',
hdrs = ['serialization.h'],
strip_include_prefix = '//src',
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
'//src/babylon/serialization',
],
Expand All @@ -155,6 +166,7 @@ cc_library(
name = 'string',
hdrs = ['string.h', 'string.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':type_traits',
Expand All @@ -166,6 +178,7 @@ cc_library(
name = 'string_view',
hdrs = ['string_view.h', 'string_view.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':environment',
Expand All @@ -177,6 +190,7 @@ cc_library(
srcs = ['time.cpp'],
hdrs = ['time.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':environment',
Expand All @@ -188,6 +202,7 @@ cc_library(
name = 'type_traits',
hdrs = ['type_traits.h', 'type_traits.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':absl_base_internal_invoke',
Expand Down
3 changes: 2 additions & 1 deletion src/babylon/anyflow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ cc_library(
name = 'engine',
srcs = glob(['*.cpp']),
hdrs = glob(['*.h', '*.hpp']),
strip_include_prefix = '//src',
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
'//src/babylon:any',
'//src/babylon/concurrent:transient_topic',
Expand Down
3 changes: 2 additions & 1 deletion src/babylon/anyflow/builtin/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ cc_library(
name = 'builtin',
srcs = glob(['*.cpp']),
hdrs = glob(['*.h', '*.hpp']),
strip_include_prefix = '//src',
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
'//src/babylon/anyflow:engine',
'//:boost.spirit',
Expand Down
9 changes: 9 additions & 0 deletions src/babylon/concurrent/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ cc_library(
name = 'bounded_queue',
hdrs = ['bounded_queue.h', 'bounded_queue.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':sched_interface',
Expand All @@ -34,6 +35,7 @@ cc_library(
srcs = ['counter.cpp'],
hdrs = ['counter.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':thread_local',
Expand All @@ -44,6 +46,7 @@ cc_library(
name = 'id_allocator',
hdrs = ['id_allocator.h', 'id_allocator.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':vector',
Expand All @@ -54,6 +57,7 @@ cc_library(
name = 'object_pool',
hdrs = ['object_pool.h', 'object_pool.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':bounded_queue',
Expand All @@ -65,6 +69,7 @@ cc_library(
name = 'sched_interface',
hdrs = ['sched_interface.h', 'sched_interface.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
'//src/babylon:absl_numeric_bits',
Expand All @@ -75,6 +80,7 @@ cc_library(
name = 'thread_local',
hdrs = ['thread_local.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':id_allocator',
Expand All @@ -86,6 +92,7 @@ cc_library(
srcs = ['transient_hash_table.cpp'],
hdrs = ['transient_hash_table.h', 'transient_hash_table.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':counter',
Expand All @@ -98,6 +105,7 @@ cc_library(
name = 'transient_topic',
hdrs = ['transient_topic.h', 'transient_topic.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':sched_interface',
Expand All @@ -109,6 +117,7 @@ cc_library(
name = 'vector',
hdrs = ['vector.h', 'vector.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
'//src/babylon:new',
Expand Down
3 changes: 3 additions & 0 deletions src/babylon/logging/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ cc_library(
srcs = ['async_file_appender.cpp'],
hdrs = ['async_file_appender.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
'//src/babylon/reusable:page_allocator',
Expand All @@ -29,6 +30,7 @@ cc_library(
srcs = ['interface.cpp'],
hdrs = ['interface.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':log_stream',
Expand All @@ -40,6 +42,7 @@ cc_library(
srcs = ['log_stream.cpp'],
hdrs = ['log_stream.h', 'log_stream.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
'//src/babylon:type_traits',
Expand Down
8 changes: 8 additions & 0 deletions src/babylon/reusable/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ cc_library(
name = 'allocator',
hdrs = ['allocator.h', 'allocator.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':memory_resource',
Expand All @@ -27,6 +28,7 @@ cc_library(
name = 'manager',
hdrs = ['manager.h', 'manager.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':traits',
Expand All @@ -46,6 +48,7 @@ cc_library(
srcs = ['memory_resource.cpp'],
hdrs = ['memory_resource.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':page_allocator',
Expand All @@ -60,6 +63,7 @@ cc_library(
srcs = ['message.trick.cpp'],
hdrs = ['traits.h', 'message.h'],
copts = BABYLON_COPTS + ['-fno-access-control'],
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':allocator',
Expand All @@ -72,6 +76,7 @@ cc_library(
srcs = ['page_allocator.cpp'],
hdrs = ['page_allocator.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
'//src/babylon/concurrent:bounded_queue',
Expand All @@ -83,6 +88,7 @@ cc_library(
name = 'string',
hdrs = ['string.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':traits',
Expand All @@ -103,6 +109,7 @@ cc_library(
srcs = ['message.cpp'],
hdrs = ['traits.h', 'message.h'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':allocator',
Expand All @@ -114,6 +121,7 @@ cc_library(
name = 'vector',
hdrs = ['vector.h', 'vector.hpp'],
copts = BABYLON_COPTS,
includes = ['//src'],
strip_include_prefix = '//src',
deps = [
':traits',
Expand Down

0 comments on commit ffbb1e9

Please sign in to comment.