hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 5dc251bfd99362cdff1090534f7d7808c74aaf01 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Thu, 9 Jun 2022 16:59:54 +0800
Subject: [PATCH 2/8] Disable dbus_full when not in ChromeOS
 
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
 Makefile | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
 
diff --git a/Makefile b/Makefile
index b5a3727..7e955e1 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@
 include common.mk
 
 FRECON_LITE ?= 0
+CHROMEOS ?= 1
 
 PC_DEPS = libdrm libpng libtsm
 ifeq ($(FRECON_LITE),1)
@@ -12,10 +13,18 @@ FRECON_OBJECTS = $(filter-out %_full.o,$(C_OBJECTS))
 CPPFLAGS += -DFRECON_LITE=1
 TARGET ?= frecon-lite
 else
-FRECON_OBJECTS = $(filter-out %_lite.o,$(C_OBJECTS))
-PC_DEPS += dbus-1 libudev
+FRECON_OBJECTS = $(filter-out dbus_full.o,$(filter-out %_lite.o,$(C_OBJECTS)))
+PC_DEPS += libudev
 CPPFLAGS += -DFRECON_LITE=0
 TARGET ?= frecon
+
+ifeq ($(CHROMEOS),1)
+PC_DEPS += dbus-1
+FRECON_OBJECTS += dbus_full.o
+else
+FRECON_OBJECTS += dbus_lite.o
+endif
+
 endif
 
 PC_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(PC_DEPS))
-- 
2.20.1