GithubHelp home page GithubHelp logo

natnat-mc / filesymbol Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8 KB

Small tool to embed files and directory hierarchies into C sources, to be compiled and available as symbols for any language that can read them

License: MIT License

Lua 100.00%
lua c bundler

filesymbol's Introduction

filesymbol

Small tool to embed files and directory hierarchies into C sources, to be compiled and available as symbols for any language that can read them

Usage

filesymbol -o OUTFILE [-i HEADERFILE] [-r RAWFILE NAME]... [-R RAWFILE NAME]... [-f FILE NAME]... FILES...
	-o --out    OUTFILE      - set output file (.c)
	-i --header HEADERFILE   - set output header file (.h)
	-r --rawlen RAWFILE NAME - add raw file as name, with length
	-R --raw    RAWFILE NAME - add raw file as name, without length
	-f --file   FILE NAME    - add file hierarchy to output
	FILES                    - add file hierarchy to output, named by path

Examples

Package the filesymbol, and bin directories, along with the rockspec:

filesymbol -o filesymbol.c -i filesymbol.h bin filesymbol *.rockspec

Package the readme as the readme symbol, and compile it to the readme.o object file, without anything else:

filesymbol -o readme.c -R README.md readme
gcc -c readme.c -o readme.o

Installing

TODO

filesymbol's People

Contributors

natnat-mc avatar

Watchers

 avatar  avatar

filesymbol's Issues

Don't generate helpers unless we need them

Don't generate any helpers unless we need them.
That is, if we only request raw files, we don't need the whole header, only stddef.h, and especially not the static filesymbol_noinit.

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.