From 028910e5b3340226d7943cedb229092b3cc514ed Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sat, 2 Oct 2021 08:30:36 +0300 Subject: Generate project files in next to the solution - Also allows for the ninja generator of genie to work correctly --- spasm/solution/genie.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'spasm/solution/genie.lua') diff --git a/spasm/solution/genie.lua b/spasm/solution/genie.lua index d1fb495..5ba467c 100644 --- a/spasm/solution/genie.lua +++ b/spasm/solution/genie.lua @@ -15,6 +15,12 @@ if not solution() then local root = '../build/' + if _ACTION ~= 'ninja' then + location '.' + else + location './ninja' + end + configuration 'Debug' targetdir(root .. 'bin/Debug') objdir(root .. 'obj/Debug') @@ -38,6 +44,7 @@ end kind 'StaticLib' language 'C++' uuid(os.uuid('spasm_lib')) + location(solution().location) files '../src/asm/*.cpp' removefiles { '../src/asm/main.cpp', @@ -50,6 +57,7 @@ end kind 'ConsoleApp' language 'C++' uuid(os.uuid('spasm')) + location(solution().location) links 'spasm_lib' files '../src/asm/main.cpp' removefiles { @@ -62,6 +70,7 @@ end kind 'ConsoleApp' language 'C++' uuid(os.uuid('sprun')) + location(solution().location) files '../src/main.cpp' links 'sprt' -- cgit v1.3.1-23-gd82d