{"id":16203427,"url":"https://github.com/chexiongsheng/build_xlua_with_libs","last_synced_at":"2025-04-13T05:05:39.206Z","repository":{"id":41557042,"uuid":"86566149","full_name":"chexiongsheng/build_xlua_with_libs","owner":"chexiongsheng","description":"为xLua集成几个常用库，方便使用","archived":false,"fork":false,"pushed_at":"2023-08-31T06:49:22.000Z","size":44393,"stargazers_count":614,"open_issues_count":8,"forks_count":239,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-04-13T05:05:28.069Z","etag":null,"topics":["lpeg","pbc","rapidjson","xlua"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chexiongsheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-29T09:56:16.000Z","updated_at":"2025-04-12T16:01:32.000Z","dependencies_parsed_at":"2024-10-25T22:55:35.973Z","dependency_job_id":null,"html_url":"https://github.com/chexiongsheng/build_xlua_with_libs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chexiongsheng%2Fbuild_xlua_with_libs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chexiongsheng%2Fbuild_xlua_with_libs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chexiongsheng%2Fbuild_xlua_with_libs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chexiongsheng%2Fbuild_xlua_with_libs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chexiongsheng","download_url":"https://codeload.github.com/chexiongsheng/build_xlua_with_libs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665749,"owners_count":21142123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lpeg","pbc","rapidjson","xlua"],"created_at":"2024-10-10T09:54:07.644Z","updated_at":"2025-04-13T05:05:39.178Z","avatar_url":"https://github.com/chexiongsheng.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"xLua常用库集成\r\n=====\r\n\r\n## lua-protobuf\r\n\r\nhttps://github.com/starwing/lua-protobuf\r\n\r\nps：如果需要用pbc的，可以修改编译参数指定改为用pbc，以window 64位为例，打开make_win64_lua53.bat，找到这行：\r\n\r\n~~~bash\r\ncmake -G \"Visual Studio 14 2015 Win64\" ..\r\n~~~\r\n\r\n修改为\r\n\r\n~~~bash\r\ncmake -DPBC=ON -G \"Visual Studio 14 2015 Win64\" ..\r\n~~~\r\n\r\n## LuaSocket\r\n\r\nxLua默认集成库。\r\n\r\n## RapidJson\r\n\r\njson处理，特点是Rapid。\r\n\r\n## LPeg\r\n\r\n模式匹配库。\r\n\r\n## FFI for lua53\r\n\r\n基于这个项目的裁剪：https://github.com/facebookarchive/luaffifb\r\n\r\n裁剪掉函数调用部分，这部分需要用到jit，有些系统行不同（比如ios），故裁剪掉。\r\n\r\n## 如何使用\r\n\r\n* 到[自动编译](https://github.com/chexiongsheng/build_xlua_with_libs/actions)下载你希望使用的版本（lua53,lua54, luajit），解压覆盖Unity工程Assets下Plugins目录，注意是覆盖，别删除后拷\r\n* 把LibsTestProj/Assets下的BuildInInit.cs和Resources目录放到Unity工程Assets下\r\n* 库的初始化看实例：LibsTestProj/Assets/Helloworld/Helloworld.cs\r\n\r\n## 注意\r\n\r\n* 这只是常用库的扩展，首先你得安装了xLua\r\n* 这几个库的使用请查阅相关文档\r\n* 由于时间的关系，这不一定能做到和xLua版本总是同步，如果xLua报“wrong lib version ...”信息的话，请把https://github.com/Tencent/xLua/tree/master/build下的除CMakeLists.txt之外的文件目录，覆盖到https://github.com/chexiongsheng/build_xlua_with_libs/tree/master/build目录。\r\n* 由于C#代码拷贝就可用，所以Plugins没发生变动（Plugins版本更新频率很低，很可能几个月更新一次），这个工程不会同步C#最新代码。自行到https://github.com/Tencent/xLua更新最新代码即可，只要运行没报“wrong lib version ...”的话，表示是C#代码和Plugins是版本匹配的。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchexiongsheng%2Fbuild_xlua_with_libs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchexiongsheng%2Fbuild_xlua_with_libs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchexiongsheng%2Fbuild_xlua_with_libs/lists"}