Coder Social home page Coder Social logo

command line conversion error about xmake HOT 10 CLOSED

fxliang avatar fxliang commented on August 18, 2024
command line conversion error

from xmake.

Comments (10)

waruqi avatar waruqi commented on August 18, 2024

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.

fxliang avatar fxliang commented on August 18, 2024

也就是,只能复制那个PerMonitorDPIAware.manifest出来放$(projectdir)下来用了?

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 18, 2024

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.

waruqi avatar waruqi commented on August 18, 2024

rule 里面走 target:add("files", "xxx.manifest") 也可以。。

如果非要自己 add ldflags,和参考上面链接里面的代码实现。。你 add 的方式也不对

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 18, 2024

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.

fxliang avatar fxliang commented on August 18, 2024

试了这样添加确实是可以的,只不过有一个target 要admin,又想permonitordpiaware,目前这样似乎是不行的。我见有代码注释描述只要有manifest就取消uac

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 18, 2024

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.

waruqi avatar waruqi commented on August 18, 2024

https://github.com/xmake-io/xmake/blob/dev/xmake/rules/platform/windows/manifest/xmake.lua

当初是为了解决这个 #4362

不行,就自己 add ldflags 好了,你之前的配置语法不对而已。参考这个自己改下就行了

target:add("ldflags", "/manifest:embed", {("/manifestuac:level='%s' uiAccess='%s'"):format(level_maps[level], ui)}, {force = true, expand = false})

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 18, 2024

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.

target:add("ldflags", "/manifest:embed", {("/manifestuac:level='%s' uiAccess='%s'"):format(level_maps[level], ui)}, {force = true, expand = false})

from xmake.

fxliang avatar fxliang commented on August 18, 2024

OK

from xmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.