@@ -5,13 +5,12 @@ fn main() {
55 build_lpeglabel ( ) ;
66 cfg ! ( windows) . then ( || build_setfilemode ( ) ) ;
77 cfg ! ( not( feature = "no_format" ) ) . then ( || build_emmyluacodestyle ( ) ) ;
8- build_luajit_utf8 ( ) ;
98}
109
1110fn build_lua_seri ( ) {
1211 cc:: Build :: new ( )
1312 . include ( "3rd/lua-seri" )
14- . include ( "3rd/LuaJIT/src " )
13+ . include ( "3rd/lua " )
1514 . files (
1615 std:: fs:: read_dir ( "3rd/lua-seri" )
1716 . unwrap ( )
@@ -31,7 +30,7 @@ fn build_lua_seri() {
3130fn build_lpeglabel ( ) {
3231 cc:: Build :: new ( )
3332 . include ( "3rd/lpeglabel" )
34- . include ( "3rd/LuaJIT/src " )
33+ . include ( "3rd/lua " )
3534 . files (
3635 std:: fs:: read_dir ( "3rd/lpeglabel" )
3736 . unwrap ( )
@@ -75,8 +74,7 @@ fn build_emmyluacodestyle() {
7574 . include ( "3rd/EmmyLuaCodeStyle/CodeFormatCore/include" )
7675 . include ( "3rd/EmmyLuaCodeStyle/LuaParser/include" )
7776 . include ( "3rd/EmmyLuaCodeStyle/3rd/wildcards/include" )
78- . include ( "3rd/LuaJIT/src" ) ;
79- builder. define ( "LUAJIT" , "1" ) ;
77+ . include ( "3rd/lua" ) ;
8078
8179 let file_patterns = vec ! [
8280 "3rd/EmmyLuaCodeStyle/CodeFormatLib/src/*.cpp" ,
@@ -106,22 +104,3 @@ fn build_emmyluacodestyle() {
106104 builder. compile ( "EmmyLuaCodeStyle" ) ;
107105}
108106
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