• 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
    View Code
  • 相关阅读:
    (深入.Net平台和C#编程)第十章.课程总复习.20170413
    (深入.Net平台和C#编程)第七章-深入理解多态.上机练习.20170412
    (深入.Net平台和C#编程)第六章上机练习4.李向阳.20170411
    (深入.Net平台和C#编程)第六章上机练习3.李向阳.20170411
    (深入.Net平台和C#编程)第六章上机练习2.李向阳.20170411
    (深入.Net平台和C#编程)第六章上机练习1.李向阳.20170411
    S2T40.(深入.Net平台和C#编程)第四章.简答题5.李向阳.20170406
    S2T40.(深入.Net平台和C#编程)第四章.简答题4.李向阳.20170406
    潇洒哥
    深入.NET平台和C#编程.第九章:文件操作.上机练习3-5
  • 原文地址:https://www.cnblogs.com/wangtengxiang/p/6220294.html
Copyright © 2020-2023  润新知