<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt	(revision 7408)
+++ CMakeLists.txt	(working copy)
@@ -12,6 +12,10 @@
 
 project(NewtonSDK)
 
+if (ANDROID)
+  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-write-strings")
+endif()
+
 # Use relative paths
 # This is mostly to reduce path size for command-line limits on windows
 if(WIN32)
Index: coreLibrary_300/CMakeLists.txt
===================================================================
--- coreLibrary_300/CMakeLists.txt	(revision 7408)
+++ coreLibrary_300/CMakeLists.txt	(working copy)
@@ -64,16 +64,22 @@
   install(FILES ${NEWTON_SOURCE}/pthreads.2/VS_2010_static_md/Win32/pthread/Release/pthread.lib DESTINATION ${CMAKE_INSTALL_LIBDIR})
 endif (WIN32)
 
-if (${UNIX})
-  if (BUILD_64)
-    add_definitions(-D_POSIX_VER_64)
-  else (BUILD_64)
-    add_definitions(-D_POSIX_VER)
-  endif (BUILD_64)
-endif(${UNIX})
+if (NOT ANDROID)
+  if (${UNIX})
+    if (BUILD_64)
+      add_definitions(-D_POSIX_VER_64)
+    else (BUILD_64)
+      add_definitions(-D_POSIX_VER)
+    endif (BUILD_64)
+  endif(${UNIX})
+endif(NOT ANDROID)
 
 if (CMAKE_COMPILER_IS_GNUCC)
-  add_definitions(-fpic -msse -msse3 -mfpmath=sse -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant)
+  if (ANDROID)
+    add_definitions(-fpic -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant)
+  else (ANDROID)
+    add_definitions(-fpic -msse -msse3 -mfpmath=sse -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant)
+  endif(ANDROID)
 endif(CMAKE_COMPILER_IS_GNUCC)
 
 if (MSVC)
Index: coreLibrary_300/source/core/dgTypes.h
===================================================================
--- coreLibrary_300/source/core/dgTypes.h	(revision 7408)
+++ coreLibrary_300/source/core/dgTypes.h	(working copy)
@@ -106,10 +106,24 @@
 #endif
 
 
-
-
-#if (defined (_WIN_32_VER) || defined (_WIN_64_VER))
-	#include &lt;intrin.h&gt;
+#if defined(_MSC_VER)
+     /* Microsoft C/C++-compatible compiler */
+     #include &lt;intrin.h&gt;
+#elif defined(__GNUC__) &amp;&amp; (defined(__x86_64__) || defined(__i386__))
+     /* GCC-compatible compiler, targeting x86/x86-64 */
+     #include &lt;x86intrin.h&gt;
+#elif defined(__GNUC__) &amp;&amp; defined(__ARM_NEON__)
+     /* GCC-compatible compiler, targeting ARM with NEON */
+     #include &lt;arm_neon.h&gt;
+#elif defined(__GNUC__) &amp;&amp; defined(__IWMMXT__)
+     /* GCC-compatible compiler, targeting ARM with WMMX */
+     #include &lt;mmintrin.h&gt;
+#elif (defined(__GNUC__) || defined(__xlC__)) &amp;&amp; (defined(__VEC__) || defined(__ALTIVEC__))
+     /* XLC or GCC-compatible compiler, targeting PowerPC with VMX/VSX */
+     #include &lt;altivec.h&gt;
+#elif defined(__GNUC__) &amp;&amp; defined(__SPE__)
+     /* GCC-compatible compiler, targeting PowerPC with SPE */
+     #include &lt;spe.h&gt;
 #endif
 
 
@@ -128,7 +142,11 @@
 		#include &lt;pmmintrin.h&gt; 
 		#include &lt;emmintrin.h&gt; 
 		#include &lt;mmintrin.h&gt; 
-	} 
+	}
+#elif (ANDROID)
+	#include &lt;unistd.h&gt;
+	#include &lt;assert.h&gt;
+  #define Sleep sleep
 #endif
 
 #ifdef _MACOSX_VER
