1// Python generator. 2python_binary_host { 3 name: "pdl_python_generator", 4 main: "generate_python_backend.py", 5 srcs: [ 6 "generate_python_backend.py", 7 "pdl/ast.py", 8 "pdl/core.py", 9 "pdl/utils.py", 10 ], 11 version: { 12 py3: { 13 embedded_launcher: true, 14 }, 15 }, 16} 17 18// C++ generator. 19python_binary_host { 20 name: "pdl_cxx_generator", 21 main: "generate_cxx_backend.py", 22 srcs: [ 23 "generate_cxx_backend.py", 24 "pdl/ast.py", 25 "pdl/core.py", 26 "pdl/utils.py", 27 ], 28 version: { 29 py3: { 30 embedded_launcher: true, 31 }, 32 }, 33} 34 35// C++ test generator. 36python_binary_host { 37 name: "pdl_cxx_unittest_generator", 38 main: "generate_cxx_backend_tests.py", 39 srcs: [ 40 "generate_cxx_backend_tests.py", 41 "pdl/ast.py", 42 "pdl/core.py", 43 "pdl/utils.py", 44 ], 45 version: { 46 py3: { 47 embedded_launcher: true, 48 }, 49 }, 50} 51 52// C++ packet runtime. 53cc_library_headers { 54 name: "pdl_cxx_packet_runtime", 55 export_include_dirs: ["."], 56 host_supported: true, 57 vendor_available: true, 58} 59