summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r--scripts/src/main.lua56
1 files changed, 28 insertions, 28 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua
index 52211bf92fe..af60a3ccc44 100644
--- a/scripts/src/main.lua
+++ b/scripts/src/main.lua
@@ -10,7 +10,7 @@
---------------------------------------------------------------------------
function mainProject(_target, _subtarget)
-if (_OPTIONS["SOURCES"] == nil) then
+if (_OPTIONS["SOURCES"] == nil) then
if (_target == _subtarget) then
project (_target)
else
@@ -19,13 +19,13 @@ if (_OPTIONS["SOURCES"] == nil) then
else
project (_target .. _subtarget)
end
- end
+ end
else
project (_subtarget)
-end
+end
uuid (os.uuid(_target .."_" .. _subtarget))
kind "ConsoleApp"
-
+
configuration { "android*" }
targetprefix "lib"
targetname "main"
@@ -39,7 +39,7 @@ end
"GLESv1_CM",
"GLESv2",
"SDL2",
- }
+ }
configuration { "pnacl" }
kind "ConsoleApp"
targetextension ".pexe"
@@ -53,7 +53,7 @@ end
addprojectflags()
flags {
"NoManifest",
- "Symbols", -- always include minimum symbols for executables
+ "Symbols", -- always include minimum symbols for executables
}
if _OPTIONS["SYMBOLS"] then
@@ -63,7 +63,7 @@ end
"$(SILENT) objdump --section=.text --line-numbers --syms --demangle $(TARGET) >$(subst .exe,.sym,$(TARGET))"
}
end
-
+
configuration { "vs*" }
flags {
"Unicode",
@@ -112,7 +112,7 @@ end
targetextension ""
configuration { "asmjs" }
- targetextension ".bc"
+ targetextension ".bc"
if os.getenv("EMSCRIPTEN") then
local emccopts = ""
emccopts = emccopts .. " -O3"
@@ -141,12 +141,12 @@ end
includedirs {
MAME_DIR .. "3rdparty/SDL2/include",
}
-
+
files {
MAME_DIR .. "3rdparty/SDL2/src/main/android/SDL_android_main.c",
}
targetsuffix ""
- if _OPTIONS["SEPARATE_BIN"]~="1" then
+ if _OPTIONS["SEPARATE_BIN"]~="1" then
if _OPTIONS["PLATFORM"]=="arm" then
targetdir(MAME_DIR .. "android-project/app/src/main/libs/armeabi-v7a")
end
@@ -167,11 +167,11 @@ end
end
end
else
- if _OPTIONS["SEPARATE_BIN"]~="1" then
+ if _OPTIONS["SEPARATE_BIN"]~="1" then
targetdir(MAME_DIR)
end
end
-
+
findfunction("linkProjects_" .. _OPTIONS["target"] .. "_" .. _OPTIONS["subtarget"])(_OPTIONS["target"], _OPTIONS["subtarget"])
links {
"osd_" .. _OPTIONS["osd"],
@@ -201,7 +201,7 @@ end
}
if _OPTIONS["USE_LIBUV"]=="1" then
- links {
+ links {
ext_lib("uv"),
"http-parser",
}
@@ -221,9 +221,9 @@ end
"bgfx",
"ocore_" .. _OPTIONS["osd"],
}
-
+
override_resources = false;
-
+
maintargetosdoptions(_target,_subtarget)
includedirs {
@@ -273,7 +273,7 @@ end
dependency {
{ "$(OBJDIR)/mame.res" , GEN_DIR .. "resource/" .. rctarget .. "vers.rc", true },
}
- end
+ end
end
local mainfile = MAME_DIR .. "src/".._target .."/" .. _subtarget ..".cpp"
@@ -285,12 +285,12 @@ end
MAME_DIR .. "src/version.cpp",
GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.cpp",
}
-
-if (_OPTIONS["SOURCES"] == nil) then
+
+if (_OPTIONS["SOURCES"] == nil) then
if os.isfile(MAME_DIR .. "src/".._target .."/" .. _subtarget ..".flt") then
dependency {
- {
+ {
GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.cpp", MAME_DIR .. "src/".._target .."/" .. _target ..".lst", true },
}
custombuildtask {
@@ -303,7 +303,7 @@ if (_OPTIONS["SOURCES"] == nil) then
}
else
dependency {
- {
+ {
GEN_DIR .. _target .. "/" .. _target .."/drivlist.cpp", MAME_DIR .. "src/".._target .."/" .. _target ..".lst", true },
}
custombuildtask {
@@ -311,11 +311,11 @@ if (_OPTIONS["SOURCES"] == nil) then
}
end
end
-end
+end
if (_OPTIONS["SOURCES"] ~= nil) then
dependency {
- {
+ {
GEN_DIR .. _target .. "/" .. _subtarget .."/drivlist.cpp", MAME_DIR .. "src/".._target .."/" .. _target ..".lst", true },
}
custombuildtask {
@@ -331,17 +331,17 @@ if _OPTIONS["FORCE_VERSION_COMPILE"]=="1" then
}
end
configuration { "mingw*" }
- custombuildtask {
+ custombuildtask {
{ MAME_DIR .. "src/version.cpp" , GEN_DIR .. "resource/" .. rctarget .. "vers.rc", { MAME_DIR .. "scripts/build/verinfo.py" }, {"@echo Emitting " .. rctarget .. "vers.rc" .. "...", PYTHON .. " $(1) -r -b " .. rctarget .. " $(<) > $(@)" }},
- }
-
+ }
+
configuration { "vs*" }
- prebuildcommands {
+ prebuildcommands {
"mkdir " .. path.translate(GEN_DIR .. "resource/","\\") .. " 2>NUL",
"@echo Emitting ".. rctarget .. "vers.rc...",
PYTHON .. " " .. path.translate(MAME_DIR .. "scripts/build/verinfo.py","\\") .. " -r -b " .. rctarget .. " " .. path.translate(MAME_DIR .. "src/version.cpp","\\") .. " > " .. path.translate(GEN_DIR .. "resource/" .. rctarget .. "vers.rc", "\\") ,
- }
-
+ }
+
configuration { }
debugdir (MAME_DIR)