Knowledgebase:
How to accelerate Ninja builds with IncrediBuild
Posted by Yoni Davidson on 15 June 2017 01:29 PM
Overview:

Incredibuild can accelerate Ninja builds in 2 ways:
  1. Running the ninja builds from Visual Studio IDE or command line as part of Visual Studio build.
  2. Running the ninja build directly from the command line using the ninja build command.
Running the ninja builds from Visual Studio IDE or command line
  1. Browse to [IncrediBuild installation folder]\Profiles
  2. Locate the chromium.ib_profile.xml
  3. If you start the build from the command line, (BuildConsole command), use the /profile directive to specify a profile for IncrediBuild to use. You can rename chromium.ib_profile.xml to ninja.xml and add the following switch: /profile=ninja.xml
    Please make sure to specify a full path to the profile file or copy the profile file to the same location from which you start your build.
  4. If you are building from within the Visual Studio IDE, rename chromium.ib_profile.xml to the following format: [solution name].ib_profile.xml. For example, if your Solution name is "MySln.sln" the profile should be: MySln.ib_profile.xml. Please make sure to copy the profile file to the same folder in which your .sln file resides. This profile will be automatically loaded by IncrediBuild once you build this Solution.
Running the ninja build directly from the command line using the ninja build command
  1. If you start the build from the command line, (BuildConsole command), use the /profile directive to specify a profile for IncrediBuild to use. You can rename chromium.ib_profile.xml to ninja.xml and add the following switch: /profile=ninja.xml
  2. The command that should be used is: Buildconsole /command=”<ninja command>”/profile=”ninja.xml
    Just make sure to either place the ninja.xml in the same location from which you start the build or to specify a full path.


Important note:

In order to run Ninja builds, please make sure that the Dev Tools license package is present and allocated to the initiator machine. If the license package will not be present, the profile file will not be used and the build wont be accelerated.
If you dont have this package - please contact: sales@incredibuild.com so they can issue a temp license for you to try.

(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako incredibuild.kayako.com