-
Notifications
You must be signed in to change notification settings - Fork 4
/
BUSY
98 lines (88 loc) · 2.32 KB
/
BUSY
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# author: Rochus Keller ([email protected])
# License: GPL
# https://github.com/rochus-keller/BUSY/blob/main/README.md on how to use this file
if busy_version < "2023-01-15" {
error("this version of BUSY is not compatible with this build")
}
let mtconf : Config {
.cflags = [ "/O2", "/MT" ]
}
if (build_mode == `optimized) && (target_toolchain == `msvc) {
set_defaults(target_toolchain,mtconf)
}
submod qt = ../LeanQt (HAVE_ITEMVIEWS)
let compiler_files = [
./LnLexer.cpp
./LnPpLexer.cpp
./LnRowCol.cpp
./LnToken.cpp
./LnTokenType.cpp
./LnAst.cpp
./LnParser2.cpp
./LnValidator.cpp
]
let ide_files = [
../GuiTools/NamedFunction.cpp
../GuiTools/UiFunction.cpp
../GuiTools/AutoMenu.cpp
../GuiTools/AutoShortcut.cpp
../GuiTools/CodeEditor.cpp
../GuiTools/DocSelector.cpp
../GuiTools/DocTabWidget.cpp
../LjTools/LuaJitBytecode.cpp
../LjTools/Engine2.cpp
../LjTools/Terminal2.cpp
../LjTools/ExpressionParser.cpp
../LjTools/LuaJitComposer.cpp
../LjTools/BcViewer2.cpp
../LjTools/BcViewer.cpp
../LjTools/LjDisasm.cpp
./LnIde.cpp
./LnHighlighter.cpp
./LnLjRuntime.cpp
./LnProject.cpp
./LnLjbcGen.cpp
#./LnPAL.c
#./LnPAL2.c
./LnPAL3.cpp
./LnBitBlt.c
]
let ide_moc : Moc {
.sources += [
../GuiTools/UiFunction.h
../GuiTools/AutoShortcut.h
../GuiTools/AutoMenu.h
../GuiTools/DocTabWidget.h
../GuiTools/DocSelector.h
../GuiTools/CodeEditor.h
../LjTools/BcViewer.h
../LjTools/BcViewer2.h
../LjTools/Engine2.h
../LjTools/Terminal2.h
./LnIde.h
./LnPAL3.h
./LnProject.h
]
}
let ide_rcc : Rcc {
.sources += ./LnIde.qrc
}
let ide ! : Executable {
.configs += [ qt.qt_client_config ]
.deps += [ qt.libqt ide_rcc ide_moc ]
.include_dirs += [ ../LuaJIT/src .. ]
.lib_dirs += [ ../LuaJIT/src ]
.sources += compiler_files + ide_files
if target_os == `win32 {
.lib_files += [ ../LuaJIT/src/lua51.lib ]
.deps += qt.libqtwinmain
} else {
.lib_names += [ "dl" ]
.lib_files += [ ../LuaJIT/src/libluajit.a ]
.ldflags += [ "-rdynamic" ]
if target_os == `macos {
.ldflags += [ "-pagezero_size 10000" "-image_base 100000000" ]
}
}
.name = "LuonIDE"
}