Add XMake support
Using the xmake build tool offers several advantages:
- Better cross-platform support
- Better looking build config
- Add xmake package suppor
Here is an example xmake config
set_languages("cxx11")
target("ReflexLib")
set_kind("shared")
add_includedirs("include")
add_files("lib/*.cpp")
add_files("unicode/*.cpp")
add_vectorexts("all")
target_end()
target("ReflexLibStatic")
set_kind("static")
add_includedirs("include")
add_files("lib/*.cpp")
add_files("unicode/*.cpp")
add_vectorexts("all")
target_end()
target("Reflex")
set_kind("binary")
add_includedirs("include")
add_files("src/*.cpp")
add_deps("ReflexLibStatic")
add_vectorexts("all")
target_end()
Thank you for contributing to the project!
This looks useful. Perhaps we can add this to the discussions as a general suggestion for users on how to build the library with xmake? What do you think?
Thank you for contributing to the project!
This looks useful. Perhaps we can add this to the discussions as a general suggestion for users on how to build the library with xmake? What do you think?
I haven't used discussions before. Yeah, I should add it to discussions. And by the way, I have add re-flex to xrepo the package manager of xmake.It seems xmake have faced some problems, but I think re-flex will be soon available on xrepo.