From 89b11edadd742b589b4ca91688d11907995cf622 Mon Sep 17 00:00:00 2001 From: abma Date: Sun, 10 Aug 2014 12:53:51 +0200 Subject: enable openal shared compile --- src/openal.mk | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/openal.mk b/src/openal.mk index ae34a76..ab0da35 100644 --- a/src/openal.mk +++ b/src/openal.mk @@ -30,4 +30,16 @@ define $(PKG)_BUILD `'$(TARGET)-pkg-config' openal --cflags --libs` endef -$(PKG)_BUILD_SHARED = +define $(PKG)_BUILD_SHARED + cd '$(1)/build' && cmake .. \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + -DLIBTYPE=SHARED \ + -DEXAMPLES=FALSE + $(MAKE) -C '$(1)/build' -j '$(JOBS)' install + + '$(TARGET)-gcc' \ + -W -Wall -Werror -ansi -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-openal.exe' \ + `'$(TARGET)-pkg-config' openal --cflags --libs` +endef + -- cgit v0.12 From 4b889f64d774c1a7a8fca11c3c11826b0459f7b2 Mon Sep 17 00:00:00 2001 From: abma Date: Sat, 16 Aug 2014 19:37:46 +0200 Subject: remove duplicate code --- src/openal.mk | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/openal.mk b/src/openal.mk index ab0da35..ee2f029 100644 --- a/src/openal.mk +++ b/src/openal.mk @@ -20,20 +20,7 @@ endef define $(PKG)_BUILD cd '$(1)/build' && cmake .. \ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DLIBTYPE=STATIC \ - -DEXAMPLES=FALSE - $(MAKE) -C '$(1)/build' -j '$(JOBS)' install - - '$(TARGET)-gcc' \ - -W -Wall -Werror -ansi -pedantic \ - '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-openal.exe' \ - `'$(TARGET)-pkg-config' openal --cflags --libs` -endef - -define $(PKG)_BUILD_SHARED - cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ - -DLIBTYPE=SHARED \ + -DLIBTYPE=$(if BUILD_SHARED,SHARED,STATIC) \ -DEXAMPLES=FALSE $(MAKE) -C '$(1)/build' -j '$(JOBS)' install -- cgit v0.12