@@ -5,13 +5,12 @@ fn main() {
5
5
build_lpeglabel ( ) ;
6
6
cfg ! ( windows) . then ( || build_setfilemode ( ) ) ;
7
7
cfg ! ( not( feature = "no_format" ) ) . then ( || build_emmyluacodestyle ( ) ) ;
8
- build_luajit_utf8 ( ) ;
9
8
}
10
9
11
10
fn build_lua_seri ( ) {
12
11
cc:: Build :: new ( )
13
12
. include ( "3rd/lua-seri" )
14
- . include ( "3rd/LuaJIT/src " )
13
+ . include ( "3rd/lua " )
15
14
. files (
16
15
std:: fs:: read_dir ( "3rd/lua-seri" )
17
16
. unwrap ( )
@@ -31,7 +30,7 @@ fn build_lua_seri() {
31
30
fn build_lpeglabel ( ) {
32
31
cc:: Build :: new ( )
33
32
. include ( "3rd/lpeglabel" )
34
- . include ( "3rd/LuaJIT/src " )
33
+ . include ( "3rd/lua " )
35
34
. files (
36
35
std:: fs:: read_dir ( "3rd/lpeglabel" )
37
36
. unwrap ( )
@@ -75,8 +74,7 @@ fn build_emmyluacodestyle() {
75
74
. include ( "3rd/EmmyLuaCodeStyle/CodeFormatCore/include" )
76
75
. include ( "3rd/EmmyLuaCodeStyle/LuaParser/include" )
77
76
. include ( "3rd/EmmyLuaCodeStyle/3rd/wildcards/include" )
78
- . include ( "3rd/LuaJIT/src" ) ;
79
- builder. define ( "LUAJIT" , "1" ) ;
77
+ . include ( "3rd/lua" ) ;
80
78
81
79
let file_patterns = vec ! [
82
80
"3rd/EmmyLuaCodeStyle/CodeFormatLib/src/*.cpp" ,
@@ -106,22 +104,3 @@ fn build_emmyluacodestyle() {
106
104
builder. compile ( "EmmyLuaCodeStyle" ) ;
107
105
}
108
106
109
- fn build_luajit_utf8 ( ) {
110
- cc:: Build :: new ( )
111
- . include ( "3rd/LuaJIT-utf8" )
112
- . include ( "3rd/LuaJIT/src" )
113
- . files (
114
- std:: fs:: read_dir ( "3rd/LuaJIT-utf8" )
115
- . unwrap ( )
116
- . filter_map ( |entry| {
117
- let entry = entry. unwrap ( ) ;
118
- let path = entry. path ( ) ;
119
- if path. extension ( ) ?. to_str ( ) ? == "c" {
120
- Some ( path)
121
- } else {
122
- None
123
- }
124
- } ) ,
125
- )
126
- . compile ( "luajit-utf8" ) ;
127
- }
0 commit comments