1diff --git b/scripts/Android.bp a/scripts/Android.bp 2new file mode 100644 3index 0000000..05bee6b 4--- /dev/null 5+++ a/scripts/Android.bp 6@@ -0,0 +1,58 @@ 7+// Python generator. 8+python_binary_host { 9+ name: "pdl_python_generator", 10+ main: "generate_python_backend.py", 11+ srcs: [ 12+ "generate_python_backend.py", 13+ "pdl/ast.py", 14+ "pdl/core.py", 15+ "pdl/utils.py", 16+ ], 17+ version: { 18+ py3: { 19+ embedded_launcher: true, 20+ }, 21+ }, 22+} 23+ 24+// C++ generator. 25+python_binary_host { 26+ name: "pdl_cxx_generator", 27+ main: "generate_cxx_backend.py", 28+ srcs: [ 29+ "generate_cxx_backend.py", 30+ "pdl/ast.py", 31+ "pdl/core.py", 32+ "pdl/utils.py", 33+ ], 34+ version: { 35+ py3: { 36+ embedded_launcher: true, 37+ }, 38+ }, 39+} 40+ 41+// C++ test generator. 42+python_binary_host { 43+ name: "pdl_cxx_unittest_generator", 44+ main: "generate_cxx_backend_tests.py", 45+ srcs: [ 46+ "generate_cxx_backend_tests.py", 47+ "pdl/ast.py", 48+ "pdl/core.py", 49+ "pdl/utils.py", 50+ ], 51+ version: { 52+ py3: { 53+ embedded_launcher: true, 54+ }, 55+ }, 56+} 57+ 58+// C++ packet runtime. 59+cc_library_headers { 60+ name: "pdl_cxx_packet_runtime", 61+ export_include_dirs: ["."], 62+ host_supported: true, 63+ vendor_available: true, 64+} 65