Making Go package source distributable and renaming to 'nginx/unit'.

All header files are copied to Go package sources.  As the result,
package can be (re-)build when required.

This closes #23 issue on GitHub.
This commit is contained in:
Max Romanov
2017-12-01 16:57:30 +03:00
parent ffb1c68609
commit 40eb1f8b9b
9 changed files with 53 additions and 108 deletions

View File

@@ -4,16 +4,14 @@
* Copyright (C) NGINX, Inc.
*/
#ifndef NXT_CONFIGURE
#include "nxt_go_port.h"
#include "nxt_go_log.h"
#include "nxt_go_process.h"
#include "nxt_go_run_ctx.h"
#include "_cgo_export.h"
#include <nxt_main.h>
#include <nxt_go_gen.h>
#define nxt_go_str(p) ((nxt_go_str_t *)(p))
@@ -205,6 +203,3 @@ fail:
return 0;
}
#endif /* NXT_CONFIGURE */