#define DEVLIB_OS_H
/** Macro to include OS-specific versions of the headers. */
-#define OS_HEADER(module) PP_STRINGIZE(PP_CAT3(module, _, OS_ID).h)
-#define OS_CSOURCE(module) PP_STRINGIZE(PP_CAT3(module, _, OS_ID).c)
+#define OS_HEADER(module) PP_STRINGIZE(emul/PP_CAT3(module, _, OS_ID).h)
+#define OS_CSOURCE(module) PP_STRINGIZE(emul/PP_CAT3(module, _, OS_ID).c)
/*
* OS autodetection (Some systems trigger multiple OS definitions)
* We want Qt and other frameworks to look like OSes because you would
* tipically want their portable abstractions if you're using one of these.
*/
-#if defined(_QT)
+#if defined(_QT) || (defined(ARCH_QT) && (ARCH & ARCH_QT))
#define OS_QT 1
#undef OS_ID
#define OS_ID qt
#
# Author: Bernie Innocenti <bernie@codewiz.org>
#
-# Qt configuration for devlib emulator demo. Include it from
+# Qt configuration for BeRTOS emulator. Include it from
# your app Makefile fragment
-EMUL_CFLAGS = $(shell pkg-config QtCore QtGui --cflags) -DQT_CLEAN_NAMESPACE -DQT3_SUPPORT
+EMUL_CFLAGS = -D'ARCH=ARCH_EMUL|ARCH_QT' \
+ $(shell pkg-config QtCore QtGui --cflags) -DQT_CLEAN_NAMESPACE
EMUL_LDFLAGS = $(shell pkg-config QtCore QtGui --libs)
QT_MOC = $(shell pkg-config QtCore --variable=moc_location)
#QT_UIC = $(shell pkg-config QtCore --variable=uic_location)