https://github.com/markusfisch/cpprc
C++ resource compiler
https://github.com/markusfisch/cpprc
Last synced: 12 months ago
JSON representation
C++ resource compiler
- Host: GitHub
- URL: https://github.com/markusfisch/cpprc
- Owner: markusfisch
- License: unlicense
- Created: 2010-12-12T19:54:01.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2021-04-04T15:40:00.000Z (about 5 years ago)
- Last Synced: 2023-03-11T13:38:02.959Z (over 3 years ago)
- Language: C++
- Homepage: http://markusfisch.de/Cpprc
- Size: 6.84 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cpprc
=====
cpprc generates a C++ source file (along with the corresponding header
file) that embeds any given data file and provides a Resource class which
gives access to this data. The Resource class can be created in two flavours:
one using STL streams, the other is using WxWidgets streams.
If you know "qtrc" of the famous QT toolkit, then you know what this tool
is doing too.
Makefile Integration
--------------------
If you are using Makefiles and (at least) a nix-like environment and have
your resources in a subdirectory called say "data", you can do something
like this in your Makefile:
all: resources $(PROGRAM)
resources:
if ! [ -f Resources.cpp ] || \
[ "`find data/ -newer Resources.cpp`" ]; then \
cpprc -f wxWidgets -o Resources `find data/ -type f`; \
fi