blob: a439c440d23df7ce511a00d772d5c150c27acbd7 [file] [log] [blame]
Roger Meiera03464c2015-09-30 08:15:53 +02001macro(GENERATE FILENAME GENERATOR OUTPUTDIR)
Nobuaki Sukegawaa3b88a02016-01-06 20:44:17 +09002 file(MAKE_DIRECTORY ${MY_CURRENT_BINARY_DIR}/${OUTPUTDIR})
3 execute_process(COMMAND ${THRIFTCOMPILER} --gen ${GENERATOR} -out ${MY_CURRENT_BINARY_DIR}/${OUTPUTDIR} ${FILENAME}
Roger Meiera03464c2015-09-30 08:15:53 +02004 RESULT_VARIABLE CMD_RESULT)
5 if(CMD_RESULT)
6 message(FATAL_ERROR "Error generating ${FILENAME} with generator ${GENERATOR}")
7 endif()
8endmacro(GENERATE)
9
Jens Geyerf066d842022-06-13 23:37:25 +020010generate(${MY_PROJECT_DIR}/test/v0.16/ThriftTest.thrift py gen-py-default)
11generate(${MY_PROJECT_DIR}/test/v0.16/ThriftTest.thrift py:slots gen-py-slots)
12generate(${MY_PROJECT_DIR}/test/v0.16/ThriftTest.thrift py:old_style gen-py-oldstyle)
13generate(${MY_PROJECT_DIR}/test/v0.16/ThriftTest.thrift py:no_utf8strings gen-py-no_utf8strings)
14generate(${MY_PROJECT_DIR}/test/v0.16/ThriftTest.thrift py:dynamic gen-py-dynamic)
15generate(${MY_PROJECT_DIR}/test/v0.16/ThriftTest.thrift py:dynamic,slots gen-py-dynamicslots)
16generate(${MY_PROJECT_DIR}/test/v0.16/ThriftTest.thrift py:enum gen-py-enum)
arkuhn12b01162024-02-23 20:18:55 -050017generate(${MY_PROJECT_DIR}/test/v0.16/ThriftTest.thrift py:type_hints gen-py-type_hints)
Roger Meiera03464c2015-09-30 08:15:53 +020018
Jens Geyerf066d842022-06-13 23:37:25 +020019generate(${MY_PROJECT_DIR}/test/v0.16/DebugProtoTest.thrift py gen-py-default)
20generate(${MY_PROJECT_DIR}/test/v0.16/DebugProtoTest.thrift py:slots gen-py-slots)
21generate(${MY_PROJECT_DIR}/test/v0.16/DebugProtoTest.thrift py:old_style gen-py-oldstyle)
22generate(${MY_PROJECT_DIR}/test/v0.16/DebugProtoTest.thrift py:no_utf8strings gen-py-no_utf8strings)
23generate(${MY_PROJECT_DIR}/test/v0.16/DebugProtoTest.thrift py:dynamic gen-py-dynamic)
24generate(${MY_PROJECT_DIR}/test/v0.16/DebugProtoTest.thrift py:dynamic,slots gen-py-dynamicslots)
25generate(${MY_PROJECT_DIR}/test/v0.16/DebugProtoTest.thrift py:enum gen-py-enum)
arkuhn12b01162024-02-23 20:18:55 -050026generate(${MY_PROJECT_DIR}/test/v0.16/DebugProtoTest.thrift py:type_hints gen-py-type_hints)
Eric Connerc34653f2017-06-21 03:34:12 +020027
Ozan Can Altioke46419b2018-03-20 15:02:28 +030028generate(${MY_PROJECT_DIR}/test/DoubleConstantsTest.thrift py gen-py-default)
29generate(${MY_PROJECT_DIR}/test/DoubleConstantsTest.thrift py:slots gen-py-slots)
30generate(${MY_PROJECT_DIR}/test/DoubleConstantsTest.thrift py:old_style gen-py-oldstyle)
31generate(${MY_PROJECT_DIR}/test/DoubleConstantsTest.thrift py:no_utf8strings gen-py-no_utf8strings)
32generate(${MY_PROJECT_DIR}/test/DoubleConstantsTest.thrift py:dynamic gen-py-dynamic)
33generate(${MY_PROJECT_DIR}/test/DoubleConstantsTest.thrift py:dynamic,slots gen-py-dynamicslots)
Kevin Wojniakd0e49f02022-01-22 21:04:30 -080034generate(${MY_PROJECT_DIR}/test/DoubleConstantsTest.thrift py:enum gen-py-enum)
arkuhn12b01162024-02-23 20:18:55 -050035generate(${MY_PROJECT_DIR}/test/DoubleConstantsTest.thrift py:type_hints gen-py-type_hints)
Ozan Can Altioke46419b2018-03-20 15:02:28 +030036
Eric Connerc34653f2017-06-21 03:34:12 +020037generate(${MY_PROJECT_DIR}/test/Recursive.thrift py gen-py-default)
38generate(${MY_PROJECT_DIR}/test/Recursive.thrift py:slots gen-py-slots)
39generate(${MY_PROJECT_DIR}/test/Recursive.thrift py:old_style gen-py-oldstyle)
40generate(${MY_PROJECT_DIR}/test/Recursive.thrift py:no_utf8strings gen-py-no_utf8strings)
41generate(${MY_PROJECT_DIR}/test/Recursive.thrift py:dynamic gen-py-dynamic)
42generate(${MY_PROJECT_DIR}/test/Recursive.thrift py:dynamic,slots gen-py-dynamicslots)
Kevin Wojniakd0e49f02022-01-22 21:04:30 -080043generate(${MY_PROJECT_DIR}/test/Recursive.thrift py:enum gen-py-enum)
arkuhn12b01162024-02-23 20:18:55 -050044generate(${MY_PROJECT_DIR}/test/Recursive.thrift py:type_hints gen-py-type_hints)