summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-21 08:41:13 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-21 08:41:13 +0100
commit2ac3018ee71381a2fa635e8bcdba214285554a7b (patch)
treef4f8b1f44671c3ac2acd2196a1c2c0a56970a979 /scripts/genie.lua
parentcac513508fcf22f3b57e7f8cd9253e8b89d65fd5 (diff)
fix start project for custom builds in Visual Studio (nw)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua18
1 files changed, 11 insertions, 7 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index b9f30782273..cc34fb8c18d 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -1258,15 +1258,19 @@ findfunction("createProjects_" .. _OPTIONS["target"] .. "_" .. _OPTIONS["subtarg
group "emulator"
dofile(path.join("src", "main.lua"))
-if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
- startproject (_OPTIONS["target"])
-else
- if (_OPTIONS["subtarget"]=="mess") then
- startproject (_OPTIONS["subtarget"])
+if (_OPTIONS["SOURCES"] == nil) then
+ if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
+ startproject (_OPTIONS["target"])
else
- startproject (_OPTIONS["target"] .. _OPTIONS["subtarget"])
+ if (_OPTIONS["subtarget"]=="mess") then
+ startproject (_OPTIONS["subtarget"])
+ else
+ startproject (_OPTIONS["target"] .. _OPTIONS["subtarget"])
+ end
end
-end
+else
+ startproject (_OPTIONS["subtarget"])
+end
mainProject(_OPTIONS["target"],_OPTIONS["subtarget"])
if (_OPTIONS["STRIP_SYMBOLS"]=="1") then