Skip to content

Commit

Permalink
Sync up typegraph/CMakeLists.txt
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 688085711
  • Loading branch information
oprypin authored and copybara-github committed Oct 21, 2024
1 parent d2e169e commit 4dd6019
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions pytype/typegraph/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
add_package()

# BEGIN keep
pybind11_add_module(
# NAME -- this must be the fully qualified name.
pytype.typegraph.cfg
Expand Down Expand Up @@ -39,34 +40,44 @@ else()
OUTPUT_NAME cfg
)
endif()

# END keep

py_library(
NAME
cfg_utils
SRCS
cfg_utils.py
DEPS
.cfg
)

# This library is disabled because cfg.py can conflict with the typegraph.cfg
# extension module.
# py_library(
# NAME
# cfg_py
# SRCS
# cfg.py
# DEPS
# pytype.utils
# )
py_library(
NAME
typegraph_serializer
SRCS
typegraph_serializer.py
DEPS
.cfg
pytype.pytd.pytd
)

cc_library(
NAME
cfg_logging
SRCS
cfg_logging.cc
pylogging.cc
HDRS
cfg_logging.h
DEPS
.pylogging
)

cc_library(
NAME
pylogging
SRCS
pylogging.cc
HDRS
pylogging.h
)

Expand All @@ -85,6 +96,8 @@ cc_library(
SRCS
solver.cc
typegraph.cc
map_util.h
metrics.h
HDRS
solver.h
typegraph.h
Expand Down Expand Up @@ -117,6 +130,7 @@ cc_test(
map_util_test
SRCS
map_util_test.cc
map_util.h
)

cc_test(
Expand All @@ -133,6 +147,7 @@ cc_test(
solver_test
SRCS
solver_test.cc
test_util.h
DEPS
.typegraph
)
Expand All @@ -142,20 +157,11 @@ cc_test(
typegraph_test
SRCS
typegraph_test.cc
test_util.h
DEPS
.typegraph
)

py_library(
NAME
typegraph_serializer
SRCS
typegraph_serializer.py
DEPS
.cfg
pytype.pytd.pytd
)

py_test(
NAME
typegraph_serializer_test
Expand Down

0 comments on commit 4dd6019

Please sign in to comment.