3 # Generate mesa3dgl.library
6 include $(SRCDIR)/config/aros.cfg
8 include $(SRCDIR)/$(CURDIR)/mesa.cfg
11 # common mesa3d fetch...
14 #MM- includes-copy : mesa3d-fetch
16 %fetch mmake=mesa3d-fetch archive=$(ARCHBASE) destination=$(PORTSDIR)/mesa \
17 location=$(PORTSSOURCEDIR) archive_origins=$(REPOSITORIES) suffixes="tar.gz" \
18 patches_specs=$(PATCHSPEC)
20 %create_patch mmake=mesa3d-create-patch \
21 archive=$(ARCHBASE) suffixes="tar.gz" \
22 destination=$(PORTSDIR)/mesa
25 # Real Mesa3DGL.library rules...
28 #MM- workbench-libs-complete : mesa3dgl-library-$(AROS_TARGET_TOOLCHAIN)
29 #MM- mesa3dgl-library-yes : mesa3dgl-library
31 #MM mesa3dgl-library : includes workbench-libs-dxtn-includes linklibs-galliumauxiliary workbench-libs-gallium-linklib mesa3dgl-linklibs
33 ##-include $(top_srcdir)/src/mesa/Makefile.sources
34 ##-include $(top_srcdir)/src/compiler/glsl/Makefile.sources
35 ##-include $(top_srcdir)/src/mapi/Makefile.sources
37 SHARED_LIB_SOURCES = \
45 mesa3dgl_getopenglstatetrackerapi \
46 mesa3dgl_glacreatecontext \
47 mesa3dgl_gladestroycontext \
48 mesa3dgl_glagetconfig \
49 mesa3dgl_glagetcurrentcontext \
50 mesa3dgl_glagetprocaddress \
51 mesa3dgl_glamakecurrent \
53 mesa3dgl_glaswapbuffers \
56 -I$(top_srcdir)/src/mesa \
57 -iquote $(top_builddir)/src/mesa \
58 -iquote $(top_builddir)/src/mesa/main \
59 -iquote $(top_builddir)/src/mapi \
60 -iquote $(top_builddir)/src/compiler/glsl \
61 -iquote $(top_srcdir)/src/mesa/main \
62 -iquote $(top_srcdir)/src/mapi \
63 -iquote $(top_srcdir)/src/compiler/glsl \
64 -iquote $(top_srcdir)/src/compiler/glsl/glcpp \
65 -iquote $(top_srcdir)/src/talloc \
66 -iquote $(top_srcdir)/src/gallium/include \
67 -iquote $(top_srcdir)/src/gallium/auxiliary
70 $(top_builddir)/mesa_gen_matypes \
71 $(top_srcdir)/src/mesa/main/mtypes.h \
72 $(top_srcdir)/src/mesa/tnl/t_context.h
74 ##ifeq ($(TARGET_ARCH),x86)
75 ##USER_CFLAGS += -DUSE_X86_ASM
78 MESAGL_LIBRARY_SOURCES_C := \
79 $(SHARED_LIB_SOURCES) \
82 MESAGL_LIBRARY_SOURCES_CXX := \
85 ##MM- core-linklibs : linklibs-mesa
87 USER_LDFLAGS := -static-libstdc++ \
89 -Wl,--start-group -lglapi -lmesa -lcompiler -lgalliumauxiliary -lgallium -lmesautil \
90 -lpthread -lposixc -lstdcio -lstdc
91 #USER_LDFLAGS += -Wl,--end-group
92 #USER_CPPFLAGS += -DDEBUG=1
94 %build_module_library mmake=mesa3dgl-library \
95 modname=mesa3dgl modtype=library \
96 conffile=$(SRCDIR)/workbench/libs/gl/gl.conf \
97 confoverride=mesa3dgl.conf \
98 files="$(MESAGL_LIBRARY_SOURCES_C)" \
99 cxxfiles="$(MESAGL_LIBRARY_SOURCES_CXX)" \
106 GL_INCLUDE_FILES := gl.h glext.h
108 %copy_includes path=GL dir=$(top_srcdir)/include/GL includes=$(GL_INCLUDE_FILES)
110 KHR_INCLUDE_FILES := khrplatform.h
112 %copy_includes path=KHR dir=$(top_srcdir)/include/KHR includes=$(KHR_INCLUDE_FILES)
114 GL_INCLUDE_FILES := egl.h eglext.h eglplatform.h eglmesaext.h eglextchromium.h
116 %copy_includes path=EGL dir=$(top_srcdir)/include/EGL includes=$(GL_INCLUDE_FILES)
118 VK_INCLUDE_FILES := vulkan.h vulkan_core.h vk_icd.h vk_platform.h
120 %copy_includes path=vulkan dir=$(top_srcdir)/include/vulkan includes=$(VK_INCLUDE_FILES)