Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDidier Brachet2017-09-08 08:02:56 +0000
committerDidier Brachet2017-09-08 08:02:56 +0000
commitf3803594e8121050a9c0af4baa6b99bdd5a3874a (patch)
tree08784b47b96d032089acfccf65f90662a8fea63d /agent/tcf/config.h
parente29e6491eada409e2d1de4f7b120ae1afae83e9e (diff)
downloadorg.eclipse.tcf.agent-f3803594e8121050a9c0af4baa6b99bdd5a3874a.tar.gz
org.eclipse.tcf.agent-f3803594e8121050a9c0af4baa6b99bdd5a3874a.tar.xz
org.eclipse.tcf.agent-f3803594e8121050a9c0af4baa6b99bdd5a3874a.zip
Add support for Android
Add basic support for build and run of TCF Agent on Android devices. Note that the run-control related services are not available.
Diffstat (limited to 'agent/tcf/config.h')
-rw-r--r--agent/tcf/config.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/agent/tcf/config.h b/agent/tcf/config.h
index ca23ce0c..7c72615b 100644
--- a/agent/tcf/config.h
+++ b/agent/tcf/config.h
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2016 Wind River Systems, Inc. and others.
+ * Copyright (c) 2007, 2016-2017 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
@@ -34,6 +34,7 @@
# endif
# define TARGET_BSD 0
# define TARGET_SYMBIAN 0
+# define TARGET_ANDROID 0
#elif defined(_WRS_KERNEL)
# define TARGET_WINDOWS 0
# define TARGET_VXWORKS 1
@@ -41,6 +42,7 @@
# define TARGET_MSVC 0
# define TARGET_BSD 0
# define TARGET_SYMBIAN 0
+# define TARGET_ANDROID 0
#elif defined(__SYMBIAN32__)
# define TARGET_WINDOWS 0
# define TARGET_VXWORKS 0
@@ -48,6 +50,7 @@
# define TARGET_MSVC 0
# define TARGET_BSD 0
# define TARGET_SYMBIAN 1
+# define TARGET_ANDROID 0
#else
# define TARGET_WINDOWS 0
# define TARGET_VXWORKS 0
@@ -59,31 +62,36 @@
# define TARGET_BSD 0
# endif
# define TARGET_SYMBIAN 0
+# if defined(ANDROID)
+# define TARGET_ANDROID 1
+# else
+# define TARGET_ANDROID 0
+# endif
#endif
#if !defined(SERVICE_Locator)
#define SERVICE_Locator (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS || TARGET_SYMBIAN)
#endif
#if !defined(SERVICE_RunControl)
-#define SERVICE_RunControl (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
+#define SERVICE_RunControl ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
#endif
#if !defined(SERVICE_Breakpoints)
-#define SERVICE_Breakpoints (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
+#define SERVICE_Breakpoints ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
#endif
#if !defined(SERVICE_Memory)
-#define SERVICE_Memory (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
+#define SERVICE_Memory ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
#endif
#if !defined(SERVICE_Registers)
-#define SERVICE_Registers (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
+#define SERVICE_Registers ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
#endif
#if !defined(SERVICE_Processes)
#define SERVICE_Processes (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
#endif
#if !defined(SERVICE_MemoryMap)
-#define SERVICE_MemoryMap (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
+#define SERVICE_MemoryMap ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
#endif
#if !defined(SERVICE_StackTrace)
-#define SERVICE_StackTrace (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
+#define SERVICE_StackTrace ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
#endif
#if !defined(SERVICE_Symbols)
#define SERVICE_Symbols (TARGET_UNIX || TARGET_MSVC)
@@ -98,7 +106,7 @@
#define SERVICE_SysMonitor ((TARGET_UNIX && !TARGET_BSD) || TARGET_WINDOWS)
#endif
#if !defined(SERVICE_Expressions)
-#define SERVICE_Expressions (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
+#define SERVICE_Expressions ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
#endif
#if !defined(SERVICE_Streams)
#define SERVICE_Streams (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS || TARGET_SYMBIAN)

Back to the top