RE-flex icon indicating copy to clipboard operation
RE-flex copied to clipboard

Add XMake support

Open TabNahida opened this issue 1 year ago • 2 comments

Using the xmake build tool offers several advantages:

  1. Better cross-platform support
  2. Better looking build config
  3. 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()

TabNahida avatar May 16 '24 10:05 TabNahida

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?

genivia-inc avatar May 16 '24 17:05 genivia-inc

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.

TabNahida avatar May 16 '24 23:05 TabNahida