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

Commit bdddcab3 authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Use target.linux for all linux kernel based targets

Now in Android.bp files, target.linux applies to all targets running a
linux kernel (android, linux_glibc, linux_bionic). So common
flags/sources/etc can be combined instead of copying them to each
target.

Test: m
Change-Id: If7ad138ea1c540c160731f86b6ccc0daa5c69b83
parent 06254de1
Loading
Loading
Loading
Loading
+6 −17
Original line number Original line Diff line number Diff line
@@ -64,37 +64,29 @@ cc_library {
    target: {
    target: {
        android: {
        android: {
            srcs: [
            srcs: [
                "errors_unix.cpp",
                "properties.cpp",
                "properties.cpp",
                "chrono_utils.cpp",
            ],
            ],
            cppflags: ["-Wexit-time-destructors"],
            sanitize: {
            sanitize: {
                misc_undefined: ["integer"],
                misc_undefined: ["integer"],
            },
            },


        },
        },
        darwin: {
        linux: {
            srcs: [
            srcs: [
                "chrono_utils.cpp",
                "chrono_utils.cpp",
                "errors_unix.cpp",
                "errors_unix.cpp",
            ],
            ],
            cppflags: ["-Wexit-time-destructors"],
            cppflags: ["-Wexit-time-destructors"],
        },
        },
        linux_bionic: {
        darwin: {
            srcs: [
            srcs: [
                "chrono_utils.cpp",
                "chrono_utils.cpp",
                "errors_unix.cpp",
                "errors_unix.cpp",
            ],
            ],
            cppflags: ["-Wexit-time-destructors"],
            cppflags: ["-Wexit-time-destructors"],
            enabled: true,
        },
        },
        linux_glibc: {
        linux_bionic: {
            srcs: [
            enabled: true,
                "chrono_utils.cpp",
                "errors_unix.cpp",
            ],
            cppflags: ["-Wexit-time-destructors"],
        },
        },
        windows: {
        windows: {
            srcs: [
            srcs: [
@@ -127,15 +119,12 @@ cc_test {
    ],
    ],
    target: {
    target: {
        android: {
        android: {
            srcs: [
            srcs: ["properties_test.cpp"],
                "chrono_utils_test.cpp",
                "properties_test.cpp"
            ],
            sanitize: {
            sanitize: {
                misc_undefined: ["integer"],
                misc_undefined: ["integer"],
            },
            },
        },
        },
        linux_glibc: {
        linux: {
            srcs: ["chrono_utils_test.cpp"],
            srcs: ["chrono_utils_test.cpp"],
        },
        },
        windows: {
        windows: {
+3 −31
Original line number Original line Diff line number Diff line
@@ -83,20 +83,7 @@ cc_library {
        darwin: {
        darwin: {
            enabled: true,
            enabled: true,
        },
        },
        linux_glibc: {
        linux: {
            srcs: libbacktrace_sources,

            shared_libs: [
                "libbase",
                "liblog",
                "libunwind",
                "libunwindstack",
            ],

            static_libs: ["libcutils"],
        },
        linux_bionic: {
            enabled: true,
            srcs: libbacktrace_sources,
            srcs: libbacktrace_sources,


            shared_libs: [
            shared_libs: [
@@ -109,16 +96,7 @@ cc_library {
            static_libs: ["libcutils"],
            static_libs: ["libcutils"],
        },
        },
        android: {
        android: {
            srcs: libbacktrace_sources,
            static_libs: ["libasync_safe"],

            shared_libs: [
                "libbase",
                "liblog",
                "libunwind",
                "libunwindstack",
            ],

            static_libs: ["libasync_safe", "libcutils"],
        },
        },
    },
    },
    whole_static_libs: ["libdemangle"],
    whole_static_libs: ["libdemangle"],
@@ -135,13 +113,7 @@ cc_library_shared {
    srcs: ["backtrace_testlib.cpp"],
    srcs: ["backtrace_testlib.cpp"],


    target: {
    target: {
        linux_glibc: {
        linux: {
            shared_libs: [
                "libunwind",
                "libunwindstack",
            ],
        },
        android: {
            shared_libs: [
            shared_libs: [
                "libunwind",
                "libunwind",
                "libunwindstack",
                "libunwindstack",
+6 −12
Original line number Original line Diff line number Diff line
@@ -93,8 +93,6 @@ cc_library {
    target: {
    target: {
        android: {
        android: {
            srcs: [
            srcs: [
                "Looper.cpp",
                "ProcessCallStack.cpp",
                "Trace.cpp",
                "Trace.cpp",
            ],
            ],


@@ -112,6 +110,12 @@ cc_library {
                misc_undefined: ["integer"],
                misc_undefined: ["integer"],
            },
            },
        },
        },
        linux: {
            srcs: [
                "Looper.cpp",
                "ProcessCallStack.cpp",
            ],
        },


        host: {
        host: {
            cflags: ["-DLIBUTILS_NATIVE=1"],
            cflags: ["-DLIBUTILS_NATIVE=1"],
@@ -121,18 +125,8 @@ cc_library {
            },
            },
        },
        },


        linux_glibc: {
            srcs: [
                "Looper.cpp",
                "ProcessCallStack.cpp",
            ],
        },
        linux_bionic: {
        linux_bionic: {
            enabled: true,
            enabled: true,
            srcs: [
                "Looper.cpp",
                "ProcessCallStack.cpp",
            ],
        },
        },


        darwin: {
        darwin: {
+1 −3
Original line number Original line Diff line number Diff line
@@ -34,8 +34,6 @@ cc_test {
    target: {
    target: {
        android: {
        android: {
            srcs: [
            srcs: [
                "Looper_test.cpp",
                "RefBase_test.cpp",
                "SystemClock_test.cpp",
                "SystemClock_test.cpp",
            ],
            ],
            shared_libs: [
            shared_libs: [
@@ -46,7 +44,7 @@ cc_test {
                "libbase",
                "libbase",
            ],
            ],
        },
        },
        linux_glibc: {
        linux: {
            srcs: [
            srcs: [
                "Looper_test.cpp",
                "Looper_test.cpp",
                "RefBase_test.cpp",
                "RefBase_test.cpp",