diff options
author | 2015-04-07 13:42:33 +1000 | |
---|---|---|
committer | 2015-04-07 21:38:42 +1000 | |
commit | 7251c89cf4e40597ec6c6cd70653cfc67cd3d562 (patch) | |
tree | 3f18af60182da78f0be92191b1e15c33ceb25d82 /scripts/src | |
parent | 209734925fc28bf85a3d29fe3da9c8d3f881c6b7 (diff) |
Add a crappy utility for editing AU effect presets
Diffstat (limited to 'scripts/src')
-rw-r--r-- | scripts/src/main.lua | 2 | ||||
-rw-r--r-- | scripts/src/osd/sdl.lua | 53 |
2 files changed, 47 insertions, 8 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua index ca3ac2d4507..c73f3f450e6 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -86,7 +86,7 @@ function mainProject(_target, _subtarget) linkoptions { "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/resource/" .. _target .. "-Info.plist" } - custombuildtask { + custombuildtask { { MAME_DIR .. "src/version.c" , GEN_DIR .. "/resource/" .. _target .. "-Info.plist", { MAME_DIR .. "src/build/verinfo.py" }, {"@echo Emitting " .. _target .. "-Info.plist" .. "...", "python $(1) -p -b " .. _target .. " $(<) > $(@)" }}, } dependency { diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua index 4dafe5462c6..202e0f8571d 100644 --- a/scripts/src/osd/sdl.lua +++ b/scripts/src/osd/sdl.lua @@ -76,7 +76,7 @@ function maintargetosdoptions(_target) "bsd", } end - + configuration { "mingw*" or "vs*" } targetprefix "sdl" @@ -366,11 +366,11 @@ project ("ocore_" .. _OPTIONS["osd"]) } removeflags { - "SingleOutputDir", + "SingleOutputDir", } dofile("sdl_cfg.lua") - + includedirs { MAME_DIR .. "src/emu", MAME_DIR .. "src/osd", @@ -428,7 +428,7 @@ if _OPTIONS["with-tools"] then MAME_DIR .. "src/osd", MAME_DIR .. "src/lib/util", } - + targetdir(MAME_DIR) links { @@ -440,8 +440,8 @@ if _OPTIONS["with-tools"] then MAME_DIR .. "src/osd/sdl/testkeys.c", } - if _OPTIONS["targetos"]=="windows" then - if _OPTIONS["SDL_LIBVER"]=="sdl2" then + if _OPTIONS["targetos"] == "windows" then + if _OPTIONS["SDL_LIBVER"] == "sdl2" then links { "SDL2.dll", } @@ -456,10 +456,49 @@ if _OPTIONS["with-tools"] then files { MAME_DIR .. "src/osd/sdl/main.c", } - elseif _OPTIONS["targetos"]=="macosx" and _OPTIONS["SDL_LIBVER"]=="sdl" then + elseif _OPTIONS["targetos"] == "macosx" and _OPTIONS["SDL_LIBVER"] == "sdl" then -- SDLMain_tmpl isn't necessary for SDL2 files { MAME_DIR .. "src/osd/sdl/SDLMain_tmpl.m", } end end + + +-------------------------------------------------- +-- aueffectutil +-------------------------------------------------- + +if _OPTIONS["targetos"] == "macosx" and _OPTIONS["with-tools"] then + project("aueffectutil") + uuid ("3db8316d-fad7-4f5b-b46a-99373c91550e") + kind "ConsoleApp" + + options { + "ForceCPP", + } + + dofile("sdl_cfg.lua") + + targetdir(MAME_DIR) + + linkoptions { + "-sectcreate __TEXT __info_plist " .. MAME_DIR .. "src/osd/sdl/aueffectutil-Info.plist", + } + + dependency { + { "aueffectutil", MAME_DIR .. "src/osd/sdl/aueffectutil-Info.plist", true }, + } + + links { + "AudioUnit.framework", + "AudioToolbox.framework", + "CoreAudio.framework", + "CoreAudioKit.framework", + "CoreServices.framework", + } + + files { + MAME_DIR .. "src/osd/sdl/aueffectutil.m", + } +end |