mirror of https://github.com/lukechilds/node.git
Browse Source
Some compile time variables like the cflags and prefix have been moved to the node_config.h.in, in the anticipation that they will be removed at somepoint.v0.7.4-release
Paul Querna
15 years ago
committed by
Ryan Dahl
4 changed files with 43 additions and 30 deletions
@ -0,0 +1,7 @@ |
|||
#ifndef NODE_CONFIG_H |
|||
#define NODE_CONFIG_H |
|||
|
|||
#define NODE_CFLAGS "@CCFLAGS@ @CPPFLAGS@ -I@PREFIX@/include/node" |
|||
#define NODE_PREFIX "@PREFIX@" |
|||
|
|||
#endif /* NODE_CONFIG_H */ |
@ -0,0 +1,28 @@ |
|||
|
|||
#include "node_config.h" |
|||
|
|||
#ifndef NODE_VERSION_H |
|||
#define NODE_VERSION_H |
|||
|
|||
#define NODE_MAJOR_VERSION 0 |
|||
#define NODE_MINOR_VERSION 1 |
|||
#define NODE_PATCH_VERSION 100 |
|||
|
|||
#ifndef NODE_STRINGIFY |
|||
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n) |
|||
#define NODE_STRINGIFY_HELPER(n) #n |
|||
#endif |
|||
|
|||
#define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \ |
|||
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \ |
|||
NODE_STRINGIFY(NODE_PATCH_VERSION) |
|||
|
|||
#define NODE_VERSION "v" NODE_VERSION_STRING |
|||
|
|||
|
|||
#define NODE_VERSION_AT_LEAST(major, minor, patch) \ |
|||
(( (major) < NODE_MAJOR_VERSION \ |
|||
|| ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \ |
|||
|| ((major) == NODE_MAJOR_VERSION && (minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION)) |
|||
|
|||
#endif /* NODE_VERSION_H */ |
@ -1,12 +0,0 @@ |
|||
#ifndef node_version_h |
|||
#define node_version_h |
|||
|
|||
#ifdef NDEBUG |
|||
# define NODE_VERSION "@VERSION@" |
|||
#else |
|||
# define NODE_VERSION "@VERSION@ (debug)" |
|||
#endif |
|||
#define NODE_CFLAGS "@CCFLAGS@ @CPPFLAGS@ -I@PREFIX@/include/node" |
|||
#define NODE_PREFIX "@PREFIX@" |
|||
|
|||
#endif /* node_version_h */ |
Loading…
Reference in new issue