ya.make.gen 746 B

1234567891011121314151617181920212223242526272829
  1. PROTO_LIBRARY()
  2. IF (GEN_PROTO)
  3. SET(antlr_output ${ARCADIA_BUILD_ROOT}/${MODDIR})
  4. SET(antlr_templates ${antlr_output}/org/antlr/codegen/templates)
  5. SET(sql_grammar ${ARCADIA_ROOT}/yql/essentials/sql/v0/SQL.g)
  6. SET(ANTLR_PACKAGE_NAME NSQLGenerated)
  7. CONFIGURE_FILE(${ARCADIA_ROOT}/yql/essentials/parser/proto_ast/org/antlr/codegen/templates/protobuf/protobuf.stg.in ${antlr_templates}/protobuf/protobuf.stg)
  8. RUN_ANTLR(
  9. ${sql_grammar}
  10. -lib .
  11. -fo ${antlr_output}
  12. -language protobuf
  13. IN ${sql_grammar} ${antlr_templates}/protobuf/protobuf.stg
  14. OUT_NOAUTO SQLParser.proto
  15. CWD ${antlr_output}
  16. )
  17. ENDIF()
  18. SRCS(SQLParser.proto)
  19. EXCLUDE_TAGS(GO_PROTO JAVA_PROTO)
  20. END()