Commits

Christian Fischer committed a93a7f0

replaced Makefile build scripts with cmake

Comments (0)

Files changed (23)

Makefile

-# Main build file for compiling projects based on this engine
-
-# phony targets
-.PHONY: clean dep show-config
-
-# default target
-.DEFAULT_GOAL := build
-
-# set some basic paths
-WIESEL_CONFIG_DIR		:= $(WIESEL_DIR)/config
-WIESEL_BUILDSCRIPTS_DIR		:= $(WIESEL_DIR)/build
-PROJECT_CONFIG_DIR		:= $(PROJECT_DIR)/config
-PROJECT_LOCAL_CONFIG_DIR	:= $(PROJECT_DIR)/config/local
-
-# when config is not set, set the default config to 'debug'
-ifeq ($(CONFIGURATION),)
-	CONFIGURATION		:= debug
-endif
-
-# determine architecture and platform
-include $(WIESEL_CONFIG_DIR)/platform.mk
-
-# get the tools configuration
- include $(WIESEL_CONFIG_DIR)/tools-default.mk
--include $(PROJECT_CONFIG_DIR)/tools.mk
--include $(PROJECT_LOCAL_CONFIG_DIR)/tools.mk
-
-# path settings of the project
- include $(WIESEL_CONFIG_DIR)/paths-default.mk
--include $(PROJECT_CONFIG_DIR)/paths.mk
--include $(PROJECT_LOCAL_CONFIG_DIR)/paths.mk
-
-# include the platform configuration
- include $(WIESEL_CONFIG_DIR)/config-$(PLATFORM)-$(ARCH).mk
--include $(PROJECT_CONFIG_DIR)/config-$(PLATFORM)-$(ARCH).mk
--include $(PROJECT_LOCAL_CONFIG_DIR)/config-$(PLATFORM)-$(ARCH).mk
-
- include $(WIESEL_CONFIG_DIR)/config-$(CONFIGURATION).mk
--include $(PROJECT_CONFIG_DIR)/config-$(CONFIGURATION).mk
--include $(PROJECT_LOCAL_CONFIG_DIR)/config-$(CONFIGURATION).mk
-
-# get the makefile-includes of each library
-include $(WIESEL_DIR)/libraries/desktop/*/Makefile.mk
-include $(WIESEL_DIR)/libraries/desktop/third-party/*/Makefile.mk
-
-# finally, include our target scripts
-include $(WIESEL_BUILDSCRIPTS_DIR)/target-application.mk
-

build/build.cmake

+# main build script for all wiesel projects
+
+
+# ensure a correct version of cmake is installed
+cmake_minimum_required(VERSION 2.8)
+
+
+# compatibility
+set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
+
+
+# check if WIESEL_DIR is set and exists
+if(NOT WIESEL_DIR)
+	message(FATAL_ERROR "variable WIESEL_DIR missing")
+endif()
+
+# Add module path
+set(
+	CMAKE_MODULE_PATH
+	${CMAKE_MODULE_PATH}
+	"${WIESEL_DIR}/build/cmake/modules"
+)
+
+# paths
+set(WIESEL_SRC_DIR       ${WIESEL_DIR}/src)
+set(WIESEL_MODULES_DIR   ${WIESEL_DIR}/libraries/desktop)
+
+# load standard modules
+include(wiesel-module)
+
+
+# load optional config includes
+include(config/local/paths.cmake OPTIONAL)
+
+
+

build/cmake/modules/wiesel-module.cmake

