summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2018-12-03 14:15:13 +0200
committerKenneth Graunke <[email protected]>2019-02-21 10:26:10 -0800
commit96bb328e9b82c36ed271f1acbaff76b23ba319d3 (patch)
treed145d944bc58d7da24b0d9ac5c124f0b170ca7d4 /src/gallium/winsys
parent97e82e80f9fbb05e6eaeee19f59707e0f00b5756 (diff)
iris: add Android build
Note that at least following additional libs/components require changes since they refer to BOARD_GPU_DRIVERS variable which is used to select the driver: - mixins - minigbm - libdrm - drm_gralloc v2: (feedback by Gustaw Smolarczyk) Fix trailing \ in a few cases Signed-off-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/iris/drm/Android.mk40
-rw-r--r--src/gallium/winsys/iris/drm/Makefile.sources3
2 files changed, 43 insertions, 0 deletions
diff --git a/src/gallium/winsys/iris/drm/Android.mk b/src/gallium/winsys/iris/drm/Android.mk
new file mode 100644
index 00000000000..820f32c3ecc
--- /dev/null
+++ b/src/gallium/winsys/iris/drm/Android.mk
@@ -0,0 +1,40 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2018 Intel Corporation
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+LOCAL_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_WHOLE_STATIC_LIBRARIES := \
+ libmesa_isl \
+ libmesa_intel_dev
+
+LOCAL_SHARED_LIBRARIES := libdrm_intel
+LOCAL_MODULE := libmesa_winsys_iris
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
diff --git a/src/gallium/winsys/iris/drm/Makefile.sources b/src/gallium/winsys/iris/drm/Makefile.sources
new file mode 100644
index 00000000000..f5da79876a1
--- /dev/null
+++ b/src/gallium/winsys/iris/drm/Makefile.sources
@@ -0,0 +1,3 @@
+C_SOURCES := \
+ iris_drm_public.h \
+ iris_drm_winsys.c