mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 23:41:13 +00:00
bba9c28215
Some platforms different library extension - dll, dylib, a. Honor that when we are creating the required links. Rename LIB_EXTENSION to LIB_EXT while we're here. With libglapi linking aside, building classic drivers on non-linux platforms should be possible now. v2: Resolve conflicts. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
15 lines
504 B
Makefile
15 lines
504 B
Makefile
# Provide compatibility with scripts for the old Mesa build system for
|
|
# a while by putting a link to the driver into /lib of the build tree.
|
|
|
|
all-local : .libs/install-mesa-links
|
|
|
|
.libs/install-mesa-links : $(lib_LTLIBRARIES)
|
|
$(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
|
|
for f in $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*); do \
|
|
if test -h .libs/$$f; then \
|
|
cp -d $$f $(top_builddir)/$(LIB_DIR); \
|
|
else \
|
|
ln -f $$f $(top_builddir)/$(LIB_DIR); \
|
|
fi; \
|
|
done && touch $@
|