Comments (10)
用 set_policy("windows.manifest.uac", "invoker")
和 add_files("src/*.manifest")
https://xmake.io/#/guide/build_policies?id=windowsmanifestuac
#1241 (comment)
#4369 (comment)
https://github.com/xmake-io/xmake/blob/dev/xmake/rules/platform/windows/manifest/xmake.lua
from xmake.
也就是,只能复制那个PerMonitorDPIAware.manifest出来放$(projectdir)下来用了?
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
In other words, you can only copy the PerMonitorDPIAware.manifest and put it in $(projectdir) for use?
from xmake.
rule 里面走 target:add("files", "xxx.manifest")
也可以。。
如果非要自己 add ldflags,和参考上面链接里面的代码实现。。你 add 的方式也不对
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
You can also use target:add("files", "xxx.manifest")
in the rule. .
If you have to add ldflags yourself, please refer to the code implementation in the link above. . The way you add is also wrong
from xmake.
试了这样添加确实是可以的,只不过有一个target 要admin,又想permonitordpiaware,目前这样似乎是不行的。我见有代码注释描述只要有manifest就取消uac
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
It is indeed possible to add it this way, but there is a target that requires admin, and I want to monitordpiaware. This seems to be not possible at the moment. I saw a code comment describing how to cancel uac as long as there is a manifest.
from xmake.
https://github.com/xmake-io/xmake/blob/dev/xmake/rules/platform/windows/manifest/xmake.lua
当初是为了解决这个 #4362
不行,就自己 add ldflags 好了,你之前的配置语法不对而已。参考这个自己改下就行了
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
https://github.com/xmake-io/xmake/blob/dev/xmake/rules/platform/windows/manifest/xmake.lua
It was originally to solve this #4362
No, just add ldflags yourself. Your previous configuration syntax was just wrong. Just refer to this and change it yourself.
from xmake.
OK
from xmake.
Related Issues (20)
- xmake将xmake test程序的stdout输出存入/tmp导致/tmp目录被塞满 HOT 13
- Allow wildcards in target:add("files", ...) HOT 1
- 设置本地编译器`gnu-rm`实际变成`gcc` HOT 7
- 在if判断内通过set_config设置qt路径无效 HOT 3
- xmake fails to find host macOS toolchain HOT 5
- 使用远程库构建时updating repositories阶段存在版本管理相关报错导致失败 HOT 3
- xmake test 在windows平台无法正确同时设置多个add_test("test",{run_timeout(1000)}) HOT 9
- gnu-rm下,汇编文件week函数无法被同名文件覆盖 HOT 4
- xrepo 很多 action 都失效了,会提示找不到 xmake.lua HOT 5
- mktemp usage messages during configure HOT 2
- Error-prone xmake behaviour when locating system packages HOT 2
- wrong include flag when using system llvm HOT 2
- Build failure when output of `uname -m` contains a space (e.g. on PowerPC Macs) HOT 2
- msvc 编译模块报错:attempt to concatenate a nil value (local 'bmifile') HOT 3
- cmakelists 生成不支持编译器 flags HOT 1
- Add os.timestamp api HOT 7
- CSharp with mono
- Incorrect PKG_CONFIG_PATH path separator with meson HOT 12
- tests/projects/package/llvm_dev/xmake.lua 示例无法正常构建,报错LINK : fatal error LNK1181: 无法打开输入文件“MLIRAMX.lib” HOT 1
- Generated Cmakelists file seems to be wrong when you use conditional add_files() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.