WEBOTS_HOME ?= ../..
null :=
space := $(null) $(null)
WEBOTS_HOME_PATH?=$(subst $(space),\ ,$(strip $(subst \,/,$(WEBOTS_HOME))))
include $(WEBOTS_HOME_PATH)/resources/Makefile.os.include
WEBOTS_DEPENDENCY_PATH ?= $(WEBOTS_HOME_PATH)/dependencies
STATIC_LIBRARY = true
CFLAGS = -std=c++11 -DGLM_ENABLE_EXPERIMENTAL
INCLUDE = -I$(WEBOTS_HOME_PATH)/include -I$(WEBOTS_HOME_PATH)/include/glad -I../glm -I../webots/external/siphash/
VERBOSE = 1
ifeq ($(OSTYPE),darwin)
INCLUDE += -I$(WEBOTS_DEPENDENCY_PATH)/freetype2 -I$(WEBOTS_DEPENDENCY_PATH)/assimp/include
else ifeq ($(OSTYPE),linux)
INCLUDE += -I/usr/include/freetype2 -I$(WEBOTS_HOME_PATH)/include/libassimp/include
else ifeq ($(OSTYPE),windows)
INCLUDE += -I/mingw64/include/freetype2 -I/mingw64/include -I$(WEBOTS_DEPENDENCY_PATH)
endif
CXX_SOURCES = $(wildcard *.cpp) $(wildcard mesh/*.cpp)
ifneq ($(EMSDK),)
PYC = $(shell \
pip list 2>/dev/null | grep pyclibrary | awk '{print $$1}'; \
)
ifneq ($(PYC), pyclibrary)
PYC = $(shell \
pip3 list 2>/dev/null | grep pyclibrary | awk '{print $$1}'; \
)
endif
ifeq ($(PYC), pyclibrary)
WREN=1
ENUM := $(shell python3 $(WEBOTS_HOME_PATH)/scripts/export_function_js/export_function.py;)
COPY:= $(shell mkdir $(WEBOTS_HOME_PATH)/resources/web/wwi/images/post_processing/ > /dev/null 2>&1)
COPY:= $(shell cp $(WEBOTS_HOME_PATH)/resources/wren/textures/gtao_noise_texture.png $(WEBOTS_HOME_PATH)/resources/web/wwi/images/post_processing/)
COPY:= $(shell cp $(WEBOTS_HOME_PATH)/resources/wren/textures/smaa_area_texture.png $(WEBOTS_HOME_PATH)/resources/web/wwi/images/post_processing/)
COPY:= $(shell cp $(WEBOTS_HOME_PATH)/resources/wren/textures/smaa_search_texture.png $(WEBOTS_HOME_PATH)/resources/web/wwi/images/post_processing/)
endif
endif
include $(WEBOTS_HOME_PATH)/resources/Makefile.include