NGINX----源码阅读---sources配置脚本

/auto/sources

本文件主要用于对源文件环境变量进行初始化,主要包括:.c和.h文件。

对应变量类型有*_MODULES、*_INCS、*_DEPS等。

  1 # Copyright (C) Igor Sysoev
  2 # Copyright (C) Nginx, Inc.
  3
  4
  5 CORE_MODULES="ngx_core_module ngx_errlog_module ngx_conf_module"
  6
  7 CORE_INCS="src/core"
  8
  9 CORE_DEPS="src/core/nginx.h \
 10            src/core/ngx_config.h  11            src/core/ngx_core.h  12            src/core/ngx_log.h  13            src/core/ngx_palloc.h  14            src/core/ngx_array.h  15            src/core/ngx_list.h  16            src/core/ngx_hash.h  17            src/core/ngx_buf.h  18            src/core/ngx_queue.h  19            src/core/ngx_string.h  20            src/core/ngx_parse.h  21            src/core/ngx_parse_time.h  22            src/core/ngx_inet.h  23            src/core/ngx_file.h  24            src/core/ngx_crc.h  25            src/core/ngx_crc32.h  26            src/core/ngx_murmurhash.h  27            src/core/ngx_md5.h  28            src/core/ngx_sha1.h  29            src/core/ngx_rbtree.h  30            src/core/ngx_radix_tree.h  31            src/core/ngx_rwlock.h  32            src/core/ngx_slab.h  33            src/core/ngx_times.h  34            src/core/ngx_shmtx.h  35            src/core/ngx_connection.h  36            src/core/ngx_cycle.h  37            src/core/ngx_conf_file.h  38            src/core/ngx_module.h  39            src/core/ngx_resolver.h  40            src/core/ngx_open_file_cache.h  41            src/core/ngx_crypt.h  42            src/core/ngx_proxy_protocol.h  43            src/core/ngx_syslog.h"
 44
 45
 46 CORE_SRCS="src/core/nginx.c \
 47            src/core/ngx_log.c  48            src/core/ngx_palloc.c  49            src/core/ngx_array.c  50            src/core/ngx_list.c  51            src/core/ngx_hash.c  52            src/core/ngx_buf.c  53            src/core/ngx_queue.c  54            src/core/ngx_output_chain.c  55            src/core/ngx_string.c  56            src/core/ngx_parse.c  57            src/core/ngx_parse_time.c  58            src/core/ngx_inet.c  59            src/core/ngx_file.c  60            src/core/ngx_crc32.c  61            src/core/ngx_murmurhash.c  62            src/core/ngx_md5.c  63            src/core/ngx_rbtree.c  64            src/core/ngx_radix_tree.c  65            src/core/ngx_slab.c  66            src/core/ngx_times.c  67            src/core/ngx_shmtx.c  68            src/core/ngx_connection.c  69            src/core/ngx_cycle.c  70            src/core/ngx_spinlock.c  71            src/core/ngx_rwlock.c  72            src/core/ngx_cpuinfo.c  73            src/core/ngx_conf_file.c  74            src/core/ngx_module.c  75            src/core/ngx_resolver.c  76            src/core/ngx_open_file_cache.c  77            src/core/ngx_crypt.c  78            src/core/ngx_proxy_protocol.c  79            src/core/ngx_syslog.c"
 80
 81
 82 EVENT_MODULES="ngx_events_module ngx_event_core_module"
 83
 84 EVENT_INCS="src/event src/event/modules"
 85
 86 EVENT_DEPS="src/event/ngx_event.h \
 87             src/event/ngx_event_timer.h  88             src/event/ngx_event_posted.h  89             src/event/ngx_event_connect.h  90             src/event/ngx_event_pipe.h"
 91
 92 EVENT_SRCS="src/event/ngx_event.c \
 93             src/event/ngx_event_timer.c  94             src/event/ngx_event_posted.c  95             src/event/ngx_event_accept.c  96             src/event/ngx_event_connect.c  97             src/event/ngx_event_pipe.c"
 98
 99
