Permalink
Browse files

Add libbpg.so

  • Loading branch information...
def- committed Jan 22, 2015
1 parent d007ff9 commit 6253393fd70c318022db9f920c2d41c5f70b6c34
Showing with 5 additions and 1 deletion.
  1. +5 −1 Makefile
@@ -45,6 +45,7 @@ CFLAGS+=-DCONFIG_BPG_VERSION=\"$(shell cat VERSION)\"
ifdef USE_JCTVC_HIGH_BIT_DEPTH
CFLAGS+=-DRExt__HIGH_BIT_DEPTH_SUPPORT
endif
CFLAGS+=-fPIC

# Emscriptem config
EMLDFLAGS:=-s "EXPORTED_FUNCTIONS=['_bpg_decoder_open','_bpg_decoder_decode','_bpg_decoder_get_info','_bpg_decoder_start','_bpg_decoder_get_frame_duration','_bpg_decoder_get_line','_bpg_decoder_close','_malloc','_free']"
@@ -70,7 +71,7 @@ ifdef USE_EMCC
PROGS+=bpgdec.js bpgdec8.js bpgdec8a.js
endif

all: $(PROGS)
all: libbpg.so $(PROGS)

LIBBPG_OBJS:=$(addprefix libavcodec/, \
hevc_cabac.o hevc_filter.o hevc.o hevcpred.o hevc_refs.o\
@@ -155,6 +156,9 @@ endif #!CONFIG_WIN32

bpgenc.o: CFLAGS+=-Wno-unused-but-set-variable

libbpg.so: $(LIBBPG_OBJS)
$(CC) $(LDFLAGS) -shared -o $@ $^

libbpg.a: $(LIBBPG_OBJS)
$(AR) rcs $@ $^

0 comments on commit 6253393

Please sign in to comment.