Skip to content

Commit

Permalink
Merge pull request #339 from GarageGames/development
Browse files Browse the repository at this point in the history
Torque 2D 3.3!
  • Loading branch information
greenfire27 committed Apr 4, 2016
2 parents 8605814 + 107b998 commit 4571f96
Show file tree
Hide file tree
Showing 92 changed files with 5,116 additions and 1,277 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![Torque Logo](http://static.garagegames.com/static/pg/logokits/Torque-Logo_H.png)
## Torque 2D 3.2
## Torque 2D 3.3

MIT Licensed Open Source version of Torque 2D from GarageGames. Maintained by the T2D Steering Committee and contributions from the community.

Expand All @@ -21,11 +21,11 @@ If you do not wish to compile the source code yourself, precompiled binary files

After downloading a copy of the source code, the following project files for each platform are provided for you and can be found in the `engine/compilers` folder.

* **Windows:** Visual Studio 2010, 2012, or 2013 (works with the free, "Express for Windows Desktop" version)
* **Windows:** Visual Studio 2013 or 2015 (works with the free, "Express for Windows Desktop" version)
* **OSX:** Xcode
* **Linux:** Make
* **iOS:** Xcode_iOS
* **Android:** Eclipse
* **Android:** Eclipse or Android Studio
* **Web:** Emscripten/Cmake

See the [wiki](https://github.com/GarageGames/Torque2D/wiki) for available guides on platform setup and development.
Expand Down
2 changes: 2 additions & 0 deletions engine/compilers/Make/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ clean:
-include x zlib
-include x lpng
-include x ljpeg
-include x vorbis
-include x ogg

release: $(LIB_TARGETS) $(SHARED_LIB_TARGETS) $(APP_TARGETS)
@echo Built libraries: $(LIB_TARGETS)
Expand Down
12 changes: 9 additions & 3 deletions engine/compilers/Make/Torque2D
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
APPNAME := ../../../Torque2D

SOURCES := ../../source/2d/assets/AnimationAsset.cc \
../../source/2d/assets/FontAsset.cc \
../../source/2d/assets/ImageAsset.cc \
../../source/2d/assets/ParticleAsset.cc \
../../source/2d/assets/ParticleAssetEmitter.cc \
Expand Down Expand Up @@ -30,7 +31,6 @@ SOURCES := ../../source/2d/assets/AnimationAsset.cc \
../../source/2d/gui/guiSpriteCtrl.cc \
../../source/2d/gui/SceneWindow.cc \
../../source/2d/sceneobject/CompositeSprite.cc \
../../source/2d/sceneobject/ImageFont.cc \
../../source/2d/sceneobject/ParticlePlayer.cc \
../../source/2d/sceneobject/SceneObject.cc \
../../source/2d/sceneobject/SceneObjectList.cc \
Expand All @@ -39,6 +39,7 @@ SOURCES := ../../source/2d/assets/AnimationAsset.cc \
../../source/2d/sceneobject/ShapeVector.cc \
../../source/2d/sceneobject/SkeletonObject.cc \
../../source/2d/sceneobject/Sprite.cc \
../../source/2d/sceneobject/TextSprite.cc \
../../source/2d/sceneobject/Trigger.cc \
../../source/2d/scene/ContactFilter.cc \
../../source/2d/scene/DebugDraw.cc \
Expand All @@ -56,6 +57,8 @@ SOURCES := ../../source/2d/assets/AnimationAsset.cc \
../../source/assets/declaredAssets.cc \
../../source/assets/referencedAssets.cc \
../../source/audio/AudioAsset.cc \
../../source/bitmapFont/BitmapFont.cc \
../../source/bitmapFont/BitmapFontCharacter.cc \
../../source/Box2D/Collision/b2BroadPhase.cpp \
../../source/Box2D/Collision/b2CollideCircle.cpp \
../../source/Box2D/Collision/b2CollideEdge.cpp \
Expand Down Expand Up @@ -238,6 +241,7 @@ SOURCES := ../../source/2d/assets/AnimationAsset.cc \
../../source/persistence/tinyXML/tinyxml.cpp \
../../source/persistence/tinyXML/tinyxmlerror.cpp \
../../source/persistence/tinyXML/tinyxmlparser.cpp \
../../source/audio/vorbisStreamSource.cc \
../../source/audio/audio.cc \
../../source/audio/audioBuffer.cc \
../../source/audio/audioDataBlock.cc \
Expand Down Expand Up @@ -398,12 +402,12 @@ SOURCES := ../../source/2d/assets/AnimationAsset.cc \
../../source/gui/editor/guiInspector.cc \
../../source/gui/editor/guiInspectorTypes.cc \
../../source/gui/editor/guiMenuBar.cc \
../../source/gui/editor/guiSeparatorCtrl.cc
../../source/gui/editor/guiSeparatorCtrl.cc

LDFLAGS := -g -m32
LDLIBS := -lstdc++ -lm -ldl -lpthread -lrt -lX11 -lXft -lSDL -lopenal

CFLAGS := -MMD -I. -Wfatal-errors -Wunused -m32 -msse -march=i686 -pipe
CFLAGS := -std=gnu++11 -MMD -I. -Wfatal-errors -Wunused -m32 -msse -march=i686 -pipe

CFLAGS += -I/usr/include
CFLAGS += -I/usr/include/freetype2
Expand All @@ -413,6 +417,8 @@ CFLAGS += -I../../lib/ljpeg
CFLAGS += -I../../lib/zlib
CFLAGS += -I../../lib/lpng
CFLAGS += -I../../lib/freetype
CFLAGS += -I../../lib/libvorbis/include
CFLAGS += -I../../lib/libogg/include

CFLAGS += -DLINUX

Expand Down
64 changes: 64 additions & 0 deletions engine/compilers/Make/ogg
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# I release this sample under the MIT license: free for any use, provided
# you hold me harmless from any such use you make, and you retain my
# copyright on the actual sources.
# Copyright 2005 Jon Watte.

LIBNAME := ogg
SOURCES := \
../../lib/libogg/src/bitwise.c \
../../lib/libogg/src/framing.c \

LDFLAGS_ogg := -g -m32

CFLAGS_ogg := -MMD -I. -m32 -msse -mmmx -march=i686

CFLAGS_ogg += -I../../lib/libogg/include

CFLAGS_ogg += -DUNICODE
CFLAGS_ogg += -DLINUX

CFLAGS_DEBUG_ogg := $(CFLAGS_ogg) -ggdb
CFLAGS_DEBUG_ogg += -DTORQUE_DEBUG
CFLAGS_DEBUG_ogg += -DTORQUE_DEBUG_GUARD
CFLAGS_DEBUG_ogg += -DTORQUE_NET_STATS

CFLAGS_ogg += -O3

CC := gcc
LD := gcc

TARGET_ogg := lib/libogg.a
TARGET_ogg_DEBUG := lib/libogg_DEBUG.a

LIB_TARGETS += $(TARGET_ogg)
LIB_TARGETS_DEBUG += $(TARGET_ogg_DEBUG)

OBJS_ogg := $(patsubst ../../lib/libogg/%,Release/ogg/%.o,$(SOURCES))
OBJS_ogg_DEBUG := $(patsubst ../../lib/libogg/%,Debug/ogg/%.o,$(SOURCES))

# Deriving the variable name from the target name is the secret sauce
# of the build system.
#
$(TARGET_ogg): $(OBJS_ogg)
@mkdir -p $(dir $@)
ar cr $@ $(OBJS_ogg)

$(TARGET_ogg_DEBUG): $(OBJS_ogg_DEBUG)
@mkdir -p $(dir $@)
ar cr $@ $(OBJS_ogg_DEBUG)

Release/ogg/%.o: ../../lib/libogg/%
@mkdir -p $(dir $@)
$(CC) -c $(CFLAGS_ogg) $< -o $@

Debug/ogg/%.o: ../../lib/libogg/%
@mkdir -p $(dir $@)
$(CC) -c $(CFLAGS_DEBUG_ogg) $< -o $@

release_ogg: $(TARGET_ogg)
debug_ogg: $(TARGET_ogg_DEBUG)

.PHONY: debug_ogg release_ogg

DEPS += $(patsubst %.o,%.d,$(OBJS_ogg))
DEPS += $(patsubst %.o,%.d,$(OBJS_ogg_DEBUG))
89 changes: 89 additions & 0 deletions engine/compilers/Make/vorbis
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# I release this sample under the MIT license: free for any use, provided
# you hold me harmless from any such use you make, and you retain my
# copyright on the actual sources.
# Copyright 2005 Jon Watte.

LIBNAME := vorbis
SOURCES := \
../../lib/libvorbis/analysis.c \
../../lib/libvorbis/barkmel.c \
../../lib/libvorbis/bitrate.c \
../../lib/libvorbis/block.c \
../../lib/libvorbis/codebook.c \
../../lib/libvorbis/envelope.c \
../../lib/libvorbis/floor0.c \
../../lib/libvorbis/floor1.c \
../../lib/libvorbis/info.c \
../../lib/libvorbis/lookup.c \
../../lib/libvorbis/lpc.c \
../../lib/libvorbis/lsp.c \
../../lib/libvorbis/mapping0.c \
../../lib/libvorbis/mdct.c \
../../lib/libvorbis/psy.c \
../../lib/libvorbis/registry.c \
../../lib/libvorbis/res0.c \
../../lib/libvorbis/sharedbook.c \
../../lib/libvorbis/smallft.c \
../../lib/libvorbis/synthesis.c \
../../lib/libvorbis/tone.c \
../../lib/libvorbis/vorbisenc.c \
../../lib/libvorbis/vorbisfile.c \
../../lib/libvorbis/window.c \

LDFLAGS_vorbis := -g -m32

CFLAGS_vorbis := -MMD -I. -m32 -msse -mmmx -march=i686

CFLAGS_vorbis += -I../../lib/libvorbis
CFLAGS_vorbis += -I../../lib/libvorbis/lib
CFLAGS_vorbis += -I../../lib/libvorbis/include
CFLAGS_vorbis += -I../../lib/libogg/include

CFLAGS_vorbis += -DUNICODE
CFLAGS_vorbis += -DLINUX

CFLAGS_DEBUG_vorbis := $(CFLAGS_vorbis) -ggdb
CFLAGS_DEBUG_vorbis += -DTORQUE_DEBUG
CFLAGS_DEBUG_vorbis += -DTORQUE_DEBUG_GUARD
CFLAGS_DEBUG_vorbis += -DTORQUE_NET_STATS

CFLAGS_vorbis += -O3

CC := gcc
LD := gcc

TARGET_vorbis := lib/libvorbis.a
TARGET_vorbis_DEBUG := lib/libvorbis_DEBUG.a

LIB_TARGETS += $(TARGET_vorbis)
LIB_TARGETS_DEBUG += $(TARGET_vorbis_DEBUG)

OBJS_vorbis := $(patsubst ../../lib/libvorbis/%,Release/vorbis/%.o,$(SOURCES))
OBJS_vorbis_DEBUG := $(patsubst ../../lib/libvorbis/%,Debug/vorbis/%.o,$(SOURCES))

# Deriving the variable name from the target name is the secret sauce
# of the build system.
#
$(TARGET_vorbis): $(OBJS_vorbis)
@mkdir -p $(dir $@)
ar cr $@ $(OBJS_vorbis)

$(TARGET_vorbis_DEBUG): $(OBJS_vorbis_DEBUG)
@mkdir -p $(dir $@)
ar cr $@ $(OBJS_vorbis_DEBUG)

Release/vorbis/%.o: ../../lib/libvorbis/%
@mkdir -p $(dir $@)
$(CC) -c $(CFLAGS_vorbis) $< -o $@

Debug/vorbis/%.o: ../../lib/libvorbis/%
@mkdir -p $(dir $@)
$(CC) -c $(CFLAGS_DEBUG_vorbis) $< -o $@

release_vorbis: $(TARGET_vorbis)
debug_vorbis: $(TARGET_vorbis_DEBUG)

.PHONY: debug_vorbis release_vorbis

DEPS += $(patsubst %.o,%.d,$(OBJS_vorbis))
DEPS += $(patsubst %.o,%.d,$(OBJS_vorbis_DEBUG))
71 changes: 0 additions & 71 deletions engine/compilers/Project1/Project1.vcxproj

This file was deleted.

17 changes: 0 additions & 17 deletions engine/compilers/Project1/Project1.vcxproj.filters

This file was deleted.

Loading

0 comments on commit 4571f96

Please sign in to comment.