|
|
3b32dda |
diff -up 0ad-0.0.14-alpha/libraries/source/fcollada/src/Makefile.orig 0ad-0.0.14-alpha/libraries/source/fcollada/src/Makefile
|
|
|
3b32dda |
--- 0ad-0.0.14-alpha/libraries/source/fcollada/src/Makefile.orig 2013-09-05 11:06:14.192030546 -0300
|
|
|
3b32dda |
+++ 0ad-0.0.14-alpha/libraries/source/fcollada/src/Makefile 2013-09-05 11:09:01.894036968 -0300
|
|
|
3b32dda |
@@ -14,10 +14,7 @@ CXXFLAGS += -fvisibility=hidden -W -Wall
|
|
|
3b32dda |
ifeq ($(OS_CPU),armv7l)
|
|
|
3b32dda |
CXXFLAGS += -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard
|
|
|
3b32dda |
endif
|
|
|
879053e |
-CXXFLAGS_DEBUG := -O0 -g -D_DEBUG -DRETAIL
|
|
|
879053e |
CXXFLAGS_RELEASE := -O1 -DNDEBUG -DRETAIL
|
|
|
3b32dda |
-# (-O2 with gcc 4.3 causes linker errors when using this library, for unknown reasons, so stick with -O1 until gcc >4.3 is typical.)
|
|
|
879053e |
-CXXFLAGS_TEST := -O0 -g -D_DEBUG
|
|
|
879053e |
LIBS += `pkg-config libxml-2.0 --libs`
|
|
|
879053e |
INCLUDES += -IFCollada `pkg-config libxml-2.0 --cflags`
|
|
|
879053e |
INCLUDES_TEST := -IFCollada/FColladaTest $(INCLUDES)
|
|
|
3b32dda |
@@ -186,62 +183,13 @@ SOURCE = \
|
|
|
879053e |
FColladaPlugins/FArchiveXML/FAXSceneExport.cpp \
|
|
|
879053e |
FColladaPlugins/FArchiveXML/FAXSceneImport.cpp \
|
|
|
879053e |
|
|
|
879053e |
-TEST_SOURCE = \
|
|
|
879053e |
- FCollada/FMath/FMArrayTest.cpp \
|
|
|
879053e |
- FCollada/FMath/FMQuaternionTest.cpp \
|
|
|
879053e |
- FCollada/FMath/FMTreeTest.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUBoundingTest.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUCrc32Test.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUEventTest.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUFileManagerTest.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUFunctorTest.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUObjectTest.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUStringBuilderTest.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUStringConversionTest.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUStringTest.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUTestBed.cpp \
|
|
|
879053e |
- FCollada/FUtils/FUUniqueStringMapTest.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTest.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestAnimation.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestArchiving.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestController.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestGeometryPolygonsTools.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestParameters.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestSceneGraph.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestAssetManagement/FCTAMCrossCloning.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestAssetManagement/FCTAssetManagement.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTEIAnimation.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTEICamera.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTEIEmitter.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTEIExtra.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTEIGeometry.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTEILight.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTEIMaterial.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTEIPhysics.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTEIVisualScene.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestExportImport/FCTestExportImport.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestXRef/FCTestXRef.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestXRef/FCTestXRefAcyclic.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestXRef/FCTestXRefSimple.cpp \
|
|
|
879053e |
- FCollada/FColladaTest/FCTestXRef/FCTestXRefTree.cpp \
|
|
|
879053e |
-
|
|
|
879053e |
-OBJECTS_DEBUG = $(addprefix output/debug/,$(SOURCE:.cpp=.o))
|
|
|
879053e |
OBJECTS_RELEASE = $(addprefix output/release/,$(SOURCE:.cpp=.o))
|
|
|
879053e |
-OBJECTS_TEST = $(addprefix output/test/,$(SOURCE:.cpp=.o) $(TEST_SOURCE:.cpp=.o))
|
|
|
879053e |
-OBJECTS_ALL = $(OBJECTS_DEBUG) $(OBJECTS_RELEASE) $(OBJECTS_TEST)
|
|
|
879053e |
+OBJECTS_ALL = $(OBJECTS_RELEASE)
|
|
|
879053e |
|
|
|
879053e |
-all: output_dirs output/libFColladaSD.a output/libFColladaSR.a install
|
|
|
879053e |
+all: output_dirs output/libFColladaSR.a install
|
|
|
879053e |
|
|
|
879053e |
output_dirs:
|
|
|
879053e |
- bash -c 'mkdir -p output/{debug,release,test}/{FCollada/{FCDocument,FMath,FUtils,FColladaTest/{FCTestAssetManagement,FCTestExportImport,FCTestXRef}},FColladaPlugins/FArchiveXML}'
|
|
|
879053e |
-
|
|
|
879053e |
-test: FCollada/FColladaTest/ output/FColladaTest
|
|
|
879053e |
- ( cd FCollada/FColladaTest/ ; ../../output/FColladaTest )
|
|
|
879053e |
- cat FCollada/FColladaTest/FColladaTestLog.txt
|
|
|
5d924be |
-
|
|
|
879053e |
-output/libFColladaSD.a: $(OBJECTS_DEBUG)
|
|
|
879053e |
- @echo "$@"
|
|
|
879053e |
- @ar -cr $@ $(OBJECTS_DEBUG); ranlib $@
|
|
|
5d924be |
+ bash -c 'mkdir -p output/release/{FCollada/{FCDocument,FMath,FUtils,FColladaTest/{FCTestAssetManagement,FCTestExportImport,FCTestXRef}},FColladaPlugins/FArchiveXML}'
|
|
|
5d924be |
|
|
|
879053e |
output/libFColladaSR.a: $(OBJECTS_RELEASE)
|
|
|
879053e |
@echo "$@"
|
|
|
3b32dda |
@@ -250,8 +198,7 @@ output/libFColladaSR.a: $(OBJECTS_RELEAS
|
|
|
3b32dda |
output/FColladaTest: $(OBJECTS_TEST)
|
|
|
3b32dda |
$(CXX) -o $@ $(LDFLAGS) $(OBJECTS_TEST) $(LIBS)
|
|
|
879053e |
|
|
|
879053e |
-install: output/libFColladaSD.a output/libFColladaSR.a
|
|
|
879053e |
- cp output/libFColladaSD.a ../lib/libFColladaSD.a
|
|
|
879053e |
+install: output/libFColladaSR.a
|
|
|
879053e |
cp output/libFColladaSR.a ../lib/libFColladaSR.a
|
|
|
879053e |
|
|
|
879053e |
dfile = $(@:.o=.d)
|
|
|
3b32dda |
@@ -261,18 +208,10 @@ gendep = \
|
|
|
879053e |
sed -e 's/\#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
|
|
|
879053e |
-e '/^$$/ d' -e 's/$$/ :/' < $(dfile) >> $(Pfile) && \
|
|
|
879053e |
rm -f $(dfile)
|
|
|
879053e |
-output/debug/%.o: %.cpp
|
|
|
879053e |
- @echo "$<"
|
|
|
879053e |
- $(CXX) $(CXXFLAGS) $(CXXFLAGS_DEBUG) $(INCLUDES) -MD -MF $(dfile) -c $< -o $@
|
|
|
879053e |
- $(gendep)
|
|
|
879053e |
output/release/%.o: %.cpp
|
|
|
879053e |
@echo "$<"
|
|
|
879053e |
$(CXX) $(CXXFLAGS) $(CXXFLAGS_RELEASE) $(INCLUDES) -MD -MF $(dfile) -c $< -o $@
|
|
|
879053e |
$(gendep)
|
|
|
879053e |
-output/test/%.o: %.cpp
|
|
|
879053e |
- @echo "$<"
|
|
|
879053e |
- $(CXX) $(CXXFLAGS) $(CXXFLAGS_TEST) $(INCLUDES_TEST) -MD -MF $(dfile) -c $< -o $@
|
|
|
879053e |
- $(gendep)
|
|
|
879053e |
|
|
|
879053e |
clean:
|
|
|
879053e |
rm -rf output
|