Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / solution / genie.lua
blob: 0da986a1ffe0c8a210a15e84de230104cca0aaab (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
solution 'JSImpl'
    if _ACTION ~= 'jcdb' then
        platforms { 'x32', 'x64' }
        configurations {'Debug', 'Release'}
    else
        configurations {'Debug'}
    end
    flags {
        'FatalWarnings',
        'ExtraWarnings',
        'Cpp17',
        'Symbols',
    }
    defines {
        '_SCL_SECURE_NO_WARNINGS',
    }


    local root = '../build/'
    if _ACTION ~= 'ninja' then
        location '.'
    else
        location './ninja'
    end

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

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

    include '../test'
    startproject 'Test'

    group 'JSImpl'
        project 'JSLib'
            kind 'StaticLib'
            language 'C++'
            uuid(os.uuid('JSLib'))
            location(solution().location)
            files '../src/*.cpp'
            removefiles '../src/main.cpp'
            files '../src/*.h'

        project 'JSImpl'
            kind 'ConsoleApp'
            language 'C++'
            uuid(os.uuid('JSImpl'))
            location(solution().location)
            files '../src/main.cpp'
            links 'JSLib'

    group 'Spasm'
        include '../../spasm/solution/'

    group 'gctest'
        include '../../gctest/solution/'