Compile Skia with /MD and /MDD

127 views
Skip to first unread message

Heidi Kurz

unread,
Mar 10, 2021, 5:49:12 AM3/10/21
to skia-discuss
Hi together,

I have to compile Skia with this compiler switch, 
 cflags_cc += [ "/MD" ]
and 
 cflags_cc += [ "/MDd" ]

For this I want to adapt the gn/Build.gn
I have to differ between debug and release version. 
But I haven't found any possibility in the file to make this dependent from 
/MD and /MDd

Could somebody help me with this problem?

Many thanks, 
Heidi


Heidi Kurz

unread,
Mar 12, 2021, 3:03:58 AM3/12/21
to skia-discuss
Ok, I found the solution now by myself.
It can be set over the command line:
 gn gen out/Static/Debug --args="is_debug=true extra_cflags=[\"/MDd\"]"

Reply all
Reply to author
Forward
0 new messages