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

Commit 5329d3fd authored by Dan Albert's avatar Dan Albert Committed by Gerrit Code Review
Browse files

Merge "Add a project wide clang switch."

parents 70385f30 9697ce52
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@

LOCAL_PATH:= $(call my-dir)

ADB_CLANG :=

# libadb
# =========================================================

@@ -33,6 +35,7 @@ LIBADB_linux_SRC_FILES := fdevent.cpp get_my_path_linux.c usb_linux.c
LIBADB_windows_SRC_FILES := get_my_path_windows.c sysdeps_win32.c usb_windows.c

include $(CLEAR_VARS)
LOCAL_CLANG := $(ADB_CLANG)
LOCAL_MODULE := libadbd
LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=0
LOCAL_SRC_FILES := \
@@ -46,6 +49,7 @@ LOCAL_SRC_FILES := \
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_CLANG := $(ADB_CLANG)
LOCAL_MODULE := libadb
LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=1
LOCAL_SRC_FILES := \
@@ -86,6 +90,8 @@ ifeq ($(HOST_OS),windows)
  endif
endif

LOCAL_CLANG := $(ADB_CLANG)

LOCAL_SRC_FILES := \
	adb_main.c \
	console.c \
@@ -130,6 +136,8 @@ endif

include $(CLEAR_VARS)

LOCAL_CLANG := $(ADB_CLANG)

LOCAL_SRC_FILES := \
	adb_main.c \
	services.c \