Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > resoptions


resoptions

The resoptions function passes arguments directly to the resource compiler command line without translation.

#!lua
resoptions { "options" }

If a project includes multiple calls to resoptions the lists are concatenated, in the order in which they appear in the script.

Applies To

Solutions, projects, configurations

Parameters

options is a list of resource compiler flags and options, specific to a particular compiler.

Examples

Use pkg-config style configuration when building on Linux with GCC. Build options are always compiler specific and should be targeted to a particular toolset.

#!lua
configuration { "linux", "gmake" }
  resoptions { "`wx-config --cxxflags`", "-ansi", "-pedantic" }
Clone this wiki locally