mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 23:56:49 +03:00
cd74d1af33
git-svn-id: svn://kolibrios.org@5098 a494cfbc-eb01-0410-851d-a64ba20cac60
33 lines
1.1 KiB
Lua
33 lines
1.1 KiB
Lua
if tup.getconfig("NO_FASM") ~= "" then return end
|
|
|
|
-- Select mixing rate: 22050, 44100 or 48000 (22.05 KHz, 44.1 KHz or 48 KHz)
|
|
UF_FREQ="48000"
|
|
|
|
-- Set volume ramping mode (interpolation): NONE, WEAK or STRONG
|
|
UF_RAMP="STRONG"
|
|
|
|
-- Set build mode: NORMAL, UNSAFE or AC97SND
|
|
UF_MODE="NORMAL"
|
|
|
|
if tup.getconfig("TUP_PLATFORM") == "win32"
|
|
then tup.rule(
|
|
"echo UF_FREQ equ $(UF_FREQ) > %o && " ..
|
|
"echo UF_RAMP equ $(UF_RAMP) >> %o && " ..
|
|
"echo UF_MODE equ $(UF_MODE) >> %o && " ..
|
|
"echo DEBUG equ 0 >> %o && " ..
|
|
"echo NOLINKER equ 0 >> %o && " ..
|
|
"echo include 'eff.inc' >> %o && " ..
|
|
"echo include 'fasm.asm' >> %o",
|
|
{"tmp.asm"})
|
|
else tup.rule(
|
|
"echo UF_FREQ equ $(UF_FREQ) > %o && " ..
|
|
"echo UF_RAMP equ $(UF_RAMP) >> %o && " ..
|
|
"echo UF_MODE equ $(UF_MODE) >> %o && " ..
|
|
"echo DEBUG equ 0 >> %o && " ..
|
|
"echo NOLINKER equ 0 >> %o && " ..
|
|
"echo include \"'eff.inc'\" >> %o && " ..
|
|
"echo include \"'fasm.asm'\" >> %o",
|
|
{"tmp.asm"})
|
|
end
|
|
tup.rule("tmp.asm", "fasm %f %o " .. tup.getconfig("KPACK_CMD"), "ufmod.obj")
|