Giter VIP home page Giter VIP logo

occ's Introduction

occ

occ: the overcomplicated compiler

Build tools saves time for the programmer but are not strictly necessary. They are therefore always going to be adding unnecessary complexity by definition that could easily blow out of proportion. The goal of occ is to be as useful as possible while being mindful of complexity. Occ rejects the makefile design, to have a turing complete language (script) with build instructions. Instead occ relies on standardized occ.project files in JSON format and tracks your installed projects for you.

Occ focuses on C-like languages. For instance, it separates the concepts of header and source code files, and it assumes gcc-compatible parsing of compiler flags like -o and -H. Currently only Unix systems are supported.

Quick Start

  • occ.project specifies the build config for a project. See librcd's for an example.
  • src/ contains source code, include/ exported headers, and libs/ external libraries with their own build scripts.
  • occ -x will index the current directory as a project with the same name as the directory. The name is global, and used for dependency management.
  • occ -c -m <target> will build a particular target (specified in occ.project), often "debug" or "release".
  • Preprocessor and object file caches are stored in ~/.config/occ/. occ -cc/-cd/-ch will clean them.
  • Run occ -h to see all available flags.

occ's People

Contributors

simonlindholm avatar cajlarsson avatar

Watchers

James Cloos avatar  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.