Giter Club home page Giter Club logo

cpp-premake-template's Introduction

C++ Premake Template

The root includes a global configuration in premake5.lua, and individual projects within the packages/ folder.

This template is developed on a Linux machine so problems may occur on a Windows system when using Visual Studio.

Premake5 structure based on TheCherno's Hazel structure.

File Structure

  • ./premake5.lua: Global configuration.
  • ./packages/: Home for individual projects.
  • ./bin/: Output for compiled binaries.
  • ./bin-int/: Intermediary file storage.

Building

You may develop using a Makefile or a Visual Studio solution, both of which must be manually generated using premake5.

Download and install premake5 for your system from https://premake.github.io/download.

In the root directory (the directory with the global premake5.lua file), run:

premake5 gmake2    # For Makefiles
                   # gmake should work too but based on previous experiences,
                   # gmake2 worked best

or

premake5 vs       # For Visual Studio solutions

All packages under packages/ will automatically be included in the build process, assuming they have their own premake5.lua defined (see packages/DemoApp).

Build Configurations

Three build configurations cater to different needs:

  • Debug: Symbols, debug preprocess variables, no compiler optimizations—for rapid development.
  • Release: Symbols, production preprocess variables, compiler optimizations—for production-like inspections.
  • Dist: No symbols, identical to Release—for the final public release.

cpp-premake-template's People

Contributors

forvais avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.