Skip to content

Commit

Permalink
Do not include python codegen into cmake codegen (#10697)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexv-smirnov authored Oct 22, 2024
1 parent 9335b61 commit 2c27e6f
Showing 1 changed file with 33 additions and 23 deletions.
56 changes: 33 additions & 23 deletions ydb/core/base/generated/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,44 @@ PEERDIR(
ydb/core/protos
)

RUN_PROGRAM(
ydb/core/base/generated/codegen
runtime_feature_flags.h.in
IF (EXPORT_CMAKE)
# No Python codegen in cmake, pregenerate from ya to compile
SRCS(
runtime_feature_flags.h
IN runtime_feature_flags.h.in
OUT runtime_feature_flags.h
OUTPUT_INCLUDES
util/system/types.h
atomic
tuple
)

RUN_PROGRAM(
ydb/core/base/generated/codegen
runtime_feature_flags.cpp.in
runtime_feature_flags.cpp
IN runtime_feature_flags.cpp.in
OUT runtime_feature_flags.cpp
OUTPUT_INCLUDES
ydb/core/base/generated/runtime_feature_flags.h
ydb/core/protos/feature_flags.pb.h
)
)
ELSE()
RUN_PROGRAM(
ydb/core/base/generated/codegen
runtime_feature_flags.h.in
runtime_feature_flags.h
IN runtime_feature_flags.h.in
OUT runtime_feature_flags.h
OUTPUT_INCLUDES
util/system/types.h
atomic
tuple
)

RUN_PROGRAM(
ydb/core/base/generated/codegen
runtime_feature_flags.cpp.in
runtime_feature_flags.cpp
IN runtime_feature_flags.cpp.in
OUT runtime_feature_flags.cpp
OUTPUT_INCLUDES
ydb/core/base/generated/runtime_feature_flags.h
ydb/core/protos/feature_flags.pb.h
)
ENDIF()

END()

RECURSE(
codegen
)
IF (NOT EXPORT_CMAKE)
RECURSE(
codegen
)
ENDIF()

RECURSE_FOR_TESTS(
ut
Expand Down

0 comments on commit 2c27e6f

Please sign in to comment.