diff --git a/scripts/genie.lua b/scripts/genie.lua index e5a6e782d8e..b754db0fe01 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -154,6 +154,12 @@ newoption { description = "Generate a link map.", } +newoption { + trigger = "FORCE_DRC_C_BACKEND", + description = "Force DRC C backend.", +} + + local os_version = str_to_version(_OPTIONS["os_version"]) USE_BGFX = 1 if (_OPTIONS["targetos"]=="macosx" and os_version < 100700) then @@ -337,6 +343,19 @@ configuration { } "FLAC__NO_DLL", } + -- fixme -- need to make this work for other target architectures (PPC) + if _OPTIONS["FORCE_DRC_C_BACKEND"]==nil then + configuration { "x64" } + defines { + "NATIVE_DRC=drcbe_x64", + } + configuration { "x32" } + defines { + "NATIVE_DRC=drcbe_x86", + } + configuration { } + end + -- define USE_SYSTEM_JPEGLIB if library shipped with MAME is not used --ifneq ($(BUILD_JPEGLIB),1) --DEFS += -DUSE_SYSTEM_JPEGLIB diff --git a/scripts/src/cpu.lua b/scripts/src/cpu.lua index 422d97f0462..97ac35e5688 100644 --- a/scripts/src/cpu.lua +++ b/scripts/src/cpu.lua @@ -36,18 +36,6 @@ if (CPUS["SH2"]~=null or CPUS["MIPS"]~=null or CPUS["POWERPC"]~=null or CPUS["RS } end --- fixme -- need to make this work for other target architectures (PPC) - ---ifndef FORCE_DRC_C_BACKEND -configuration { "x64" } - defines { "NATIVE_DRC=drcbe_x64" } - -configuration { "x32" } - defines { "NATIVE_DRC=drcbe_x86" } ---endif -configuration { } - - -------------------------------------------------- -- Signetics 8X300 / Scientific Micro Systems SMS300 --@src/emu/cpu/8x300/8x300.h,CPUS += 8X300