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

Commit b084bc35 authored by Steven Moreland's avatar Steven Moreland
Browse files

libutils: export system_headers

vendor + vendor_available modules built with BOARD_VNDK_VERSION :=
current aren't allowed to use global headers. Since libutils uses
system headers itself, it should export them as well.

Also added some items into windows-deprecated.h. This file is supposed
to be in sync with the libnativewindow variant until all dependencies on
it can be fixed. However, it is missing some updates. This matters when
including libsystem_headers adds system headers before libnativewindow
headers in the lookup paths.

Bug: 33241851
Test: building with BOARD_VNDK_VERSION := current produces many fewer
errors.

Change-Id: I950821f1dae3ddc110db50869247913d5b1aa638
parent bed3cbd8
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
cc_library_headers {
cc_library_headers {
    name: "libsystem_headers",
    name: "libsystem_headers",
    vendor_available: true,
    host_supported: true,
    export_include_dirs: ["include"],
    export_include_dirs: ["include"],

    target: {
        linux_bionic: {
            enabled: true,
        },
        windows: {
            enabled: true,
        },
    }
}
}
+16 −0
Original line number Original line Diff line number Diff line
@@ -32,6 +32,8 @@
 **************************************************************************************************
 **************************************************************************************************
 **************************************************************************************************/
 **************************************************************************************************/


#pragma once

#include <cutils/native_handle.h>
#include <cutils/native_handle.h>
#include <errno.h>
#include <errno.h>
#include <limits.h>
#include <limits.h>
@@ -326,6 +328,12 @@ enum {
     * if it is safe (i.e. no crash will occur) to call any method on it.
     * if it is safe (i.e. no crash will occur) to call any method on it.
     */
     */
    NATIVE_WINDOW_IS_VALID = 17,
    NATIVE_WINDOW_IS_VALID = 17,

    /*
     * Returns 1 if NATIVE_WINDOW_GET_FRAME_TIMESTAMPS will return display
     * present info, 0 if it won't.
     */
    NATIVE_WINDOW_FRAME_TIMESTAMPS_SUPPORTS_PRESENT = 18,
};
};


/* Valid operations for the (*perform)() hook.
/* Valid operations for the (*perform)() hook.
@@ -445,6 +453,14 @@ enum {
 */
 */
static const int64_t NATIVE_WINDOW_TIMESTAMP_AUTO = (-9223372036854775807LL-1);
static const int64_t NATIVE_WINDOW_TIMESTAMP_AUTO = (-9223372036854775807LL-1);


/* parameter for NATIVE_WINDOW_GET_FRAME_TIMESTAMPS
 *
 * Special timestamp value to indicate the timestamps aren't yet known or
 * that they are invalid.
 */
static const int64_t NATIVE_WINDOW_TIMESTAMP_PENDING = -2;
static const int64_t NATIVE_WINDOW_TIMESTAMP_INVALID = -1;

struct ANativeWindow
struct ANativeWindow
{
{
#ifdef __cplusplus
#ifdef __cplusplus
+8 −2
Original line number Original line Diff line number Diff line
@@ -58,8 +58,14 @@ cc_library {


    cflags: ["-Werror"],
    cflags: ["-Werror"],
    include_dirs: ["external/safe-iop/include"],
    include_dirs: ["external/safe-iop/include"],
    header_libs: ["libutils_headers"],
    header_libs: [
    export_header_lib_headers: ["libutils_headers"],
        "libsystem_headers",
        "libutils_headers",
    ],
    export_header_lib_headers: [
        "libsystem_headers",
        "libutils_headers",
    ],


    arch: {
    arch: {
        mips: {
        mips: {