100 SELECT_MODULE=ngx_select_module
101 SELECT_SRCS=src/event/modules/ngx_select_module.c
102 WIN32_SELECT_SRCS=src/event/modules/ngx_win32_select_module.c
103
104 POLL_MODULE=ngx_poll_module
105 POLL_SRCS=src/event/modules/ngx_poll_module.c
106
107 KQUEUE_MODULE=ngx_kqueue_module
108 KQUEUE_SRCS=src/event/modules/ngx_kqueue_module.c
109
110 DEVPOLL_MODULE=ngx_devpoll_module
111 DEVPOLL_SRCS=src/event/modules/ngx_devpoll_module.c
112
113 EVENTPORT_MODULE=ngx_eventport_module
114 EVENTPORT_SRCS=src/event/modules/ngx_eventport_module.c
115
116 EPOLL_MODULE=ngx_epoll_module
117 EPOLL_SRCS=src/event/modules/ngx_epoll_module.c
118
119 IOCP_MODULE=ngx_iocp_module
120 IOCP_SRCS=src/event/modules/ngx_iocp_module.c
121
122 FILE_AIO_SRCS="src/os/unix/ngx_file_aio_read.c"
123 LINUX_AIO_SRCS="src/os/unix/ngx_linux_aio_read.c"
124
125 UNIX_INCS="$CORE_INCS $EVENT_INCS src/os/unix"
126
127 UNIX_DEPS="$CORE_DEPS $EVENT_DEPS \
128             src/os/unix/ngx_time.h 129             src/os/unix/ngx_errno.h 130             src/os/unix/ngx_alloc.h 131             src/os/unix/ngx_files.h 132             src/os/unix/ngx_channel.h 133             src/os/unix/ngx_shmem.h 134             src/os/unix/ngx_process.h 135             src/os/unix/ngx_setaffinity.h 136             src/os/unix/ngx_setproctitle.h 137             src/os/unix/ngx_atomic.h 138             src/os/unix/ngx_gcc_atomic_x86.h 139             src/os/unix/ngx_thread.h 140             src/os/unix/ngx_socket.h 141             src/os/unix/ngx_os.h 142             src/os/unix/ngx_user.h 143             src/os/unix/ngx_dlopen.h 144             src/os/unix/ngx_process_cycle.h"
145
146 # add to UNIX_DEPS
147 #            src/os/unix/ngx_gcc_atomic_amd64.h 148 #            src/os/unix/ngx_gcc_atomic_sparc64.h 149 #            src/os/unix/ngx_gcc_atomic_ppc.h 150 #            src/os/unix/ngx_sunpro_atomic_sparc64.h 151 #            src/os/unix/ngx_sunpro_x86.il 152 #            src/os/unix/ngx_sunpro_amd64.il 153 #            src/os/unix/ngx_sunpro_sparc64.il 154
155
156 UNIX_SRCS="$CORE_SRCS $EVENT_SRCS \
157             src/os/unix/ngx_time.c 158             src/os/unix/ngx_errno.c 159             src/os/unix/ngx_alloc.c 160             src/os/unix/ngx_files.c 161             src/os/unix/ngx_socket.c 162             src/os/unix/ngx_recv.c 163             src/os/unix/ngx_readv_chain.c 164             src/os/unix/ngx_udp_recv.c 165             src/os/unix/ngx_send.c 166             src/os/unix/ngx_writev_chain.c 167             src/os/unix/ngx_udp_send.c 168             src/os/unix/ngx_channel.c 169             src/os/unix/ngx_shmem.c 170             src/os/unix/ngx_process.c 171             src/os/unix/ngx_daemon.c 172             src/os/unix/ngx_setaffinity.c 173             src/os/unix/ngx_setproctitle.c 174             src/os/unix/ngx_posix_init.c 175             src/os/unix/ngx_user.c 176             src/os/unix/ngx_dlopen.c 177             src/os/unix/ngx_process_cycle.c"
178
179 POSIX_DEPS=src/os/unix/ngx_posix_config.h
180
181 THREAD_POOL_MODULE=ngx_thread_pool_module
182 THREAD_POOL_DEPS=src/core/ngx_thread_pool.h
183 THREAD_POOL_SRCS="src/core/ngx_thread_pool.c
184                   src/os/unix/ngx_thread_cond.c
185                   src/os/unix/ngx_thread_mutex.c
186                   src/os/unix/ngx_thread_id.c"
187
188 FREEBSD_DEPS="src/os/unix/ngx_freebsd_config.h src/os/unix/ngx_freebsd.h"
189 FREEBSD_SRCS=src/os/unix/ngx_freebsd_init.c
190 FREEBSD_SENDFILE_SRCS=src/os/unix/ngx_freebsd_sendfile_chain.c
191
192 LINUX_DEPS="src/os/unix/ngx_linux_config.h src/os/unix/ngx_linux.h"
193 LINUX_SRCS=src/os/unix/ngx_linux_init.c
194 LINUX_SENDFILE_SRCS=src/os/unix/ngx_linux_sendfile_chain.c
195
196
197 SOLARIS_DEPS="src/os/unix/ngx_solaris_config.h src/os/unix/ngx_solaris.h"
198 SOLARIS_SRCS=src/os/unix/ngx_solaris_init.c
199 SOLARIS_SENDFILEV_SRCS=src/os/unix/ngx_solaris_sendfilev_chain.c
200
201
202 DARWIN_DEPS="src/os/unix/ngx_darwin_config.h src/os/unix/ngx_darwin.h"
203 DARWIN_SRCS=src/os/unix/ngx_darwin_init.c
204 DARWIN_SENDFILE_SRCS=src/os/unix/ngx_darwin_sendfile_chain.c
205
206
207 WIN32_INCS="$CORE_INCS $EVENT_INCS src/os/win32"
208
209 WIN32_DEPS="$CORE_DEPS $EVENT_DEPS \
210             src/os/win32/ngx_win32_config.h 211             src/os/win32/ngx_time.h 212             src/os/win32/ngx_errno.h 213             src/os/win32/ngx_alloc.h 214             src/os/win32/ngx_files.h 215             src/os/win32/ngx_shmem.h 216             src/os/win32/ngx_process.h 217             src/os/win32/ngx_atomic.h 218             src/os/win32/ngx_thread.h 219             src/os/win32/ngx_socket.h 220             src/os/win32/ngx_os.h 221             src/os/win32/ngx_user.h 222             src/os/win32/ngx_dlopen.h 223             src/os/win32/ngx_process_cycle.h"
224
225 WIN32_CONFIG=src/os/win32/ngx_win32_config.h
226
227 WIN32_SRCS="$CORE_SRCS $EVENT_SRCS \
228             src/os/win32/ngx_errno.c 229             src/os/win32/ngx_alloc.c 230             src/os/win32/ngx_files.c 231             src/os/win32/ngx_shmem.c 232             src/os/win32/ngx_time.c 233             src/os/win32/ngx_process.c 234             src/os/win32/ngx_thread.c 235             src/os/win32/ngx_socket.c 236             src/os/win32/ngx_wsarecv.c 237             src/os/win32/ngx_wsarecv_chain.c 238             src/os/win32/ngx_udp_wsarecv.c 239             src/os/win32/ngx_wsasend.c 240             src/os/win32/ngx_wsasend_chain.c 241             src/os/win32/ngx_win32_init.c 242             src/os/win32/ngx_user.c 243             src/os/win32/ngx_dlopen.c 244             src/os/win32/ngx_event_log.c 245             src/os/win32/ngx_process_cycle.c 246             src/event/ngx_event_acceptex.c"
247
248 NGX_WIN32_ICONS="src/os/win32/nginx.ico"
249 NGX_WIN32_RC="src/os/win32/nginx.rc"
250
251
252 HTTP_FILE_CACHE_SRCS=src/http/ngx_http_file_cache.c

