History

configure: always enable gnu_windres if available

Use the appropiate Makefile variable to ensure the resource file is only built into shared libraries instead.

Timo Rothenpieler committed 4 years ago

Commit b77fff41 parent 6ded80a9 files · +10 −10Browse files

Unified · Split

9 files
  1. configure +2 −2
  2. libavcodec/Makefile +1 −1
  3. libavdevice/Makefile +1 −1
  4. libavfilter/Makefile +1 −1
  5. libavformat/Makefile +1 −1
  6. libavutil/Makefile +1 −1
  7. libpostproc/Makefile +1 −1
  8. libswresample/Makefile +1 −1
  9. libswscale/Makefile +1 −1
configure+2−2
@@ -5571,7 +5571,7 @@ case $target_os in · 5570 unmodified lines
5571 # Cannot build both shared and static libs when using dllimport.5571 # Cannot build both shared and static libs when using dllimport.
5572 disable static5572 disable static
5573 fi5573 fi
5574 enabled shared && ! enabled small && test_cmd $windres --version && enable gnu_windres5574 ! enabled small && test_cmd $windres --version && enable gnu_windres
5575 enabled x86_32 && check_ldflags -Wl,--large-address-aware5575 enabled x86_32 && check_ldflags -Wl,--large-address-aware
5576 shlibdir_default="$bindir_default"5576 shlibdir_default="$bindir_default"
5577 SLIBPREF=""5577 SLIBPREF=""
@@ -5650,7 +5650,7 @@ case $target_os in · 72 unmodified lines
5650 SHFLAGS='-shared -Wl,--out-implib,$(SUBDIR)lib$(FULLNAME).dll.a'5650 SHFLAGS='-shared -Wl,--out-implib,$(SUBDIR)lib$(FULLNAME).dll.a'
5651 enabled x86_64 && objformat="win64" || objformat="win32"5651 enabled x86_64 && objformat="win64" || objformat="win32"
5652 enable dos_paths5652 enable dos_paths
5653 enabled shared && ! enabled small && test_cmd $windres --version && enable gnu_windres5653 ! enabled small && test_cmd $windres --version && enable gnu_windres
5654 add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=6005654 add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
5655 ;;5655 ;;
5656 *-dos|freedos|opendos)5656 *-dos|freedos|opendos)
libavcodec/Makefile+1−1
@@ -1218,7 +1218,7 @@ OBJS-$(HAVE_THREADS) += pthread.o pthread_slice.o pthread_fram · 1217 unmodified lines
1218OBJS-$(CONFIG_FRAME_THREAD_ENCODER) += frame_thread_encoder.o1218OBJS-$(CONFIG_FRAME_THREAD_ENCODER) += frame_thread_encoder.o
1219 1219
1220# Windows resource file1220# Windows resource file
1221SLIBOBJS-$(HAVE_GNU_WINDRES) += avcodecres.o1221SHLIBOBJS-$(HAVE_GNU_WINDRES) += avcodecres.o
1222 1222
1223SKIPHEADERS += %_tablegen.h \1223SKIPHEADERS += %_tablegen.h \
1224 %_tables.h \1224 %_tables.h \
libavdevice/Makefile+1−1
@@ -59,7 +59,7 @@ OBJS-$(CONFIG_LIBDC1394_INDEV) += libdc1394.o · 58 unmodified lines
59SHLIBOBJS-$(CONFIG_DECKLINK_INDEV) += reverse.o59SHLIBOBJS-$(CONFIG_DECKLINK_INDEV) += reverse.o
60 60
61# Windows resource file61# Windows resource file
62SLIBOBJS-$(HAVE_GNU_WINDRES) += avdeviceres.o62SHLIBOBJS-$(HAVE_GNU_WINDRES) += avdeviceres.o
63 63
64SKIPHEADERS += decklink_common.h64SKIPHEADERS += decklink_common.h
65SKIPHEADERS-$(CONFIG_DECKLINK) += decklink_enc.h decklink_dec.h \65SKIPHEADERS-$(CONFIG_DECKLINK) += decklink_enc.h decklink_dec.h \
libavfilter/Makefile+1−1
@@ -605,7 +605,7 @@ OBJS-$(CONFIG_MOVIE_FILTER) += src_movie.o · 604 unmodified lines
605SHLIBOBJS += log2_tab.o605SHLIBOBJS += log2_tab.o
606 606
607# Windows resource file607# Windows resource file
608SLIBOBJS-$(HAVE_GNU_WINDRES) += avfilterres.o608SHLIBOBJS-$(HAVE_GNU_WINDRES) += avfilterres.o
609 609
610SKIPHEADERS-$(CONFIG_LCMS2) += fflcms2.h610SKIPHEADERS-$(CONFIG_LCMS2) += fflcms2.h
611SKIPHEADERS-$(CONFIG_LIBVIDSTAB) += vidstabutils.h611SKIPHEADERS-$(CONFIG_LIBVIDSTAB) += vidstabutils.h
libavformat/Makefile+1−1
@@ -714,7 +714,7 @@ SHLIBOBJS-$(CONFIG_SPDIF_MUXER) += dca_sample_rate_tab.o · 713 unmodified lines
714OBJS-$(CONFIG_IEC61883_INDEV) += dv.o714OBJS-$(CONFIG_IEC61883_INDEV) += dv.o
715 715
716# Windows resource file716# Windows resource file
717SLIBOBJS-$(HAVE_GNU_WINDRES) += avformatres.o717SHLIBOBJS-$(HAVE_GNU_WINDRES) += avformatres.o
718 718
719SKIPHEADERS-$(CONFIG_IMF_DEMUXER) += imf.h719SKIPHEADERS-$(CONFIG_IMF_DEMUXER) += imf.h
720SKIPHEADERS-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += rtmpdh.h720SKIPHEADERS-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += rtmpdh.h
libavutil/Makefile+1−1
@@ -201,7 +201,7 @@ OBJS-$(!CONFIG_VULKAN) += hwcontext_stub.o · 200 unmodified lines
201OBJS += $(COMPAT_OBJS:%=../compat/%)201OBJS += $(COMPAT_OBJS:%=../compat/%)
202 202
203# Windows resource file203# Windows resource file
204SLIBOBJS-$(HAVE_GNU_WINDRES) += avutilres.o204SHLIBOBJS-$(HAVE_GNU_WINDRES) += avutilres.o
205 205
206SKIPHEADERS += objc.h206SKIPHEADERS += objc.h
207SKIPHEADERS-$(HAVE_CUDA_H) += hwcontext_cuda.h207SKIPHEADERS-$(HAVE_CUDA_H) += hwcontext_cuda.h
libpostproc/Makefile+1−1
@@ -10,4 +10,4 @@ OBJS = postprocess.o \ · 9 unmodified lines
10 version.o \10 version.o \
11 11
12# Windows resource file12# Windows resource file
13SLIBOBJS-$(HAVE_GNU_WINDRES) += postprocres.o13SHLIBOBJS-$(HAVE_GNU_WINDRES) += postprocres.o
libswresample/Makefile+1−1
@@ -22,6 +22,6 @@ OBJS-$(CONFIG_LIBSOXR) += soxr_resample.o · 21 unmodified lines
22SHLIBOBJS += log2_tab.o22SHLIBOBJS += log2_tab.o
23 23
24# Windows resource file24# Windows resource file
25SLIBOBJS-$(HAVE_GNU_WINDRES) += swresampleres.o25SHLIBOBJS-$(HAVE_GNU_WINDRES) += swresampleres.o
26 26
27TESTPROGS = swresample27TESTPROGS = swresample
libswscale/Makefile+1−1
@@ -25,7 +25,7 @@ OBJS = alphablend.o \ · 24 unmodified lines
25SHLIBOBJS += log2_tab.o25SHLIBOBJS += log2_tab.o
26 26
27# Windows resource file27# Windows resource file
28SLIBOBJS-$(HAVE_GNU_WINDRES) += swscaleres.o28SHLIBOBJS-$(HAVE_GNU_WINDRES) += swscaleres.o
29 29
30TESTPROGS = colorspace \30TESTPROGS = colorspace \
31 floatimg_cmp \31 floatimg_cmp \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t