Browse Source

Build dgl-stub lib

Signed-off-by: falkTX <falktx@falktx.com>
pull/272/head
falkTX 4 years ago
parent
commit
d4f91993e9
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 30 additions and 0 deletions
  1. +9
    -0
      Makefile.base.mk
  2. +21
    -0
      dgl/Makefile

+ 9
- 0
Makefile.base.mk View File

@@ -317,6 +317,15 @@ HAVE_CAIRO_OR_OPENGL = true


endif endif


# ---------------------------------------------------------------------------------------------------------------------
# Set Stub specific stuff

ifeq ($(HAIKU_OR_MACOS_OR_WINDOWS),true)
HAVE_STUB = true
else
HAVE_STUB = $(HAVE_X11)
endif

# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# Set Vulkan specific stuff # Set Vulkan specific stuff




+ 21
- 0
dgl/Makefile View File

@@ -67,6 +67,16 @@ endif


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------


OBJS_stub = $(OBJS_common)

ifeq ($(MACOS),true)
OBJS_stub += ../build/dgl/pugl.mm.o
else
OBJS_stub += ../build/dgl/pugl.cpp.o
endif

# ---------------------------------------------------------------------------------------------------------------------

OBJS_vulkan = $(OBJS_common) \ OBJS_vulkan = $(OBJS_common) \
../build/dgl/Vulkan.cpp.vulkan.o ../build/dgl/Vulkan.cpp.vulkan.o


@@ -88,6 +98,10 @@ TARGETS += ../build/libdgl-opengl.a
TARGETS += ../build/libdgl.a TARGETS += ../build/libdgl.a
endif endif


ifeq ($(HAVE_STUB),true)
TARGETS += ../build/libdgl-stub.a
endif

ifeq ($(HAVE_VULKAN),true) ifeq ($(HAVE_VULKAN),true)
TARGETS += ../build/libdgl-vulkan.a TARGETS += ../build/libdgl-vulkan.a
endif endif
@@ -110,6 +124,12 @@ all: $(TARGETS)
$(SILENT)rm -f $@ $(SILENT)rm -f $@
$(SILENT)$(AR) crs $@ $^ $(SILENT)$(AR) crs $@ $^


../build/libdgl-stub.a: $(OBJS_stub)
-@mkdir -p ../build
@echo "Creating libdgl-stub.a"
$(SILENT)rm -f $@
$(SILENT)$(AR) crs $@ $^

../build/libdgl-vulkan.a: $(OBJS_vulkan) ../build/libdgl-vulkan.a: $(OBJS_vulkan)
-@mkdir -p ../build -@mkdir -p ../build
@echo "Creating libdgl-vulkan.a" @echo "Creating libdgl-vulkan.a"
@@ -187,6 +207,7 @@ debug:
-include $(OBJS_common:%.o=%.d) -include $(OBJS_common:%.o=%.d)
-include $(OBJS_cairo:%.o=%.d) -include $(OBJS_cairo:%.o=%.d)
-include $(OBJS_opengl:%.o=%.d) -include $(OBJS_opengl:%.o=%.d)
-include $(OBJS_stub:%.o=%.d)
-include $(OBJS_vulkan:%.o=%.d) -include $(OBJS_vulkan:%.o=%.d)


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------

Loading…
Cancel
Save