时间: 2024-10-20 17:47:42

NGINX----源码阅读---sources配置脚本的相关文章

Centos下Nginx源码安装与配置并附shell编程实现自动化安装

一.首先安装必要的库 nginx 中gzip模块需要 zlib 库,rewrite模块需要 pcre 库,ssl 功能需要openssl库.选定/usr/local为安装目录,以下具体版本号根据实际改变. 1.安装PCRE库 $ cd /usr/local/ $ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz $ tar -zxvf pcre-8.36.tar.gz $ cd pcre-8.3

NGINX----源码阅读---have配置脚本

/auto/have have配置脚本负责在$NGX_OBJS/ngx_auto_config.h定义宏 1 # Copyright (C) Igor Sysoev 2 # Copyright (C) Nginx, Inc. 3 4 5 cat << END >> $NGX_AUTO_CONFIG_H 6 7 #ifndef $have 8 #define $have 1 9 #endif 10 11 END

jdk源码阅读-环境配置

我们使用的系统是Ubuntu的系统,代码查看的工具用的是eclipse. 使用以下方法来搭建一个良好的代码阅读环境: 通常在windows下安装好的jdk在其src文件下即可找到对应的jdk类库的源代码.但是在Ubuntu/Linux就不同了.在我查看后发现src文件夹为空. 则可以依照以下方式,下载好openjdk的源代码 http://www.cnblogs.com/super-d2/p/3990354.html 下载好源代码后,我们在windows下可以使用记事本或者ubuntu下的ged

