dest="use_xcode",
help="Generate build files for use with xcode")
+parser.add_option("--tag",
+ action="store",
+ dest="tag",
+ help="Custom build tag")
+
(options, args) = parser.parse_args()
else:
o['variables']['node_use_perfctr'] = 'false'
+ o['variables']['node_tag'] = options.tag or ''
+
def configure_libz(o):
o['variables']['node_shared_zlib'] = b(options.shared_zlib)
#define NODE_MAJOR_VERSION 0
#define NODE_MINOR_VERSION 9
#define NODE_PATCH_VERSION 5
+
+#ifndef NODE_TAG
+# define NODE_TAG ""
+#endif
+
#define NODE_VERSION_IS_RELEASE 0
#ifndef NODE_STRINGIFY
#if NODE_VERSION_IS_RELEASE
# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
- NODE_STRINGIFY(NODE_PATCH_VERSION)
+ NODE_STRINGIFY(NODE_PATCH_VERSION) \
+ NODE_TAG
#else
# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
- NODE_STRINGIFY(NODE_PATCH_VERSION) "-pre"
+ NODE_STRINGIFY(NODE_PATCH_VERSION) \
+ NODE_TAG "-pre"
#endif
#define NODE_VERSION "v" NODE_VERSION_STRING