From ee678f2a20da1f72f5fa9091fe87f46e2288f965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Wasylk=C3=B3w?= Date: Sun, 8 Sep 2019 13:32:14 +0200 Subject: [PATCH] premake5: add alac plugin --- premake5-win.lua | 26 ++++++++++++++++++++++++++ premake5.lua | 24 ++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/premake5-win.lua b/premake5-win.lua index cd3b1dbfba..f2d351e808 100644 --- a/premake5-win.lua +++ b/premake5-win.lua @@ -175,6 +175,32 @@ project "aac_plugin" links { "faad" } end +if option ("plugin-alac") then +project "alac_plugin" + kind "SharedLib" + language "C" + targetdir "bin/%{cfg.buildcfg}/plugins" + targetprefix "" + targetname "alac" + + files { + "plugins/alac/alac_plugin.c", + "plugins/alac/alac.c", + "plugins/alac/decomp.h", + "plugins/alac/demux.c", + "plugins/alac/demux.h", + "plugins/alac/stream.c", + "plugins/alac/stream.h", + "shared/mp4tagutil.h", + "shared/mp4tagutil.c", + "plugins/libmp4ff/*.h", + "plugins/libmp4ff/*.c" + } + + defines { "USE_MP4FF=1", "USE_TAGGING=1" } + links { "faad" } +end + if option ("plugin-flac", "flac ogg") then project "flac_plugin" kind "SharedLib" diff --git a/premake5.lua b/premake5.lua index 01c4d12e96..a171c7fa5b 100644 --- a/premake5.lua +++ b/premake5.lua @@ -79,6 +79,30 @@ project "aac_plugin" defines { "USE_MP4FF=1", "USE_TAGGING=1" } links { "faad" } +project "alac_plugin" + kind "SharedLib" + language "C" + targetdir "bin/%{cfg.buildcfg}/plugins" + targetprefix "" + targetname "alac" + + files { + "plugins/alac/alac_plugin.c", + "plugins/alac/alac.c", + "plugins/alac/decomp.h", + "plugins/alac/demux.c", + "plugins/alac/demux.h", + "plugins/alac/stream.c", + "plugins/alac/stream.h", + "shared/mp4tagutil.h", + "shared/mp4tagutil.c", + "plugins/libmp4ff/*.h", + "plugins/libmp4ff/*.c" + } + + defines { "USE_MP4FF=1", "USE_TAGGING=1" } + links { "faad" } + project "flac_plugin" kind "SharedLib" language "C"