File: premake.lua

package info (click to toggle)
silly 0.1.0-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,896 kB
  • ctags: 212
  • sloc: sh: 8,893; cpp: 1,252; makefile: 125; ansic: 51
file content (72 lines) | stat: -rw-r--r-- 1,295 bytes parent folder | download | duplicates (2)
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
70
71
72
--
-- SILLY premake configuration script
--
project.name = "SILLY"
project.bindir = "bin"
project.libdir = "lib"

package = newpackage()
package.name = "SILLY"
package.kind = "dll"
package.language = "c++"

package.files = {
    matchfiles("src/*.cpp"),
    matchfiles("src/loaders/*.cpp"),
    matchfiles("include/*.h"),
    matchfiles("include/*.icpp"),
    matchfiles("include/loaders/*.h"),
    matchfiles("include/loaders/*.icpp"),
}

package.includepaths = {
    "include",
    "include/loaders",
    "dependencies/include",
}

package.libpaths = {
    "dependencies/lib",
}

-- windows stuff
package.defines = {
    "WIN32","_WIN32", "__WIN32__",
    "_CRT_SECURE_NO_DEPRECATE",
    "SILLY_EXPORTS",
    "SILLY_HAVE_JPG",
    "SILLY_HAVE_PNG",
    --"SILLY_OPT_INLINE",
    --"SILLY_OPT_PROFILE",
}


--
-- Debug
--

    local debug = package.config["Debug"]
    debug.defines = { "DEBUG", "_DEBUG", "SILLY_OPT_DEBUG",}
    debug.target = "SILLY_d"
    debug.links = {
        "jpeg6b_d",
        "libpngd",
        "zlibd",
    }

--
-- Release
--

    local release = package.config["Release"]
    release.buildflags =
    {
        "no-frame-pointer",
        "no-symbols",
        "optimize-speed"
    }
    release.links = {
        "jpeg6b",
        "libpng",
        "zlib",
    }