1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5python_defaults { 6 name: "treble_build_default", 7 pkg_path: "treble/build", 8} 9 10python_library_host { 11 name: "treble_build_lib", 12 defaults: ["treble_build_default"], 13 srcs: [ 14 "sandbox/build_android_sandboxed.py", 15 "sandbox/config.py", 16 "sandbox/nsjail.py", 17 "sandbox/overlay.py", 18 "sandbox/rbe.py", 19 ], 20} 21 22python_test_host { 23 name: "treble_build_test", 24 main: "test.py", 25 defaults: ["treble_build_default"], 26 srcs: [ 27 "sandbox/build_android_sandboxed_test.py", 28 "sandbox/config_test.py", 29 "sandbox/nsjail_test.py", 30 "sandbox/overlay_test.py", 31 "sandbox/rbe_test.py", 32 "test.py", 33 "sample_test.py", 34 ], 35 libs: [ 36 "treble_build_lib", 37 ], 38 test_config: "test.xml", 39 test_options: { 40 unit_test: true, 41 }, 42 version: { 43 py3: { 44 embedded_launcher: true, 45 }, 46 }, 47} 48