Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / solution / genie.lua
blob: d1fb495054fb5b9385af4329e68953a57873f071 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
if not solution() then
    solution 'spasm'
    configurations {'Debug', 'Release'}
    platforms { 'x64' }
    flags {
        'FatalWarnings',
        'ExtraWarnings',
        'Cpp14',
        'Symbols',
    }

    defines {
            '_SCL_SECURE_NO_WARNINGS',
    }

    local root = '../build/'

    configuration 'Debug'
        targetdir(root .. 'bin/Debug')
        objdir(root .. 'obj/Debug')

    configuration 'Release'
        flags 'OptimizeSpeed'
        targetdir(root .. 'bin/Release')
        objdir(root .. 'obj/Release')
    configuration '*'
end

    project 'sprt'
        kind 'StaticLib'
        language 'C++'
        uuid(os.uuid('sprt'))
        files '../src/*.cpp'
        removefiles '../src/main.cpp'
        files '../src/*.h'

    project 'spasm_lib'
        kind 'StaticLib'
        language 'C++'
        uuid(os.uuid('spasm_lib'))
        files '../src/asm/*.cpp'
        removefiles {
            '../src/asm/main.cpp',
            '../src/asm/lexdump.cpp',
            '../src/asm/lexdump3.cpp',
        }
        files '../src/asm/*.h'

    project 'spasm'
        kind 'ConsoleApp'
        language 'C++'
        uuid(os.uuid('spasm'))
		links 'spasm_lib'
        files '../src/asm/main.cpp'
        removefiles {
            '../src/asm/lexdump.cpp',
            '../src/asm/lexdump3.cpp',
        }
        files '../src/asm/*.h'

    project 'sprun'
        kind 'ConsoleApp'
        language 'C++'
        uuid(os.uuid('sprun'))
        files '../src/main.cpp'
        links 'sprt'

    -- include '../test'
    startproject 'sprun'