Nginx源码阅读(main)

原帖地址:https://blog.csdn.net/hz5034/article/details/54630909 main()执行流程 main()代码解析 /* src/core/nginx.c */ int ngx_cdecl // #define ngx_cdecl,一个空的define,跨平台支持 main(int argc, char *const *argv) { ngx_buf_t *b; ngx_log_t *log; ngx_uint_t i; ngx_cycle_t *c

Nginx源码安装及调优配置(转)

导读 由于Nginx本身的一些优点,轻量,开源,易用,越来越多的公司使用nginx作为自己公司的web应用服务器,本文详细介绍nginx源码安装的同时并对nginx进行优化配置. Nginx编译前的优化 [[email protected] ~]# wget http://nginx.org/download/nginx-1.10.1.tar.gz [[email protected] ~]# tar xvf nginx-1.10.1.tar.gz -C /usr/local/src/ [[em

【Spark】配置Spark源码阅读环境

Scala构建工具(SBT)的使用 SBT介绍 SBT是Simple Build Tool的简称,如果读者使用过Maven,那么可以简单将SBT看做是Scala世界的Maven,虽然二者各有优劣,但完成的工作基本是类似的. 虽然Maven同样可以管理Scala项目的依赖并进行构建,但SBT的某些特性却让人如此着迷,比如: 使用Scala作为DSL来定义build文件(one language rules them all); 通过触发执行(trigger execution)特性支持持续的编译与

Linux下源码安装并配置Nginx

实验环境 一台最小化安装的CentOS 7.3 虚拟机 安装nginx 安装nginx依赖包 yum install -y pcre-devel zlib-devel openssl-devel wget gcc tree vim Nginx依赖于pcre.zlib.openssl,在编译前配置时如果有问题 可以使用yum方式安装三个包(pcre-devel.zlib-devel.openssl-devel) 从Nginx官网下载Nginx源码包 wget http://nginx.org/do

菜鸟nginx源码剖析 配置与部署篇(一) 手把手实现nginx &quot;I love you&quot;

菜鸟nginx源码剖析 配置与部署篇(一) 手把手配置nginx "I love you" Author:Echo Chen(陈斌) Email:[email protected] Blog:Blog.csdn.net/chen19870707 Date:Nov 7th, 2014 还记得在前几年的CSDN泄漏账号事件中,统计发现程序员的账号中含有love的最多,这里我也俗套下,在这篇文章中将讲解如何 一步一步实用Nginx在一台机器上搭建一个最简单的显示"I love yo

nginx源码分析--配置信息的继承&amp;合并

这里只讲述http{}模块下的配置: 在ngx_http_block()函数内(这个函数别调用时在ngx_inti_cycle内的ngx_conf_parse函数,这个函数遇到http命令时 回调ngx_http_block,开启http{}配置块的解读工作),针对每一个http模块,调用init_conf之后,有调用了ngx_http_merge_servers().这是为何! 首先明确几点:一个http{}配置块内可以包含多个server{}配置块,每个server{}配置块可以包含多个lo