Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XMake support #208

Open
TabNahida opened this issue May 16, 2024 · 2 comments
Open

Add XMake support #208

TabNahida opened this issue May 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@TabNahida
Copy link

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()
@genivia-inc
Copy link
Member

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 genivia-inc added the enhancement New feature or request label May 16, 2024
@TabNahida
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants