-
Notifications
You must be signed in to change notification settings - Fork 8
/
premake5.lua
65 lines (57 loc) · 1.88 KB
/
premake5.lua
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
newoption
{
trigger = 'to',
default = 'build',
value = 'path',
description = 'Set the output location for the generated files'
}
workspace "longtail"
configurations { "Debug", "Release" }
platforms { 'x86_64' }
location ( _OPTIONS["to"] )
intrinsics "on"
vectorextensions "AVX2"
symbols "On"
exceptionhandling ("off")
defines { '_CRT_SECURE_NO_DEPRECATE', '_CRT_SECURE_NO_WARNINGS', '_CRT_NONSTDC_NO_WARNINGS', '_HAS_EXCEPTIONS=0' }
characterset("MBCS")
filter "configurations:Debug"
runtime "Debug"
defines { "DEBUG", "BIKESHED_ASSERTS", "LONGTAIL_ASSERTS", "LONGTAIL_LOG_LEVEL=3", "__SSE2__", "LONGTAIL_EXPORT_SYMBOLS", "STBDS_REALLOC=Longtail_STBRealloc", "STBDS_FREE=Longtail_STBFree"}
filter "configurations:Release"
runtime "Release"
defines { "NDEBUG", "__SSE2__", "LONGTAIL_LOG_LEVEL=5" }
optimize "On"
project "longtail-src"
kind "StaticLib"
language ("C")
files { 'src/*.c', 'src/*.h', 'src/ext/*.h', 'src/ext/*.c'}
project "longtail-lib"
kind "StaticLib"
language ("C")
warnings "Default"
files { 'lib/**/*.c', 'lib/**/*.h', 'lib/*.c', 'lib/*.h' }
removefiles { 'lib/**/ext/**'}
project "longtail-lib-ext"
kind "StaticLib"
language ("C")
warnings "Off"
files { 'lib/**/ext/**.c', 'lib/**/ext/**.h'}
removefiles { 'lib/blake3/ext/*_neon.c'}
project "longtail-cli"
kind "ConsoleApp"
language ("C")
warnings "Default"
files { 'cmd/*.c', 'cmd/*.h', 'cmd/ext/*.h', 'cmd/lib/**/*.c', 'cmd/lib/**/*.h', 'cmd/lib/*.c', 'cmd/lib/*.h' }
links { "longtail-src" }
links { "longtail-lib" }
links { "longtail-lib-ext" }
project "longtail-tests"
kind "ConsoleApp"
debugdir ("test")
language ("C++")
warnings "Default"
files { 'test/*.cpp', 'test/*.h', 'test/ext/*.h' }
links { "longtail-src" }
links { "longtail-lib" }
links { "longtail-lib-ext" }