Building Premake

Purpose

This document discribes the steps needed to build Premake that is used for building wxFormBuilder. NOTE: This is custom source for Premake until the patch needed gets accepted into the official Premake repository.

Steps

  1. Download the wxFormBuilder modified Premake source from here
  2. Download the official Premake for your system here. Premake is self-hosting; you will need a copy of Premake installed in order to build the source code.
  3. Use one of the following commands to create the project files:
      $ premake --target gnu     # to create Makefiles
      $ premake --target vs2005  # Visual Studio 2005
      $ premake --target vs2003  # Visual Studio 2003
      $ premake --target vs2002  # Visual Studio 2002
      $ premake --target vs6     # Visual C++ 6
      $ premake --target cb-gcc  # Code::Blocks with GCC
    
  4. You now have a makefile/solution/workspace for your toolset; build as usual.
  5. Copy the newly created premake executable to the 'sdk/premake' directory under wxFormBuilder's source tree.
  6. Run create_build_files.sh from the root of wxFormBuilder's source tree.

Notes