package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

bootstrap_go_package {
    name: "soong-cc",
    pkgPath: "android/soong/cc",
    deps: [
        "blueprint",
        "blueprint-depset",
        "blueprint-pathtools",
        "soong",
        "soong-aconfig",
        "soong-aidl-library",
        "soong-android",
        "soong-cc-config",
        "soong-etc",
        "soong-fuzz",
        "soong-genrule",
        "soong-tradefed",
    ],
    srcs: [
        "afdo.go",
        "fdo_profile.go",
        "androidmk.go",
        "api_level.go",
        "builder.go",
        "cc.go",
        "ccdeps.go",
        "cc_preprocess_no_configuration.go",
        "check.go",
        "coverage.go",
        "gen.go",
        "generated_cc_library.go",
        "image.go",
        "linkable.go",
        "lto.go",
        "makevars.go",
        "orderfile.go",
        "prebuilt.go",
        "proto.go",
        "rs.go",
        "sanitize.go",
        "sabi.go",
        "sdk.go",
        "snapshot_prebuilt.go",
        "stl.go",
        "strip.go",
        "tidy.go",
        "util.go",
        "vndk.go",
        "vndk_prebuilt.go",

        "cmake_snapshot.go",
        "cmakelists.go",
        "compdb.go",
        "compiler.go",
        "installer.go",
        "linker.go",

        "binary.go",
        "binary_sdk_member.go",
        "fuzz.go",
        "image_sdk_traits.go",
        "library.go",
        "library_headers.go",
        "library_sdk_member.go",
        "native_bridge_sdk_trait.go",
        "object.go",
        "test.go",

        "ndk_abi.go",
        "ndk_headers.go",
        "ndk_library.go",
        "ndk_sysroot.go",

        "llndk_library.go",

        "kernel_headers.go",

        "genrule.go",

        "vendor_public_library.go",

        "testing.go",

        "stub_library.go",
    ],
    testSrcs: [
        "afdo_test.go",
        "binary_test.go",
        "cc_preprocess_no_configuration_test.go",
        "cc_test.go",
        "cc_test_only_property_test.go",
        "cmake_snapshot_test.go",
        "compiler_test.go",
        "gen_test.go",
        "genrule_test.go",
        "library_headers_test.go",
        "library_test.go",
        "lto_test.go",
        "ndk_test.go",
        "object_test.go",
        "orderfile_test.go",
        "prebuilt_test.go",
        "proto_test.go",
        "sabi_test.go",
        "sanitize_test.go",
        "sdk_test.go",
        "test_data_test.go",
        "tidy_test.go",
        "vendor_public_library_test.go",
    ],
    embedSrcs: [
        "cmake_ext_add_aidl_library.txt",
        "cmake_ext_append_flags.txt",
        "cmake_main.txt",
        "cmake_module_aidl.txt",
        "cmake_module_cc.txt",
    ],
    pluginFor: ["soong_build"],
    // Used by plugins
    visibility: ["//visibility:public"],
}

phony {
    name: "llndk_libs",
    required: [
        "libEGL",
        "libGLESv1_CM",
        "libGLESv2",
        "libGLESv3",
        "libRS",
        "libandroid_net",
        "libapexsupport",
        "libbinder_ndk",
        "libc",
        "libcgrouprc",
        "libclang_rt.asan",
        "libdl",
        "libft2",
        "liblog",
        "libm",
        "libmediandk",
        "libnativewindow",
        "libselinux",
        "libsync",
        "libvendorsupport",
        "libvndksupport",
        "libvulkan",
    ],
}
