Change the MESA_ENABLE_LLVM checks in Android.mk
files in order to get mesa3d to build w/ AOSP
using mmma.
This tries to re-create a change that was introduced
in the following merge in the AOSP branch:
69f2c0128d2b Merge branch 'aosp/upstream-18.0'
Acked-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Mauro Rossi <issor.oruam@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4175>
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
+ifeq ($(MESA_ENABLE_LLVM),true)
+
# ---------------------------------------
# Build libmesa_amd_common
# ---------------------------------------
include $(MESA_COMMON_MK)
include $(BUILD_STATIC_LIBRARY)
+
+endif # MESA_ENABLE_LLVM == true
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
+ifeq ($(MESA_ENABLE_LLVM),true)
+
LOCAL_PATH := $(call my-dir)
# get C_SOURCES and GENERATED_SOURCES
libmesa_winsys_amdgpu)
$(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES))
endif
+
+endif # MESA_ENABLE_LLVM==true
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
+ifeq ($(MESA_ENABLE_LLVM),true)
+
LOCAL_PATH := $(call my-dir)
# get C_SOURCES
$(eval GALLIUM_LIBS += $(LOCAL_MODULE) $(LOCAL_STATIC_LIBRARIES))
$(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES))
endif
+
+endif # MESA_ENABLE_LLVM==true