This header can be used to determine the bit-depth and license of libx264.
install -d $(DESTDIR)$(libdir)
install -d $(DESTDIR)$(libdir)/pkgconfig
install -m 644 x264.h $(DESTDIR)$(includedir)
+ install -m 644 x264_config.h $(DESTDIR)$(includedir)
install -m 644 libx264.a $(DESTDIR)$(libdir)
install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
install x264$(EXE) $(DESTDIR)$(bindir)
$(if $(IMPLIBNAME), install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir))
uninstall:
- rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(libdir)/libx264.a
+ rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(includedir)/x264_config.h $(DESTDIR)$(libdir)/libx264.a
rm -f $(DESTDIR)$(bindir)/x264$(EXE) $(DESTDIR)$(libdir)/pkgconfig/x264.pc
$(if $(SONAME), rm -f $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX))
# define MPIXEL_X4(src) M32(src)
#endif
+#define BIT_DEPTH X264_BIT_DEPTH
+
#define CPPIXEL_X4(dst,src) MPIXEL_X4(dst) = MPIXEL_X4(src)
#define X264_SCAN8_SIZE (6*8)
exit 1
}
-rm -f config.h config.mak config.log x264.pc conftest*
+rm -f x264_config.h config.h config.mak config.log x264.pc conftest*
prefix='/usr/local'
exec_prefix='${prefix}'
ASFLAGS="$ASFLAGS -DHIGH_BIT_DEPTH"
fi
-define BIT_DEPTH $bit_depth
ASFLAGS="$ASFLAGS -DBIT_DEPTH=$bit_depth"
-[ $gpl = yes ] && define HAVE_GPL
+[ $gpl = yes ] && define HAVE_GPL && x264_gpl=1 || x264_gpl=0
#define undefined vars as 0
for var in $CONFIG_HAVE; do
rm -f conftest*
+# generate exported config file
+
+cat > x264_config.h << EOF
+#define X264_BIT_DEPTH $bit_depth
+#define X264_GPL $x264_gpl
+EOF
+
# generate config files
cat > config.mak << EOF
#include <stdarg.h>
+#include "x264_config.h"
+
#define X264_BUILD 110
/* x264_t: