Simple objcopy-style binary packing tool with multiple source file support. So far only supports gcc and clang.
This program is written in V.
objbinpack -o (OUTPUT) -l (LANGUAGE) [varname=]path/to/file.ext [[varname2]=path/to/file_2.ext ...]
objbinpack -o main.o -l cpp file.vert frag_file=file.frag
-h= Show help-o path/to/output.o= Output File-l language= Intermediate language before compilation[varname=]path/to/file.ext= Path to the file, with optional variable name ( default to the file name if not specified )
c= C, your standard C linkage ( default )
extern uint8_t* mydata_data;
extern size_t mydata_length;
cpp= C++, namespace-style
namespace mydata
{
extern uint8_t* data;
extern size_t length;
}
CXX- C++ compiler to be used ifcppis used, defaults tog++CC- C++ compiler to be used ifcppis used, defaults togccOFLAGS- Compiler flags
- V toolchain ( tested on 0.4.10 2bd2d00 )
- GNU Make
- Git
- Clone the repository
git clone https://github.com/PSWGameWorkID/objbinpack
- Enter the repository directory
cd objbinpack
- Compile
make
- Install ( optional )
sudo make install
tools/printstdio.cppA testing tool to dump stdin file tostdio.infile. You can plug the executable asCXXorCCand it will dump the generated source code.
All part of the project is under GNU General Public License 3.0 unless specified otherwise, see LICENSE