Index: packages/CMakeLists.txt
===================================================================
--- packages/CMakeLists.txt	(revision 7408)
+++ packages/CMakeLists.txt	(working copy)
@@ -147,14 +147,20 @@
 #target_link_libraries(dVisualDebuggerServer ${ENet_LIBRARY})
 
 
-if (UNIX)
-  if (BUILD_64)
-    add_definitions(-D_POSIX_VER_64)
-  else (BUILD_64)
-    add_definitions(-D_POSIX_VER_64)
-  endif (BUILD_64)
-endif(UNIX)
+if (NOT ANDROID)
+  if (${UNIX})
+    if (BUILD_64)
+      add_definitions(-D_POSIX_VER_64)
+    else (BUILD_64)
+      add_definitions(-D_POSIX_VER)
+    endif (BUILD_64)
+  endif(${UNIX})
+endif(NOT ANDROID)
 
 if (CMAKE_COMPILER_IS_GNUCC)
-  add_definitions(-msse  -msse2 -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant -c -Wall -Wno-strict-aliasing) 
-endif(CMAKE_COMPILER_IS_GNUCC)
+  if (ANDROID)
+    add_definitions(-ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant -c -Wall -Wno-strict-aliasing) 
+  else (ANDROID)
+    add_definitions(-msse  -msse2 -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant -c -Wall -Wno-strict-aliasing) 
+  endif(ANDROID)
+endif(CMAKE_COMPILER_IS_GNUCC)
\ No newline at end of file
Index: packages/dCustomJoints/CustomDGRayCastCar.h
===================================================================
--- packages/dCustomJoints/CustomDGRayCastCar.h	(revision 7408)
+++ packages/dCustomJoints/CustomDGRayCastCar.h	(working copy)
@@ -38,7 +38,7 @@
 		~NormalizeForceCurve ();
 		void InitalizeCurve (int points, dFloat* const steps, dFloat* const values);
 		dFloat GetValue (dFloat param) const;
-    dFloat NormalizeForceCurve::GetMaxValue () const;
+    dFloat GetMaxValue () const;
 
 		int m_count;
 		int m_maxCount;
Index: packages/dNewton/dNewton.cpp
===================================================================
--- packages/dNewton/dNewton.cpp	(revision 7408)
+++ packages/dNewton/dNewton.cpp	(working copy)
@@ -303,7 +303,7 @@
 
 void dNewton::Update (dFloat timestepInSecunds)
 {
-	dLong timestepMicrosecunds = dLong (double (timestepInSecunds) * 1000000.0f);
+	dLong timestepMicrosecunds = (dLong) (double (timestepInSecunds) * 1000000.0f);
 	dLong currentTime = GetTimeInMicrosenconds ();
 
 	dLong nextTime = currentTime - m_microseconds;
@@ -318,7 +318,7 @@
 
 void dNewton::UpdateAsync (dFloat timestepInSecunds)
 {
-	dLong timestepMicrosecunds = dLong (double (timestepInSecunds) * 1000000.0f);
+	dLong timestepMicrosecunds = (dLong) (double (timestepInSecunds) * 1000000.0f);
 	dLong currentTime = GetTimeInMicrosenconds ();
 
 	dLong nextTime = currentTime - m_microseconds;
Index: sdk/include/CustomDGRayCastCar.h
===================================================================
--- sdk/include/CustomDGRayCastCar.h	(revision 7408)
+++ sdk/include/CustomDGRayCastCar.h	(working copy)
@@ -38,7 +38,7 @@
 		~NormalizeForceCurve ();
 		void InitalizeCurve (int points, dFloat* const steps, dFloat* const values);
 		dFloat GetValue (dFloat param) const;
-    dFloat NormalizeForceCurve::GetMaxValue () const;
+    dFloat GetMaxValue () const;
 
 		int m_count;
 		int m_maxCount;
</pre></body></html>