Browse Source

Fixed openal lib copying issue using a script and removed the todos from the testing since they are not compiled anyway

Tim Newell 12 years ago
parent
commit
4f1c5024e9

+ 1 - 0
engine/compilers/android/jni/Android.mk

@@ -30,6 +30,7 @@ include $(CLEAR_VARS)
 LOCAL_MODULE    := libopenal
 LOCAL_MODULE    := libopenal
 LOCAL_SRC_FILES := ../../../lib/openal/Android/$(TARGET_ARCH_ABI)/libopenal.so
 LOCAL_SRC_FILES := ../../../lib/openal/Android/$(TARGET_ARCH_ABI)/libopenal.so
 LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../lib/openal/Android
 LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../lib/openal/Android
+$(info $(shell ($(LOCAL_PATH)/copylib.sh $(LOCAL_PATH) $(TARGET_ARCH_ABI))))
 
 
 include $(PREBUILT_SHARED_LIBRARY)
 include $(PREBUILT_SHARED_LIBRARY)
 
 

+ 3 - 0
engine/compilers/android/jni/copylib.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+echo copying openal lib to $2
+cp $1/../../../lib/openal/Android/$2/libopenal.so $1/../obj/local/$2/libopenal.so

+ 0 - 3
engine/source/testing/tests/platformFileIoTests.cc

@@ -41,8 +41,6 @@
 #define PLATFORM_UNITTEST_FILEIO_FILEMESSAGE    "Write a line of text."
 #define PLATFORM_UNITTEST_FILEIO_FILEMESSAGE    "Write a line of text."
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
-//TODO: android
-#ifndef TORQUE_OS_ANDROID
 TEST( PlatformFileIOTests, FileWriteRead )
 TEST( PlatformFileIOTests, FileWriteRead )
 {
 {
     File testWriteFile;
     File testWriteFile;
@@ -122,7 +120,6 @@ TEST( PlatformFileIOTests, FileWriteRead )
     // Check the file has been deleted.
     // Check the file has been deleted.
     ASSERT_TRUE( Platform::fileDelete( PLATFORM_UNITTEST_FILEIO_FILE ) );
     ASSERT_TRUE( Platform::fileDelete( PLATFORM_UNITTEST_FILEIO_FILE ) );
 }
 }
-#endif
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 
 
 #endif // TORQUE_SHIPPING
 #endif // TORQUE_SHIPPING

+ 0 - 3
engine/source/testing/tests/platformMemoryTests.cc

@@ -36,8 +36,6 @@
 #define PLATFORM_UNITTEST_MEMORY_BUFFERSIZE     16384
 #define PLATFORM_UNITTEST_MEMORY_BUFFERSIZE     16384
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
-//TODO: android
-#ifndef TORQUE_OS_ANDROID
 TEST( PlatformMemoryTests, dMallocrAnddFreeTest )
 TEST( PlatformMemoryTests, dMallocrAnddFreeTest )
 {
 {
     // Allocate some memory.
     // Allocate some memory.
@@ -166,6 +164,5 @@ TEST( PlatformMemoryTests, dMemcmpTest )
     ASSERT_EQ( 0, result2 ) << "Memory compare is incorrect.";
     ASSERT_EQ( 0, result2 ) << "Memory compare is incorrect.";
     ASSERT_GT( 0, result3 ) << "Memory compare is incorrect.";
     ASSERT_GT( 0, result3 ) << "Memory compare is incorrect.";
 }
 }
-#endif
 
 
 #endif // TORQUE_SHIPPING
 #endif // TORQUE_SHIPPING

+ 0 - 3
engine/source/testing/tests/platformStringTests.cc

@@ -36,8 +36,6 @@
 #define PLATFORM_UNITTEST_STRING_DESTINATION_BUFFERSIZE     1024
 #define PLATFORM_UNITTEST_STRING_DESTINATION_BUFFERSIZE     1024
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
-//TODO: android
-#ifndef TORQUE_OS_ANDROID
 TEST( PlatformStringTests, dStrlenTest )
 TEST( PlatformStringTests, dStrlenTest )
 {
 {
     // Check length of string.
     // Check length of string.
@@ -611,5 +609,4 @@ TEST( PlatformStringTests, dIsspaceTest )
         ASSERT_EQ( false, dIsspace(source3[index]) );
         ASSERT_EQ( false, dIsspace(source3[index]) );
     }
     }
 }
 }
-#endif
 #endif // TORQUE_SHIPPING
 #endif // TORQUE_SHIPPING

+ 1 - 3
engine/source/testing/unitTesting.cc

@@ -30,8 +30,7 @@
 #ifndef _UNIT_TESTING_H_
 #ifndef _UNIT_TESTING_H_
 #include "testing/unitTesting.h"
 #include "testing/unitTesting.h"
 #endif
 #endif
-//TODO: android
-#ifndef TORQUE_OS_ANDROID
+
 #include "src/gtest.cc"
 #include "src/gtest.cc"
 #include "src/gtest-death-test.cc"
 #include "src/gtest-death-test.cc"
 #include "src/gtest-filepath.cc"
 #include "src/gtest-filepath.cc"
@@ -39,7 +38,6 @@
 #include "src/gtest-printers.cc"
 #include "src/gtest-printers.cc"
 #include "src/gtest-test-part.cc"
 #include "src/gtest-test-part.cc"
 #include "src/gtest-typed-test.cc"
 #include "src/gtest-typed-test.cc"
-#endif
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 
 
 class TorqueUnitTestListener : public ::testing::EmptyTestEventListener
 class TorqueUnitTestListener : public ::testing::EmptyTestEventListener

+ 1 - 2
engine/source/testing/unitTesting.h

@@ -29,8 +29,7 @@
 #define _VARIADIC_MAX 10
 #define _VARIADIC_MAX 10
 #endif
 #endif
 
 
-//TODO: android
-//#include "gtest/gtest.h"
+#include "gtest/gtest.h"
 
 
 #endif // TORQUE_SHIPPING
 #endif // TORQUE_SHIPPING