diff options
author | Haibo Huang <hhb@google.com> | 2020-09-10 03:25:29 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-09-10 03:25:29 +0000 |
commit | e1ff5a7aa030e27787b22bbf24eb069c8e6c11b8 (patch) | |
tree | 89b0208ca55971e6700beb987bc77fab72a9c67f /docs/examples | |
parent | 9aa1a64cabedcc41f8be6608e0ee872b56c454a3 (diff) | |
parent | c3c04f457bfe878abba216d3e76c08b65fc22694 (diff) | |
download | external_curl-master.tar.gz external_curl-master.tar.bz2 external_curl-master.zip |
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/Makefile.am | 2 | ||||
-rw-r--r-- | docs/examples/Makefile.m32 | 14 | ||||
-rw-r--r-- | docs/examples/README | 4 | ||||
-rw-r--r-- | docs/examples/rtsp.c | 4 |
4 files changed, 18 insertions, 6 deletions
diff --git a/docs/examples/Makefile.am b/docs/examples/Makefile.am index db4d1233..44372a19 100644 --- a/docs/examples/Makefile.am +++ b/docs/examples/Makefile.am @@ -67,4 +67,4 @@ CS_1 = CS_ = $(CS_0) checksrc: - $(CHECKSRC)(@PERL@ $(top_srcdir)/lib/checksrc.pl $(srcdir)/*.c) + $(CHECKSRC)(@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(srcdir) $(srcdir)/*.c) diff --git a/docs/examples/Makefile.m32 b/docs/examples/Makefile.m32 index d0694cfa..e8c0d376 100644 --- a/docs/examples/Makefile.m32 +++ b/docs/examples/Makefile.m32 @@ -24,7 +24,7 @@ # ## Makefile for building curl examples with MingW (GCC-3.2 or later) ## and optionally OpenSSL (1.0.2a), libssh2 (1.5), zlib (1.2.8), librtmp (2.4), -## brotli (1.0.1) +## brotli (1.0.1), zstd (1.4.5) ## ## Usage: mingw32-make -f Makefile.m32 CFG=-feature1[-feature2][-feature3][...] ## Example: mingw32-make -f Makefile.m32 CFG=-zlib-ssl-sspi-winidn @@ -39,6 +39,10 @@ ifndef ZLIB_PATH ZLIB_PATH = ../../../zlib-1.2.8 endif +# Edit the path below to point to the base of your Zstandard sources. +ifndef ZSTD_PATH +ZSTD_PATH = ../../../zstd-1.4.5 +endif # Edit the path below to point to the base of your Brotli sources. ifndef BROTLI_PATH BROTLI_PATH = ../../../brotli-1.0.1 @@ -180,6 +184,9 @@ endif ifeq ($(findstring -zlib,$(CFG)),-zlib) ZLIB = 1 endif +ifeq ($(findstring -zstd,$(CFG)),-zstd) +ZSTD = 1 +endif ifeq ($(findstring -brotli,$(CFG)),-brotli) BROTLI = 1 endif @@ -284,6 +291,11 @@ ifdef ZLIB CFLAGS += -DHAVE_LIBZ -DHAVE_ZLIB_H curl_LDADD += -L"$(ZLIB_PATH)" -lz endif +ifdef ZSTD + INCLUDES += -I"$(ZSTD_PATH)/include" + CFLAGS += -DHAVE_ZSTD + curl_LDADD += -L"$(ZSTD_PATH)/lib" -lzstd +endif ifdef BROTLI INCLUDES += -I"$(BROTLI_PATH)/include" CFLAGS += -DHAVE_BROTLI diff --git a/docs/examples/README b/docs/examples/README index 078cabed..6336c373 100644 --- a/docs/examples/README +++ b/docs/examples/README @@ -9,7 +9,7 @@ some simple steps on how you can build your own application to take full advantage of libcurl. If you end up with other small but still useful example sources, please mail -them for submission in future packages and on the web site. +them for submission in future packages and on the website. BUILDING @@ -28,7 +28,7 @@ want you do reorganize them like: *PLEASE* do not use the curl.haxx.se site as a test target for your libcurl applications/experiments. Even if some of the examples use that site as a URL at some places, it doesn't mean that the URLs work or that we expect you to -actually torture our web site with your tests! Thanks. +actually torture our website with your tests! Thanks. EXAMPLES diff --git a/docs/examples/rtsp.c b/docs/examples/rtsp.c index 1793d9db..c1fc653a 100644 --- a/docs/examples/rtsp.c +++ b/docs/examples/rtsp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 - 2019, Jim Hollinger + * Copyright (c) 2011 - 2020, Jim Hollinger * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -192,7 +192,7 @@ int main(int argc, char * const argv[]) char *base_name = NULL; printf("\nRTSP request %s\n", VERSION_STR); - printf(" Project web site: " + printf(" Project website: " "https://github.com/BackupGGCode/rtsprequest\n"); printf(" Requires curl V7.20 or greater\n\n"); |