diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-06-01 22:24:55 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-06-01 22:24:55 +0000 |
commit | 8a4dff14ad7560aae83e9155d0c62ba7f8c101fd (patch) | |
tree | f9803ea83fa7cb6020e84b78f3fc45b4086e4a13 /bs/mkconfig.h.mk | |
parent | 97698bd4aaf168620205fea26f089e7b1acc869d (diff) | |
download | mpd-8a4dff14ad7560aae83e9155d0c62ba7f8c101fd.tar.gz mpd-8a4dff14ad7560aae83e9155d0c62ba7f8c101fd.tar.xz mpd-8a4dff14ad7560aae83e9155d0c62ba7f8c101fd.zip |
Add the bs build system from mpd-ke
Dealing with autotools is too painful when having
to deal with multiple build environments and
configurations.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7368 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'bs/mkconfig.h.mk')
-rw-r--r-- | bs/mkconfig.h.mk | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/bs/mkconfig.h.mk b/bs/mkconfig.h.mk new file mode 100644 index 000000000..816eb4f2e --- /dev/null +++ b/bs/mkconfig.h.mk @@ -0,0 +1,54 @@ +have += TCP +have += UN + +have += AUDIOFILE +have += FAAD +have += FAACDECCONFIGURATION_DONTUPSAMPLEIMPLICITSBR +have += FAACDECCONFIGURATION_DOWNMATRIX +have += FAACDECFRAMEINFO_SAMPLERATE +have += MP4AUDIOSPECIFICCONFIG +have += FLAC +have += HELIXMP3 +have += MIKMOD +have += MAD +have += MPCDEC +have += OGGFLAC +have += OGGVORBIS +have += TREMOR + +have += ALSA +have += AO +have += FIFO +have += JACK +have += MVP +have += OSX +have += OSS +have += PULSE +have += SHOUT +have += SUN + +have += ID3TAG +have += ICONV +have += IPV6 +have += LANGINFO_CODESET + +MPD_PATH_MAX ?= 255 +req_vars += MPD_PATH_MAX + +export + +include $(O)/config.mk +$(O)/config.h: $(O)/config_detected.h $(O)/config.mk + echo '#ifndef CONFIG_H' > $@+ + echo '#define CONFIG_H' >> $@+ + $(SHELL) ./bs/pkginfo-header.sh >> $@+ + cat $(O)/config_detected.h >> $@+ + echo '/* user-enabled features: */' >> $@+ + for d in $(have); do eval "val=`echo '$$'HAVE_$$d` var=HAVE_$$d"; \ + if test -n "$$val"; then echo "#define $$var 1" >> $@+; \ + else echo "/* #undef $$var */" >> $@+; fi ; done + for d in $(req_vars); do eval "val=`echo '$$'$$d`"; \ + echo "#define $$d $$val" >> $@+; done + echo '#endif /* CONFIG_H */' >> $@+ + mv $@+ $@ +.NOTPARALLEL: |