Template format - mrtrizer/FlappyTools GitHub Wiki

Template can be placed to project dir (not implemented yet), or you can use one of default templates for next targets:

  • Qt5 - qt
  • CMake - cmake
  • iOS - ios
  • Android - android

You can inject any fields from config.json of your project to template or it's name. Supported next syntax of template injections:

field injection:

{!<blocks>.<field>!}

example:

{!qt.libs!}

single line python expression:

{?<expression>?}

example:

{?qt["libs"]?}

if condition block (nested conditions are not supported yet)

{?IF <python expression>?}
<body>
{?ENDIF?}

example:

{?IF not console_mode?}
    return GLUTMgr::mainLoop();
{?ENDIF?}
{?IF console_mode?}
    return 0;
{?ENDIF?}

ifdef condition block:

{?IFDEF <python expression>?}
<body>
{?ENDIF?}

example:

{?IFDEF qt ?}
{? "LIBS += " + qt["libs"] if "libs" in qt else "" ?}
{? "QMAKE_CXXFLAGS += " + qt["cxxflags"] if "cxxflags" in qt else "" ?}
{?ENDIF?}
⚠️ **GitHub.com Fallback** ⚠️