+
+function(wiesel_module_add_dependency parent_target module)
+#	message("load module ${parent_target} - ${module}")
+	
+	if(ARGC GREATER 2)
+		set(MODULE_PATH ${WIESEL_MODULES_DIR}/${ARGN})
+	else()
+		set(MODULE_PATH ${WIESEL_MODULES_DIR}/${module})
+	endif()
+	
+	if((NOT TARGET ${module}) AND (EXISTS ${MODULE_PATH}/module.cmake))
+		include(${MODULE_PATH}/module.cmake)
+	endif()
+	
+	# add dependency
+	add_dependencies(${parent_target} ${module})
+	target_link_libraries(${parent_target} ${module})
+
+	# configure the include path for the parent target
+	get_target_property(MODULE_INCLUDE_DIRECTORIES ${module} EXPORT_INCLUDE_DIRECTORIES)
+	if (NOT MODULE_INCLUDE_DIRECTORIES STREQUAL "MODULE_INCLUDE_DIRECTORIES-NOTFOUND")
+		wiesel_target_add_includes(${parent_target} ${MODULE_INCLUDE_DIRECTORIES})
+	endif()
+
+	# also add exported libraries to the parent target
+#	get_target_property(MODULE_LIBRARIES ${module} EXPORT_LIBRARIES)
+#	if (NOT MODULE_LIBRARIES STREQUAL "MODULE_LIBRARIES-NOTFOUND")
+#		wiesel_target_add_libraries(${parent_target} ${MODULE_LIBRARIES})
+#	endif()
+	
+#	get_target_property(INCLUDES_2 ${parent_target} INCLUDE_DIRECTORIES)
+#	message("includes for ${parent_target}:  ${INCLUDES_2}")
+	
+endfunction(wiesel_module_add_dependency)
+
+
+
+function(wiesel_module_export_includes module)
+	set_property(TARGET ${module} APPEND PROPERTY EXPORT_INCLUDE_DIRECTORIES ${ARGN})
+endfunction(wiesel_module_export_includes)
+
+
+
+function(wiesel_module_export_libraries module)
+	set_property(TARGET ${module} APPEND PROPERTY EXPORT_LIBRARIES ${ARGN})
+endfunction(wiesel_module_export_libraries)
+
+
+
+function(wiesel_module_get_files var path)
+
+	file(GLOB_RECURSE MY_FILES ${path})
+	set(${var} ${MY_FILES} PARENT_SCOPE)
+	
+endfunction(wiesel_module_get_files)
+
+
+
+function(wiesel_create_executable target source_dir filter)
+	# get all sources from this directory
+	wiesel_module_get_files(MODULE_SRC_FILES ${source_dir}/${filter})
+	
+	# add sources to the module's target
+	add_executable(${target} ${MODULE_SRC_FILES})
+	
+	# add the source dir as include directory to the target
+	wiesel_target_add_includes(${target} ${source_dir})
+	
+endfunction(wiesel_create_executable)
+
+
+
+function(wiesel_create_module target source_dir filter)
+	# get all sources from this directory
+	wiesel_module_get_files(MODULE_SRC_FILES ${source_dir}/${filter})
+	
+	# add sources to the module's target
+	add_library(${target} SHARED ${MODULE_SRC_FILES})
+	
+	# add the source dir as include directory to the target
+	wiesel_target_add_includes(${target} ${source_dir})
+	
+endfunction(wiesel_create_module)
+
+
+
+function(wiesel_target_add_includes target)
+	set_property(TARGET ${target} APPEND PROPERTY INCLUDE_DIRECTORIES ${ARGN})
+	
+	# modify compiler flags
+	foreach(incl ${ARGN})
+		wiesel_target_add_compileflags(${target} -I${incl})
+	endforeach()
+	
+endfunction(wiesel_target_add_includes)
+
+
+
+function(wiesel_target_add_libraries target)
+	target_link_libraries(${target} ${ARGN})
+endfunction(wiesel_target_add_libraries)
+
+
+
+function(wiesel_target_add_compileflags target)
+	get_property(TARGET_COMPILE_FLAGS TARGET ${target} PROPERTY COMPILE_FLAGS)
+	
+	foreach(flag ${ARGN})
+		set(TARGET_COMPILE_FLAGS "${TARGET_COMPILE_FLAGS} ${flag}")
+	endforeach()
+	
+	set_property(TARGET ${target} PROPERTY COMPILE_FLAGS ${TARGET_COMPILE_FLAGS})
+endfunction(wiesel_target_add_compileflags)

build/target-application.mk

