Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e55ce8fa authored by Alec Mouri's avatar Alec Mouri
Browse files

[libui] Create a libui-types static library.

This is intended to be a small library for sharing some libui types with
APEX modules. I.e., HIDL dependencies such as gralloc should not be
included in the library so that binary sizes remain small.

Bug: 136263238
Test: builds
Change-Id: I9d9d5fb32033c08cfb517f6cfc0ecb4cf1eee2fe
parent 4fbd9bc5
Loading
Loading
Loading
Loading
+67 −3
Original line number Diff line number Diff line
@@ -12,6 +12,64 @@
// See the License for the specific language governing permissions and
// limitations under the License.

cc_defaults {
    name: "libui-defaults",
    clang: true,
    cflags: [
        "-Wall",
        "-Werror",
    ],
    cppflags: [
        "-Wextra",
    ],

    sanitize: {
        integer_overflow: true,
        misc_undefined: ["bounds"],
    },

}

cc_library_static {
    name: "libui-types",
    vendor_available: true,
    host_supported: true,
    target: {
        windows: {
            enabled: true,
        }
    },

    defaults: [
        "libui-defaults",
    ],

    apex_available: [
        "//apex_available:anyapex",
	"//apex_available:platform",
    ],
    shared_libs: [
        "libutils",
    ],

    static_libs: [
        "libmath",
    ],

    srcs: [
        "ColorSpace.cpp",
    ],

    export_include_dirs: [
        "include_types",
    ],

    export_static_lib_headers: [
        "libmath",
    ],

}

cc_library_shared {
    name: "libui",
    vendor_available: true,
@@ -35,7 +93,6 @@ cc_library_shared {
    },

    srcs: [
        "ColorSpace.cpp",
        "BufferHubBuffer.cpp",
        "BufferHubEventFd.cpp",
        "BufferHubMetadata.cpp",
@@ -68,8 +125,11 @@ cc_library_shared {
        "include_private",
    ],

    defaults: [
        "libui-defaults",
        // Uncomment the following line to enable VALIDATE_REGIONS traces
        //defaults: ["libui-validate-regions-defaults"],
    ],

    shared_libs: [
        "android.frameworks.bufferhub@1.0",
@@ -104,6 +164,10 @@ cc_library_shared {
        "libmath",
    ],

    whole_static_libs: [
        "libui-types",
    ],

    // bufferhub is not used when building libgui for vendors
    target: {
        vendor: {
+1 −1
Original line number Diff line number Diff line
../../include/ui/ColorSpace.h
 No newline at end of file
../../include_types/ui/ColorSpace.h
 No newline at end of file