-
Notifications
You must be signed in to change notification settings - Fork 0
/
Premake5.lua
69 lines (56 loc) · 1.41 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
66
67
68
externalrule 'ragel'
location 'ragel'
filename 'ragel'
fileextension '.rl'
propertydefinition {
name = 'OutputFileName',
}
propertydefinition {
name = 'Outputs',
}
propertydefinition {
name = 'CodeStyle',
}
solution 'wlx_csv'
configurations { 'Debug', 'Release' }
language 'C'
defines { 'WIN32', '_WIN32', 'WINDOWS', '_WINDOWS' }
flags { 'StaticRuntime' }
characterset ("MBCS")
location 'build'
objdir 'obj'
rules { 'ragel' }
ragelVars {
OutputFileName = '../csv/%(Filename).c',
Outputs = '%(OutputFileName)',
CodeStyle = '1',
}
filter { 'action:vs*' }
defines { '_CRT_SECURE_NO_WARNINGS' }
filter { 'configurations:Debug' }
defines { '_DEBUG' }
optimize 'Debug'
symbols 'On'
symbolspath '$(OutDir)$(TargetName).pdb'
filter { 'configurations:Release' }
defines { 'NDEBUG' }
optimize 'Full'
project 'wlx_csv'
kind 'SharedLib'
-- targetdir 'bin'
targetdir '$(COMMANDER_PATH)/Plugins/wlx/csv'
includedirs {
'csv',
}
files {
'csv/csv.h',
'csv/csv.rl',
'src/*.h',
'src/*.c',
'src/*.def',
}
targetname 'wlx_csv'
targetextension '.wlx'
configuration 'Debug'
debugdir '$(TargetDir)'
debugcommand '$(COMMANDER_PATH)/TOTALCMD.EXE'