Renamed DRIVERS parameter to SOURCES since you can add any source you wish to include in target (nw)

This commit is contained in:
Miodrag Milanovic 2015-10-09 14:13:35 +02:00
parent 811de65fdb
commit 8e22b1d22f
4 changed files with 14 additions and 14 deletions

View file

@ -90,7 +90,7 @@
# QT_HOME = /usr/lib64/qt48/
# DRIVERS = src/mame/drivers/1942.c,src/mame/drivers/cops.c
# SOURCES = src/mame/drivers/asteroid.c,src/mame/audio/llander.c
# FORCE_VERSION_COMPILE = 1
@ -628,8 +628,8 @@ ifdef QT_HOME
PARAMS += --QT_HOME='$(QT_HOME)'
endif
ifdef DRIVERS
PARAMS += --DRIVERS='$(DRIVERS)'
ifdef SOURCES
PARAMS += --SOURCES='$(SOURCES)'
endif
ifdef FORCE_VERSION_COMPILE
@ -661,7 +661,7 @@ SCRIPTS = scripts/genie.lua \
$(wildcard src/osd/$(OSD)/$(OSD).mak) \
$(wildcard src/$(TARGET)/$(SUBTARGET).mak)
ifndef DRIVERS
ifndef SOURCES
SCRIPTS += scripts/target/$(TARGET)/$(SUBTARGET).lua
endif

View file

@ -370,8 +370,8 @@ newoption {
}
newoption {
trigger = "DRIVERS",
description = "List of drivers to compile.",
trigger = "SOURCES",
description = "List of sources to compile.",
}
newoption {
@ -516,15 +516,15 @@ msgarchiving ("Archiving $(notdir $@)...")
messageskip { "SkipCreatingMessage", "SkipBuildingMessage", "SkipCleaningMessage" }
if (_OPTIONS["DRIVERS"] == nil) then
if (_OPTIONS["SOURCES"] == nil) then
if (not os.isfile(path.join("target", _OPTIONS["target"],_OPTIONS["subtarget"] .. ".lua"))) then
error("File definition for TARGET=" .. _OPTIONS["target"] .. " SUBTARGET=" .. _OPTIONS["subtarget"] .. " does not exist")
end
dofile (path.join("target", _OPTIONS["target"],_OPTIONS["subtarget"] .. ".lua"))
else
OUT_STR = os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["DRIVERS"] .. " target " .. _OPTIONS["subtarget"])
OUT_STR = os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["SOURCES"] .. " target " .. _OPTIONS["subtarget"])
load(OUT_STR)()
os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["DRIVERS"] .. " drivers " .. _OPTIONS["subtarget"] .. " > ".. GEN_DIR .. _OPTIONS["target"] .. "/" .. _OPTIONS["subtarget"].."/drivlist.c")
os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["SOURCES"] .. " drivers " .. _OPTIONS["subtarget"] .. " > ".. GEN_DIR .. _OPTIONS["target"] .. "/" .. _OPTIONS["subtarget"].."/drivlist.c")
end
configuration { "gmake" }
flags {

View file

@ -47,7 +47,7 @@ function devicesProject(_target, _subtarget)
dofile(path.join("src", "machine.lua"))
if (_OPTIONS["DRIVERS"] == nil) then
if (_OPTIONS["SOURCES"] == nil) then
project ("bus")
uuid ("5d782c89-cf7e-4cfe-8f9f-0d4bfc16c91d")
kind (LIBTYPE)

View file

@ -2,7 +2,7 @@
-- copyright-holders:MAMEdev Team
function mainProject(_target, _subtarget)
if (_OPTIONS["DRIVERS"] == nil) then
if (_OPTIONS["SOURCES"] == nil) then
if (_target == _subtarget) then
project (_target)
else
@ -38,7 +38,7 @@ end
flags {
"Unicode",
}
if (_OPTIONS["DRIVERS"] == nil) then
if (_OPTIONS["SOURCES"] == nil) then
configuration { "x64", "Release" }
targetsuffix "64"
if _OPTIONS["PROFILE"] then
@ -91,7 +91,7 @@ end
links {
"osd_" .. _OPTIONS["osd"],
}
if (_OPTIONS["DRIVERS"] == nil) then
if (_OPTIONS["SOURCES"] == nil) then
links {
"bus",
}
@ -232,7 +232,7 @@ end
GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.c",
}
if (_OPTIONS["DRIVERS"] == nil) then
if (_OPTIONS["SOURCES"] == nil) then
dependency {
{ "../../../../generated/mame/mame/drivlist.c", MAME_DIR .. "src/mame/mess.lst", true },
{ "../../../../generated/mame/mame/drivlist.c" , MAME_DIR .. "src/mame/arcade.lst", true},