Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.
/ risgo Public archive

a simple c++ resource compiler (embed data/strings as constants)

License

Notifications You must be signed in to change notification settings

d-led/risgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

risgo

Build status Build Status Go Report Card

a simple cross-platform C++ resource compiler

embed data / strings as constants in source

C++ implementation: ris

usage

basic usage:

risgo <path_to>/<resources>.yml

Given the following input

header: "examples/resource.h"
source: "examples/resource.cpp"
namespace: "test"
class: "res"
resources:
  -
    name: "string_test"
    source: "plain text"
    source_type: "string"
  -
    name: "binary_file_test"
    source: "test.bin"
    source_type: "file"

the files examples/resource.h and .cpp will be generated, where test::res::string_test() will return plain text and test::res::binary_file_test() will return the binary contents of test.bin (read relative to the input YAML file).

More help on template and output overrides and a template example: risgo --help

build

  • checkout in $GOPATH/src/<user>
  • Linux/Mac: make test
  • Windows: make.bat

credits

About

a simple c++ resource compiler (embed data/strings as constants)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published