-# target script for building an application
-
-
-# macro for converting a source filename into a object filename
-define get-object-file
-$(BUILD_OBJ_DIR)/$(subst .,_,$(subst /,_,$(subst $(PROJECT_DIR),,$1)))$(OBJECTFILE_EXTENSION)
-endef
-
-
-# macro for defining the object file targets
-define make-goal-c
-$(strip $(shell echo $(shell $(COMPILE.CPP) $(C_FLAGS) $(COMPILER_ARGUMENTS) -MM -MQ"$2" $1) | sed -e 's/\s+/ /g'))
-	@echo "Compiling $1 ...";
-	@$(COMPILE.CPP) $(C_FLAGS) $(COMPILER_ARGUMENTS) -c $1 -o $2
-endef
-
-# same for cpp targets
-define make-goal-cpp
-$(strip $(shell echo $(shell $(COMPILE.C) $(C_FLAGS) $(COMPILER_ARGUMENTS) -MM -MQ"$2" $1) | sed -e 's/\s+/ /g'))
-	@echo "Compiling $1 ...";
-	@$(COMPILE.C) $(C_FLAGS) $(COMPILER_ARGUMENTS) -c $1 -o $2
-endef
-
-
-# get all directories within the source folders
-BUILD_FOLDERS			:= $(foreach dir,$(PROJECT_SOURCE_FOLDERS),$(shell /usr/bin/find $(dir) -type d -print))
-BUILD_SOURCE_H_FILES		:= $(foreach dir,$(BUILD_FOLDERS),$(wildcard $(dir)/*.h))
-BUILD_SOURCE_C_FILES		:= $(foreach dir,$(BUILD_FOLDERS),$(wildcard $(dir)/*.c))
-BUILD_SOURCE_CPP_FILES		:= $(foreach dir,$(BUILD_FOLDERS),$(wildcard $(dir)/*.cpp))
-BUILD_SOURCE_FILES		:= $(BUILD_SOURCE_C_FILES) $(BUILD_SOURCE_CPP_FILES)
-BUILD_OBJECT_FILES		:= $(foreach file,$(BUILD_SOURCE_FILES),$(call get-object-file,$(file)))
-
-# set the name of the dependency file
-BUILD_DEPENDENCY_FILE		:= $(BUILD_OBJ_DIR)/.dep.inc.mk
-
-# set the resulting filename
-BUILD_TARGET			:= $(BUILD_BIN_DIR)/$(PROJECT_NAME)$(EXECUTABLE_EXTENSION)
-
-# all source folders will be added to the include paths
-C_INCLUDE_PATHS			+= $(PROJECT_SOURCE_FOLDERS)
-
-
-
-# create commandline arguments
-
-# compiler arguments
-COMPILER_ARGUMENTS		+= $(foreach dir,$(C_INCLUDE_PATHS),-I$(dir))
-
-# linker library paths
-LINKER_ARGUMENTS		+= $(foreach dir,$(LD_LIBRARY_PATHS),-L$(dir))
-
-# extra libraries
-LINKER_ARGUMENTS		+= $(foreach dir,$(LD_LIBRARIES),-l$(dir))
-
-
-
-# define all object file targets
-$(foreach file,$(BUILD_SOURCE_C_FILES),$(eval $(call make-goal-c,$(file),$(call get-object-file,$(file)))))
-$(foreach file,$(BUILD_SOURCE_CPP_FILES),$(eval $(call make-goal-cpp,$(file),$(call get-object-file,$(file)))))
-
-
-# create the output folders, if necessary
-$(BUILD_OBJ_DIR):
-	@mkdir -p $(BUILD_OBJ_DIR)
-
-$(BUILD_BIN_DIR):
-	@mkdir -p $(BUILD_BIN_DIR)
-	
-	@for file in $(strip $(CP_LIBRARY_PATHS))/*$(SHARED_LIBRARY_EXTENSION); do \
-		$(COPY) $$file $(BUILD_BIN_DIR); \
-	done;
-
-
-
-
-# build the dependency file
-$(BUILD_DEPENDENCY_FILE): $(BUILD_OBJ_DIR) $(BUILD_SOURCE_FILES) $(BUILD_SOURCE_H_FILES)
-	@echo "computing dependencies...";
-	@echo "# build dependency file" > $(BUILD_DEPENDENCY_FILE);
-	@for file in $(BUILD_SOURCE_FILES); do \
-		echo "# $$file" >> $(BUILD_DEPENDENCY_FILE); \
-		$(COMPILE.CPP) $(C_FLAGS) $(COMPILER_ARGUMENTS) \
-		-MM -MQ"$$file$(OBJECTFILE_EXTENSION)" $$file >> $(BUILD_DEPENDENCY_FILE); \
-		echo "" >> $(BUILD_DEPENDENCY_FILE); \
-	done;
-
-# get the dependencies
-#include $(BUILD_DEPENDENCY_FILE)
-
-
-
-
-# compiling the object files
-#$(BUILD_OBJECT_FILES): $(BUILD_SOURCE_CPP_FILES)
-#	@$(COMPILE.CPP) $(C_FLAGS) -c $+ -o $@
-
-# compiling / linking the target
-$(BUILD_TARGET): $(BUILD_BIN_DIR) $(BUILD_OBJ_DIR) $(BUILD_OBJECT_FILES)
-	@echo "Linking...";
-	@$(LINK) $(BUILD_OBJECT_FILES) -o $(BUILD_TARGET) $(LD_FLAGS) $(LINKER_ARGUMENTS)
-
-
-# list the current configuration
-show-config:
-	@echo "Make:             $(MAKE) - $(shell $(MAKE) --version)";
-	@echo "C Compiler:       $(COMPILE.C) - $(shell $(COMPILE.C) --version)";
-	@echo "C++ Compiler:     $(COMPILE.CPP) - $(shell $(COMPILE.CPP) --version)";
-	@echo "Linker:           $(LINK) - $(shell $(LINK) --version)";
-	@echo "";
-	
-	@echo "Compiler Flags:   $(C_FLAGS)";
-	@echo "Linker Flags:     $(LD_FLAGS)";
-	@echo "Extra Libraries:  $(LD_LIBRARIES)";
-	@echo "";
-	
-	@echo "Source Folders:";
-	@for dir in $(PROJECT_SOURCE_FOLDERS); do \
-		echo "    - $$dir"; \
-		if [ ! -d $$dir ]; then \
-			echo "      !! directory not reachable!"; \
-		fi; \
-	done;
-	@echo "";
-	
-	@echo "Include directories:";
-	@for dir in $(C_INCLUDE_PATHS); do \
-		echo "    - $$dir"; \
-		if [ ! -d $$dir ]; then \
-			echo "      !! directory not reachable!"; \
-		fi; \
-	done;
-	@echo "";
-	
-	@echo "Library search paths:";
-	@for dir in $(LD_LIBRARY_PATHS); do \
-		echo "    - $$dir"; \
-		if [ ! -d $$dir ]; then \
-			echo "      !! directory not reachable!"; \
-		fi; \
-	done;
-	@echo "";
-
-
-# create the dependency file
-dep: $(BUILD_DEPENDENCY_FILE)
-
-
-# build the application
-build: $(BUILD_TARGET)
-
-
-# clear all build files
-clean:
-	@rm -rf $(BUILD_BIN_DIR)
-	@rm -rf $(BUILD_OBJ_DIR)
-

config/config-debug.mk

-# debug configuration
-
-# print all warnings
-C_FLAGS			+= -Wall
-
-# create debug code
-C_FLAGS			+= -g

config/config-linux-i686.mk

-# linux 32bit configuration
-
-# 32 bit architecture
-C_FLAGS				+= -m32
-LD_FLAGS			+= -m32
-
-# c flags
-C_FLAGS				+= 
-
-# use SDL library
-C_FLAGS				+= -DWIESEL_USE_LIBSDL
-LD_LIBRARIES			+= SDL SDL_image GL
-LD_LIBRARY_PATHS		+= 
-
-OBJECTFILE_EXTENSION		:= .o
-EXECUTABLE_EXTENSION		:= 
-LIBRARY_EXTENSION		:= .a
-SHARED_LIBRARY_EXTENSION	:= .so
-
-

config/config-linux-x86_64.mk

-# linux 64bit configuration
-
-# 64 bit architecture
-C_FLAGS				+= -m64
-LD_FLAGS			+= -m64
-
-# c flags
-C_FLAGS				+= 
-
-# use SDL library
-C_FLAGS				+= -DWIESEL_USE_LIBSDL
-LD_LIBRARIES			+= SDL SDL_image GL
-LD_LIBRARY_PATHS		+= 
-
-OBJECTFILE_EXTENSION		:= .o
-EXECUTABLE_EXTENSION		:= 
-LIBRARY_EXTENSION		:= .a
-SHARED_LIBRARY_EXTENSION	:= .so
-
-

config/config-windows-i686.mk

-# windows 32bit configuration
-
-# 32 bit architecture
-C_FLAGS				+= -m32 -mwindows
-LD_FLAGS			+= -m32 -mwindows
-
-# required when compiling with MingGW
-LD_FLAGS			+= -static-libgcc -static-libstdc++
-
-# windows
-C_FLAGS				+= -D__WIN32__ -D_WIN32 -DWIN32
-
-# use SDL library
-C_FLAGS				+= -DWIESEL_USE_LIBSDL
-LD_LIBRARIES			+= SDL SDL_image opengl32
-LD_LIBRARY_PATHS		+= 
-CP_LIBRARY_PATHS		+= 
-
-OBJECTFILE_EXTENSION		:= .obj
-EXECUTABLE_EXTENSION		:= .exe
-LIBRARY_EXTENSION		:= .lib
-SHARED_LIBRARY_EXTENSION	:= .dll
-
-

config/paths-default.mk

-# default paths - may be overridden in PROJECT_DIR/config/paths.mk
-
-# project paths
-PROJECT_SOURCE_FOLDERS	:= $(PROJECT_DIR)/src
-
-# build paths
-BUILD_SUBDIR		:= $(PLATFORM)-$(ARCH)
-BUILD_OBJ_DIR		:= $(PROJECT_DIR)/build/$(BUILD_SUBDIR)/obj
-BUILD_BIN_DIR		:= $(PROJECT_DIR)/build/$(BUILD_SUBDIR)/bin
-

config/platform.mk

-# determine the current build-environment platform and architecture
-
-ARCH			:= $(shell uname -m)
-PLATFORM		:= $(shell uname)
-
-# cygwin
-ifeq ($(findstring CYGWIN,$(PLATFORM)),CYGWIN)
-	PLATFORM	:= windows
-endif
-
-# mingw
-ifeq ($(findstring MINGW32,$(PLATFORM)),MINGW32)
-	PLATFORM	:= windows
-endif
-
-# linux
-ifeq ($(findstring Linux,$(PLATFORM)),Linux)
-	PLATFORM	:= linux
-endif

config/tools-default.mk

-# configure the default tool paths
-# may be overridden in PROJECT_DIR/config/tools.mk
-
-MAKE			:= make
-COMPILE.C		:= gcc
-COMPILE.CPP		:= g++
-LINK			:= g++
-COPY			:= cp
-
-# C compiler flags
-C_FLAGS			:=
-
-# C include directories
-C_INCLUDE_PATHS		:=
-
-# C library search paths
-LD_LIBRARY_PATHS	:=
-
-# Libraries to be linked with the target
-LD_LIBRARIES		:=
-
-# linker flags
-LD_FLAGS		:=
-
-# paths where to copy binary libraries from into the target dir
-CP_LIBRARY_PATHS	:=
-

libraries/desktop/third-party/glee/Makefile.mk

-# OpenGL easy extension library
-
-# add library sources to project path
-PROJECT_SOURCE_FOLDERS		+= $(WIESEL_DIR)/src/third-party/glee-5.4
-

libraries/desktop/third-party/glee/module.cmake

+# glee library
+
+
+# create the library
+wiesel_create_module(glee ${WIESEL_SRC_DIR}/third-party/glee-5.4 *.c)
+
+# export include directories of this library for other targets
+wiesel_module_export_includes(glee ${WIESEL_SRC_DIR}/third-party/glee-5.4)
+
+
+# add opengl dependency
+include(FindOpenGL)
+
+if(DEFINED OPENGL_FOUND)
+	wiesel_module_export_includes(glee ${WIESEL_SRC_DIR}/third-party/glee-5.4)
+	wiesel_target_add_libraries(glee ${OPENGL_LIBRARIES})
+	wiesel_target_add_includes(glee ${OPENGL_INCLUDE_DIR})
+	
+	# TODO: OpenGL and GLee includes are globally. Need to remove when no longer required
+	include_directories(${OPENGL_INCLUDE_DIR})
+	include_directories(${WIESEL_SRC_DIR}/third-party/glee-5.4)
+else()
+	message(FATAL_ERROR "required library opengl not found!")
+endif()

libraries/desktop/third-party/libxml/Makefile.mk

-# libxml2 library
-
-# add the include path returned by xml2-config to the C_FLAGS variable
-C_FLAGS		+= `xml2-config --cflags`
-LD_FLAGS	+= `xml2-config --libs`

libraries/desktop/wiesel-base/Makefile.mk

-# wiesel-base include directory
-
-# add library sources to project path
-PROJECT_SOURCE_FOLDERS		+= $(WIESEL_DIR)/src/base
-

libraries/desktop/wiesel-base/module.cmake

+# wiesel-base library
+
+
+# create the library
+wiesel_create_module(wiesel-base ${WIESEL_SRC_DIR}/base *.cpp)
+
+# export include directories of this library for other targets
+wiesel_module_export_includes(wiesel-base ${WIESEL_SRC_DIR}/base)

libraries/desktop/wiesel-common/Makefile.mk

-# wiesel-common include directory
-
-# add library sources to project path
-PROJECT_SOURCE_FOLDERS		+= $(WIESEL_DIR)/src/common
-

libraries/desktop/wiesel-common/module.cmake

+# wiesel-common library
+
+
+# collect all files which belongs to this library
+wiesel_create_module(wiesel-common ${WIESEL_SRC_DIR}/common *.cpp)
+
+# export include directories of this library for other targets
+wiesel_module_export_includes(wiesel-common ${WIESEL_SRC_DIR}/common)
+
+# add required modules
+wiesel_module_add_dependency(wiesel-common wiesel-base)
+wiesel_module_add_dependency(wiesel-common glee third-party/glee)
+
+
+
+# add libxml2 dependency
+include(FindLibXml2)
+
+if(DEFINED LIBXML2_FOUND)
+	wiesel_target_add_includes(wiesel-common ${LIBXML2_INCLUDE_DIR})
+	wiesel_target_add_libraries(wiesel-common ${LIBXML2_LIBRARIES})
+	wiesel_target_add_compileflags(wiesel-common ${LIBXML2_DEFINITIONS})
+else()
+	message(FATAL_ERROR "required library libxml2 not found!")
+endif()
+
+
+# add SDL dependency
+include(FindSDL)
+
+if(DEFINED SDL_FOUND)
+	wiesel_target_add_includes(wiesel-common ${SDL_INCLUDE_DIR})
+	wiesel_target_add_libraries(wiesel-common ${SDL_LIBRARY})
+	wiesel_target_add_compileflags(wiesel-common "-DWIESEL_USE_LIBSDL")
+else()
+	message(FATAL_ERROR "required library SDL not found!")
+endif()
+
+
+# add SDL_image dependency
+include(FindSDL_image)
+
+if(DEFINED SDL_FOUND)
+	wiesel_target_add_libraries(wiesel-common ${SDLIMAGE_LIBRARY})
+else()
+	message(FATAL_ERROR "required library SDL not found!")
+endif()

samples/HelloWiesel/CMakeLists.txt

+# makefile for the current project
+
+# ensure a correct version of cmake is installed
+cmake_minimum_required(VERSION 2.8)
+
+
+# in this case, the engine folder is in the same repository,
+# so we always know the correct location.
+# when the engine location is different on various build environments,
+# you may put the definition of WIESEL_DIR into a separate file under 
+# config/local, where it is not committed into version control.
+set(WIESEL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../..)
+
+# include the main build file of the engine
+include(${WIESEL_DIR}/build/build.cmake)
+
+
+
+# set the project name
+project(HelloWiesel)
+
+
+
+wiesel_create_executable(HelloWiesel src *.cpp)
+
+
+# add required libraries
+wiesel_module_add_dependency(HelloWiesel wiesel-base)
+wiesel_module_add_dependency(HelloWiesel wiesel-common)
+
+wiesel_target_add_compileflags(HelloWiesel "-DWIESEL_USE_LIBSDL")
+

samples/HelloWiesel/Makefile

-# makefile for the current project
-
-# set the project name
-PROJECT_NAME := HelloWiesel
-
-# get the current project's directory
-PROJECT_DIR := $(shell pwd)
-
-# in this case, the engine folder is in the same repository,
-# so we always know the correct location.
-# when the engine location is different on various build environments,
-# you may put the definition of WIESEL_DIR into a separate file under 
-# config/local, where it is not committed into version control.
-WIESEL_DIR := $(PROJECT_DIR)/../..
-
-# include the main build file of the engine
-include $(WIESEL_DIR)/Makefile

samples/HelloWiesel/config/paths.mk

-# override path settings in WIESEL_DIR/config/paths-default.mk
-
-# BUILD_OBJ_DIR			= 
-# BUILD_BIN_DIR			= 
-
-# PROJECT_SOURCE_FOLDERS	= $(PROJECT_DIR)/src

samples/HelloWiesel/src/HelloWiesel.cpp

 
 private:
 	Texture*		texture;
-	Font*			font;
+	wiesel::Font*	font;
 
 	SpriteNode*		sprite;
 	LabelNode*		label;

src/common/wiesel/gl/vbo/indexbuffer.cpp

 
 #include <assert.h>
 #include <malloc.h>
+#include <string.h>
+#include <stdint.h>
 
 
 using namespace wiesel;