ubisoft / Sharpmake

Sharpmake is an open-source C#-based solution for generating project definition files, such as Visual Studio projects and solutions, GNU makefiles, Xcode projects, etc.
Apache License 2.0
935 stars 171 forks source link

Unable to setup OutputType per target #299

Closed dsmtE closed 1 year ago

dsmtE commented 1 year ago

Hello,

I'm trying to build a library for several platforms (NX, x64, Scarlett, Prospero, ...). I need to have a Dll for x64 and a static library for NX, but I'm not able to do it, it seems to take only the output type specified in the class project.

I have a custom target with Sharpmake.OutputType in its fields (base on this tutorial : https://github.com/ubisoft/Sharpmake/wiki/Custom-Targets)

Where and how should I configure that ? (in ConfigureAll method ?)

I have tried naively conf.Output = target.OutputType; but obviously Sharpmake.OutputType and Sharpmake.Project.Configuration.OutputType aren't compatible at all.

Thanks in advance, Enguerrand DE SMET (Gameplay programmer at Ubisoft on Just Dance)

jspelletier commented 1 year ago

Hi, Since you work at ubisoft please use the internal Microsoft team channel for Sharpmake. We will be able to give out much more information and paste you code directly from our engines. You should also use our internal sharpmake version on gitlab as well.

Thanks Closing this and waiting for you to repost internally.