We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
xmake will support two ways of configuring working directory.
The current working directory where xmake is running, and it is also the directory where the project cache configuration .xmake is stored.
- workdir - .xmake - build
Build the output directory of the build artifacts.
build └── macosx └── x86_64 └── release ├── demo
The root directory of the project's source code, which is also the directory containing the root xmake.lua file.
- projectdir - xmake.lua
This is the behaviour of the existing version, which has never changed.
- projectdir (workdir) - build (generated) - .xmake (generated) - src - xmake.lua
$ cd projectdir $ xmake
we can set the given build directory, but the working directory is still the project root directory.
- projectdir (workdir) - .xmake (generated) - src - xmake.lua - build
$ cd projectdir $ xmake f -o ../build
We can use -P projectdir to set the given project directory and it will enable external working directory mode.
-P projectdir
Lock the current directory as the working directory, and xmake will cache the specified project directory.
- workdir - build (generated) - .xmake (generated) - projectdir - src - xmake.lua
$ cd workdir $ xmake f -P ../projectdir $ xmake
- build (generated) - workdir - .xmake (generated) - projectdir - src - xmake.lua
$ cd workdir $ xmake f -P ../projectdir -o ../build
The text was updated successfully, but these errors were encountered:
$ xmake update -s dev $ cd workdir $ xmake f -P ../projectdir $ xmake ...
Sorry, something went wrong.
@davidchisnall you can try it, I have merged into dev branch.
帮忙测试验证 xmake.lua 存在且能执行 xmake 构建
更新 xmake 之后执行 xmake f -P ../projectdir 提示重新生成 xmake.lua
No branches or pull requests
xmake will support two ways of configuring working directory.
Introduction
Working directory
The current working directory where xmake is running, and it is also the directory where the project cache configuration .xmake is stored.
Build directory (-o/--buildir)
Build the output directory of the build artifacts.
Project directory (-P/--project)
The root directory of the project's source code, which is also the directory containing the root xmake.lua file.
Internal working directory mode (default)
This is the behaviour of the existing version, which has never changed.
The working directory is the project root directory by default.
Set the other build directory outside the working directory
we can set the given build directory, but the working directory is still the project root directory.
External working directory mode (new)
We can use
-P projectdir
to set the given project directory and it will enable external working directory mode.Lock the current directory as the working directory, and xmake will cache the specified project directory.
The working directory is the current directory by default.
Set the other build directory outside the working directory
The text was updated successfully, but these errors were encountered: