aboutsummaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 15:19:47 -0500
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 15:19:47 -0500
commit7aacc9f2510901c9e97b30fa9bcb550bb7f99c03 (patch)
tree16908948750c11da8332d80d8bb9b339399ee4d7 /config.h.cmake
parent7c47b5b9584f5011aeba18d7e1b26b3d3124825f (diff)
New upstream version 0.5.1+git20170605
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake36
1 files changed, 36 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake
new file mode 100644
index 00000000..1621a890
--- /dev/null
+++ b/config.h.cmake
@@ -0,0 +1,36 @@
+#ifndef __CONFIG_H__
+#define __CONFIG_H__
+
+#define VERSION "@HARDINFO_VERSION@"
+
+#define ARCH "ARCH_@HARDINFO_ARCH@"
+#define OS "@HARDINFO_OS@"
+#define PLATFORM OS "-" ARCH
+#define KERNEL "@CMAKE_SYSTEM_VERSION@"
+#define HOSTNAME ""
+#define ARCH_@HARDINFO_ARCH@
+
+#define LIBDIR "@CMAKE_INSTALL_LIBDIR@"
+#define LIBPREFIX "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/hardinfo"
+#define PREFIX "@CMAKE_INSTALL_PREFIX@/share/hardinfo"
+
+#cmakedefine LIBSOUP_FOUND
+#cmakedefine HARDINFO_DEBUG @HARDINFO_DEBUG@
+
+#ifdef LIBSOUP_FOUND
+# define HAS_LIBSOUP
+#endif /* LIBSOUP_FOUND */
+
+#if defined(HARDINFO_DEBUG) && (HARDINFO_DEBUG==1)
+# define RELEASE 0
+# define DEBUG(msg,...) fprintf(stderr, "*** %s:%d (%s) *** " msg "\n", \
+ __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__)
+#else
+# define RELEASE 1
+# define DEBUG(msg,...)
+#endif /* HARDINFO_DEBUG */
+
+#define ENABLE_BINRELOC 1
+#define HAS_LINUX_WE 1
+
+#endif /* __CONFIG_H__ */