winlin

refine log, add features for macro. 0.9.212

@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 // current release version 31 // current release version
32 #define VERSION_MAJOR "0" 32 #define VERSION_MAJOR "0"
33 #define VERSION_MINOR "9" 33 #define VERSION_MINOR "9"
34 -#define VERSION_REVISION "211" 34 +#define VERSION_REVISION "212"
35 #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION 35 #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
36 // server info. 36 // server info.
37 #define RTMP_SIG_SRS_KEY "SRS" 37 #define RTMP_SIG_SRS_KEY "SRS"
@@ -55,6 +55,81 @@ ISrsThreadContext* _srs_context = new SrsThreadContext(); @@ -55,6 +55,81 @@ ISrsThreadContext* _srs_context = new SrsThreadContext();
55 SrsConfig* _srs_config = new SrsConfig(); 55 SrsConfig* _srs_config = new SrsConfig();
56 SrsServer* _srs_server = new SrsServer(); 56 SrsServer* _srs_server = new SrsServer();
57 57
  58 +void show_features()
  59 +{
  60 +#ifdef SRS_AUTO_SSL
  61 + srs_trace("rtmp handshake: on");
  62 +#else
  63 + srs_warn("rtmp handshake: off");
  64 +#endif
  65 +
  66 +#ifdef SRS_AUTO_HLS
  67 + srs_trace("hls: on");
  68 +#else
  69 + srs_warn("hls: off");
  70 +#endif
  71 +
  72 +#ifdef SRS_AUTO_HTTP_CALLBACK
  73 + srs_trace("http callback: on");
  74 +#else
  75 + srs_warn("http callback: off");
  76 +#endif
  77 +
  78 +#ifdef SRS_AUTO_HTTP_API
  79 + srs_trace("http api: on");
  80 +#else
  81 + srs_warn("http api: off");
  82 +#endif
  83 +
  84 +#ifdef SRS_AUTO_HTTP_SERVER
  85 + srs_trace("http server: on");
  86 +#else
  87 + srs_warn("http server: off");
  88 +#endif
  89 +
  90 +#ifdef SRS_AUTO_HTTP_PARSER
  91 + srs_trace("http parser: on");
  92 +#else
  93 + srs_warn("http parser: off");
  94 +#endif
  95 +
  96 +#ifdef SRS_AUTO_DVR
  97 + srs_trace("dvr: on");
  98 +#else
  99 + srs_warn("dvr: off");
  100 +#endif
  101 +
  102 +#ifdef SRS_AUTO_TRANSCODE
  103 + srs_trace("transcode: on");
  104 +#else
  105 + srs_warn("transcode: off");
  106 +#endif
  107 +
  108 +#ifdef SRS_AUTO_INGEST
  109 + srs_trace("ingest: on");
  110 +#else
  111 + srs_warn("ingest: off");
  112 +#endif
  113 +
  114 +#ifdef SRS_AUTO_STAT
  115 + srs_trace("system stat: on");
  116 +#else
  117 + srs_warn("system stat: off");
  118 +#endif
  119 +
  120 +#ifdef SRS_AUTO_NGINX
  121 + srs_trace("compile nginx: on");
  122 +#else
  123 + srs_warn("compile nginx: off");
  124 +#endif
  125 +
  126 +#ifdef SRS_AUTO_FFMPEG
  127 + srs_trace("compile ffmpeg: on");
  128 +#else
  129 + srs_warn("compile ffmpeg: off");
  130 +#endif
  131 +}
  132 +
58 // main entrance. 133 // main entrance.
59 int main(int argc, char** argv) 134 int main(int argc, char** argv)
60 { 135 {
@@ -93,6 +168,8 @@ int main(int argc, char** argv) @@ -93,6 +168,8 @@ int main(int argc, char** argv)
93 168
94 srs_trace("srs(simple-rtmp-server) "RTMP_SIG_SRS_VERSION); 169 srs_trace("srs(simple-rtmp-server) "RTMP_SIG_SRS_VERSION);
95 srs_trace("license: "RTMP_SIG_SRS_LICENSE); 170 srs_trace("license: "RTMP_SIG_SRS_LICENSE);
  171 + srs_trace("authors: "RTMP_SIG_SRS_PRIMARY_AUTHROS);
  172 + srs_trace("contributors: "SRS_AUTO_CONSTRIBUTORS);
96 srs_trace("uname: "SRS_AUTO_UNAME); 173 srs_trace("uname: "SRS_AUTO_UNAME);
97 srs_trace("build: %s, %s", SRS_AUTO_BUILD_DATE, srs_is_little_endian()? "little-endian":"big-endian"); 174 srs_trace("build: %s, %s", SRS_AUTO_BUILD_DATE, srs_is_little_endian()? "little-endian":"big-endian");
98 srs_trace("configure: "SRS_AUTO_USER_CONFIGURE); 175 srs_trace("configure: "SRS_AUTO_USER_CONFIGURE);
@@ -102,6 +179,9 @@ int main(int argc, char** argv) @@ -102,6 +179,9 @@ int main(int argc, char** argv)
102 #endif 179 #endif
103 srs_trace("conf: %s, limit: %d", _srs_config->config().c_str(), _srs_config->get_max_connections()); 180 srs_trace("conf: %s, limit: %d", _srs_config->config().c_str(), _srs_config->get_max_connections());
104 181
  182 + // features
  183 + show_features();
  184 +
105 /** 185 /**
106 * we do nothing in the constructor of server, 186 * we do nothing in the constructor of server,
107 * and use initialize to create members, set hooks for instance the reload handler, 187 * and use initialize to create members, set hooks for instance the reload handler,