Skip to content
Snippets Groups Projects
Select Git revision
  • df63c4d254e8c498949ee42c36dd10d5469e14d0
  • test default
2 results

hal_graphics_composer.te

Blame
  • Android.bp 1.26 KiB
    cc_library_host_shared {
        name: "libsepolwrap",
        srcs: ["sepol_wrap.cpp"],
        cflags: ["-Wall", "-Werror",],
        export_include_dirs: ["include"],
    
        // libsepolwrap gets loaded from the system python, which does not have the
        // ASAN runtime. So turn off sanitization for ourself, and  use static
        // libraries, since the shared libraries will use ASAN.
        static_libs: [
            "libbase",
            "libsepol",
        ],
        stl: "libc++_static",
        sanitize: {
            never: true,
        },
    }
    
    python_defaults {
        name: "py2_only",
        version: {
            py2: {
                embedded_launcher: true,
                enabled: true,
            },
            py3: {
                enabled: false,
            },
        },
    }
    
    python_binary_host {
        name: "treble_sepolicy_tests",
        srcs: [
            "treble_sepolicy_tests.py",
            "mini_parser.py",
            "policy.py",
        ],
        required: ["libsepolwrap"],
        defaults: ["py2_only"],
    }
    
    python_binary_host {
        name: "sepolicy_tests",
        srcs: [
            "sepolicy_tests.py",
            "policy.py",
        ],
        required: ["libsepolwrap"],
        defaults: ["py2_only"],
    }
    
    python_binary_host {
        name: "searchpolicy",
        srcs: [
            "searchpolicy.py",
            "policy.py",
        ],
        required: ["libsepolwrap"],
        defaults: ["py2_only"],
    }