libunit: added generation of version header file.

This commit is contained in:
Alexander Borisov
2018-12-19 15:56:54 +03:00
parent ab461437b5
commit c55f329ecf
4 changed files with 18 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
'target_name': "unit-http",
'sources': ["unit.cpp", "addon.cpp"],
'include_dirs': [
"<!(echo $UNIT_SRC_PATH)"
"<!(echo $UNIT_SRC_PATH)", "<!(echo $UNIT_BUILD_PATH)"
],
'libraries': [
"<!(echo $UNIT_LIB_STATIC_PATH)"

View File

@@ -11,8 +11,10 @@
#include <sys/types.h>
#include <string.h>
#include "nxt_unit_version.h"
#include "nxt_unit_typedefs.h"
enum {
NXT_UNIT_OK = 0,
NXT_UNIT_ERROR = 1,