From 85f5d7ceee526a272cb19c2c9d44d6e7aa5d422d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 11 Sep 2011 13:28:12 +0200 Subject: [PATCH] r600g: cleanup build include dirs and dependencies The scons build still depended on libdrm_radeon. --- src/gallium/drivers/r600/Android.mk | 4 +--- src/gallium/drivers/r600/Makefile | 3 +-- src/gallium/drivers/r600/SConscript | 3 --- src/gallium/winsys/r600/drm/Android.mk | 4 +--- src/gallium/winsys/r600/drm/Makefile | 1 - src/gallium/winsys/r600/drm/SConscript | 2 -- 6 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/gallium/drivers/r600/Android.mk b/src/gallium/drivers/r600/Android.mk index 994ae07789c..f060920d5d7 100644 --- a/src/gallium/drivers/r600/Android.mk +++ b/src/gallium/drivers/r600/Android.mk @@ -32,9 +32,7 @@ LOCAL_SRC_FILES := $(C_SOURCES) LOCAL_CFLAGS := -std=c99 -LOCAL_C_INCLUDES := \ - $(DRM_TOP) \ - $(DRM_TOP)/include/drm +LOCAL_C_INCLUDES := LOCAL_MODULE := libmesa_pipe_r600 diff --git a/src/gallium/drivers/r600/Makefile b/src/gallium/drivers/r600/Makefile index 0e68fe99345..80f8cbfc803 100644 --- a/src/gallium/drivers/r600/Makefile +++ b/src/gallium/drivers/r600/Makefile @@ -3,8 +3,7 @@ include $(TOP)/configs/current LIBNAME = r600 -LIBRARY_INCLUDES = \ - $(shell pkg-config libdrm --cflags-only-I) +LIBRARY_INCLUDES = -I$(TOP)/include # get C_SOURCES include Makefile.sources diff --git a/src/gallium/drivers/r600/SConscript b/src/gallium/drivers/r600/SConscript index be12255e4d0..e400c38b46e 100644 --- a/src/gallium/drivers/r600/SConscript +++ b/src/gallium/drivers/r600/SConscript @@ -2,11 +2,8 @@ Import('*') env = env.Clone() -env.PkgUseModules('DRM_RADEON') - env.Append(CPPPATH = [ '#/include', - '#/src/mesa', ]) r600 = env.ConvenienceLibrary( diff --git a/src/gallium/winsys/r600/drm/Android.mk b/src/gallium/winsys/r600/drm/Android.mk index eb79caa19ca..b1c0ab684bb 100644 --- a/src/gallium/winsys/r600/drm/Android.mk +++ b/src/gallium/winsys/r600/drm/Android.mk @@ -33,9 +33,7 @@ LOCAL_SRC_FILES := $(C_SOURCES) LOCAL_CFLAGS := -std=c99 LOCAL_C_INCLUDES := \ - $(GALLIUM_TOP)/drivers/r600 \ - $(DRM_TOP) \ - $(DRM_TOP)/include/drm + $(GALLIUM_TOP)/drivers/r600 LOCAL_MODULE := libmesa_winsys_r600 diff --git a/src/gallium/winsys/r600/drm/Makefile b/src/gallium/winsys/r600/drm/Makefile index c23286c8197..ccaab0b4170 100644 --- a/src/gallium/winsys/r600/drm/Makefile +++ b/src/gallium/winsys/r600/drm/Makefile @@ -9,7 +9,6 @@ include Makefile.sources LIBRARY_INCLUDES = -I$(TOP)/src/gallium/drivers/r600 \ -I$(TOP)/include \ - $(shell pkg-config libdrm --cflags-only-I) include ../../../Makefile.template diff --git a/src/gallium/winsys/r600/drm/SConscript b/src/gallium/winsys/r600/drm/SConscript index 2d0d80e8bb9..cbefd25e289 100644 --- a/src/gallium/winsys/r600/drm/SConscript +++ b/src/gallium/winsys/r600/drm/SConscript @@ -4,8 +4,6 @@ env = env.Clone() r600_sources = env.ParseSourceList('Makefile.sources', 'C_SOURCES') -env.PkgUseModules('DRM_RADEON') - env.Append(CPPPATH = '#/src/gallium/drivers/r600') r600winsys = env.ConvenienceLibrary( -- 2.30.2