-
-
Notifications
You must be signed in to change notification settings - Fork 491
dynareadout: update url and add py-bind config #8623
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
28fa477
dynareadout: refactor package configuration and add Python support
luadebug 1ba893f
fix(dynareadout): update boost dependency to disable filesystem suppo…
luadebug a757e45
fix(dynareadout): enable filesystem support for boost on macOS
luadebug b9d37f3
fix(dynareadout): add boost dependency for macOS support in C++ target
luadebug 98368da
[WIP]improve xmake port, add py-bind opt
Willaaaaaaa db8d257
improve xmake.lua
Willaaaaaaa 5b05c52
update xmake.lua
Willaaaaaaa fa017bb
fix mac
star-hengxing 3d30ff4
fix windows
star-hengxing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| set_project("dynareadout") | ||
| add_rules("mode.debug", "mode.release") | ||
|
|
||
| option("build_cpp", {default = true}) | ||
| option("build_python", {default = false}) | ||
| option("profiling", {default = false, defines = "PROFILING"}) | ||
|
|
||
| target("dynareadout") | ||
| set_kind("$(kind)") | ||
| set_languages("ansi") | ||
| add_options("profiling") | ||
| add_files("src/*.c") | ||
| if not has_config("profiling") then | ||
| remove_files("src/profiling.c") | ||
| end | ||
| add_headerfiles("src/*.h") | ||
| if is_kind("shared") then | ||
| add_rules("utils.symbols.export_all") | ||
| end | ||
| target_end() | ||
|
|
||
| if has_config("build_cpp", "build_python") then | ||
| if is_plat("macosx") then | ||
| add_requires("boost", {configs = {filesystem = true}}) | ||
| end | ||
| target("dynareadout_cpp") | ||
| set_kind("$(kind)") | ||
| set_languages("cxx17") | ||
| add_deps("dynareadout") | ||
| add_includedirs("src") | ||
| add_files("src/cpp/*.cpp") | ||
| add_headerfiles("src/cpp/*.hpp") | ||
| if is_kind("shared") then | ||
| add_rules("utils.symbols.export_all", {export_classes = true}) | ||
| end | ||
| if is_plat("macosx") then | ||
| add_packages("boost") | ||
| end | ||
| target_end() | ||
| end | ||
|
|
||
| if has_config("build_python") then | ||
| add_requires("python 3.x", "pybind11") | ||
| target("pybind11_module") | ||
| set_languages("cxx17") | ||
| add_deps("dynareadout_cpp") | ||
| add_packages("python", "pybind11") | ||
| add_rules("python.module") | ||
| set_basename("dynareadout" .. (is_mode("debug") and "_d" or "")) | ||
| add_options("profiling") | ||
| add_files("src/python/*.cpp") | ||
| add_headerfiles("src/python/*.hpp") | ||
| add_includedirs("src", "src/cpp") | ||
| add_rpathdirs("@executable_path") | ||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.