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

Commit a38e2a53 authored by Myles Watson's avatar Myles Watson
Browse files

RootCanal: Use GD defaults to define OS_ANDROID

When OS_ANDROID is defined logs go to logcat.
When OS_ANDROID is not defined logs to stderr.

Bug: 157706301
Test: cert/run --host
Tag: #gd-refactor
Change-Id: I3e735a4716fbc35a3d66e03909fdbf905436d285
Merged-In: I3e735a4716fbc35a3d66e03909fdbf905436d285
parent 4370df92
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -2,7 +2,8 @@
// ========================================================
// ========================================================
cc_library_static {
cc_library_static {
    name: "libbt-rootcanal",
    name: "libbt-rootcanal",
    defaults: ["libchrome_support_defaults"],
    defaults: ["gd_defaults",],
    header_libs: ["jni_headers"],
    host_supported: true,
    host_supported: true,
    proprietary: true,
    proprietary: true,
    srcs: [
    srcs: [
@@ -60,6 +61,7 @@ cc_library_static {
    ],
    ],
    shared_libs: [
    shared_libs: [
        "libbase",
        "libbase",
        "libchrome",
        "liblog",
        "liblog",
    ],
    ],
    static_libs: [
    static_libs: [
+1 −3
Original line number Original line Diff line number Diff line
@@ -14,9 +14,6 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#define OS_ANDROID
#include "os/log.h"
#undef OS_ANDROID
#include "scripted_beacon.h"
#include "scripted_beacon.h"


#include <fstream>
#include <fstream>
@@ -29,6 +26,7 @@


#include "model/devices/scripted_beacon_ble_payload.pb.h"
#include "model/devices/scripted_beacon_ble_payload.pb.h"
#include "model/setup/device_boutique.h"
#include "model/setup/device_boutique.h"
#include "os/log.h"


using std::vector;
using std::vector;