summaryrefslogtreecommitdiff
path: root/core/src/xmake/prefix
diff options
context:
space:
mode:
authorruki <[email protected]>2015-04-23 11:34:12 +0800
committerruki <[email protected]>2015-04-23 11:36:43 +0800
commit9a75fb2b8072c9dc5a7f862610e6b19386dcecea (patch)
tree943fc74b2267eeea6dcb653c9337614396afeae9 /core/src/xmake/prefix
new project
Diffstat (limited to 'core/src/xmake/prefix')
-rw-r--r--core/src/xmake/prefix/config.h54
-rw-r--r--core/src/xmake/prefix/prefix.h35
-rwxr-xr-xcore/src/xmake/prefix/version.h58
3 files changed, 147 insertions, 0 deletions
diff --git a/core/src/xmake/prefix/config.h b/core/src/xmake/prefix/config.h
new file mode 100644
index 000000000..9bef920ff
--- /dev/null
+++ b/core/src/xmake/prefix/config.h
@@ -0,0 +1,54 @@
+/*!The Automatic Cross-platform Build Tool
+ *
+ * XMake is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * XMake is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with XMake;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file config.h
+ *
+ */
+#ifndef XM_PREFIX_CONFIG_H
+#define XM_PREFIX_CONFIG_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "../config.h"
+#include "tbox/tbox.h"
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * macros
+ */
+
+/*! @def __xm_small__
+ *
+ * small mode
+ */
+#if XM_CONFIG_SMALL
+# define __xm_small__
+#endif
+
+/*! @def __xm_debug__
+ *
+ * debug mode
+ */
+#ifdef __tb_debug__
+# define __xm_debug__
+#endif
+
+#endif
+
+
diff --git a/core/src/xmake/prefix/prefix.h b/core/src/xmake/prefix/prefix.h
new file mode 100644
index 000000000..c74e19547
--- /dev/null
+++ b/core/src/xmake/prefix/prefix.h
@@ -0,0 +1,35 @@
+/*!The Automatic Cross-platform Build Tool
+ *
+ * XMake is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * XMake is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with XMake;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file prefix.h
+ *
+ */
+#ifndef XM_PREFIX_PREFIX_H
+#define XM_PREFIX_PREFIX_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "config.h"
+#include "version.h"
+
+
+#endif
+
+
diff --git a/core/src/xmake/prefix/version.h b/core/src/xmake/prefix/version.h
new file mode 100755
index 000000000..8c6419834
--- /dev/null
+++ b/core/src/xmake/prefix/version.h
@@ -0,0 +1,58 @@
+/*!The Automatic Cross-platform Build Tool
+ *
+ * XMake is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * XMake is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with XMake;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file version.h
+ *
+ */
+#ifndef XM_PREFIX_VERSION_H
+#define XM_PREFIX_VERSION_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "config.h"
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * macros
+ */
+
+/// the major version
+#define XM_VERSION_MAJOR XM_CONFIG_VERSION_MAJOR
+
+/// the minor version
+#define XM_VERSION_MINOR XM_CONFIG_VERSION_MINOR
+
+/// the alter version
+#define XM_VERSION_ALTER XM_CONFIG_VERSION_ALTER
+
+/// the build version
+#define XM_VERSION_BUILD XM_CONFIG_VERSION_BUILD
+
+/// the build version string
+#define XM_VERSION_BUILD_STRING __tb_mstring_ex__(XM_CONFIG_VERSION_BUILD)
+
+/// the version string
+#define XM_VERSION_STRING __tb_mstrcat6__("xmake_", __tb_mstring_ex__(__tb_mconcat8_ex__(v, XM_VERSION_MAJOR, _, XM_VERSION_MINOR, _, XM_VERSION_ALTER, _, XM_CONFIG_VERSION_BUILD)), "_", TB_ARCH_VERSION_STRING, " by ", TB_COMPILER_VERSION_STRING)
+
+/// the short version string
+#define XM_VERSION_SHORT_STRING __tb_mstrcat__("xmake_", __tb_mstring_ex__(__tb_mconcat8_ex__(v, XM_VERSION_MAJOR, _, XM_VERSION_MINOR, _, XM_VERSION_ALTER, _, XM_CONFIG_VERSION_BUILD)))
+
+#endif
+
+