solvespace/res
whitequark 9301dec98d Use the same code for loading resources in all executables.
All of our executables need resources; e.g. the vector font is
a resource and it is necessary for generation. Before this commit,
the GUI executable loaded the resources in a nice way, and everything
else did it in a very ad-hoc, fragile way.

After this commit, all executables are placed in <build>/bin and
follow the same algorithm:
  * On Windows, resources are compiled and linked into every
    executable.
  * On Linux, resources are copied into <build>/res (which is
    tried first) and <prefix>/share/solvespace (which is tried
    second).
  * On macOS, resources are copied into <build>/res (which is
    tried first) and <build>/bin/solvespace.app/Contents/Resources
    (which is tried second).

In practice this means that we can add as many executables as we want
without duplicating lots of code. In addition, on macOS, we can
place supplementary executables into the bundle, and they can use
resources from the bundle transparently.
2016-11-28 06:18:42 +00:00
..
cocoa OS X: move resources to res/. 2016-05-18 11:24:23 +00:00
fonts Fix glyph for U+0454 є in vector font. 2016-05-20 21:42:49 +00:00
freedesktop Freedesktop: don't hardcode binary path in .desktop file. 2016-06-23 11:25:57 +00:00
icons Make "Show/hide hidden lines" a tri-state button instead. 2016-08-13 09:44:08 +00:00
shaders Add OpenGL 2 support on Windows using ANGLE. 2016-11-18 11:38:45 +00:00
threejs Three.js: allow to configure projRight/projUp. 2016-06-11 23:13:59 +00:00
win32 Implement "view → set to full scale" text window command. 2016-08-01 14:03:16 +00:00
CMakeLists.txt Use the same code for loading resources in all executables. 2016-11-28 06:18:42 +00:00
banner.txt Implement a resource system. 2016-05-18 11:24:23 +00:00