mirror of https://gitlab.com/nakst/essence
Enable building and using font_editor on Windows MSYS platform
This commit is contained in:
parent
6276f65be4
commit
9dc4da39e1
|
@ -1142,7 +1142,11 @@ void DoCommand(const char *l) {
|
|||
CallSystem("mv bin/installer_archive.dat root/Installer\\ Data/archive.dat");
|
||||
CallSystem("mv bin/installer_metadata.dat root/Installer\\ Data/metadata.dat");
|
||||
} else if (0 == strcmp(l, "font-editor")) {
|
||||
#ifdef __MSYS__
|
||||
BUILD_UTILITY("font_editor", "-Wl,-subsystem,windows -Wno-unused-parameter -mwindows", "");
|
||||
#else
|
||||
BUILD_UTILITY("font_editor", "-lX11 -Wno-unused-parameter", "");
|
||||
#endif
|
||||
CallSystem("bin/font_editor res/Fonts/Bitmap\\ Sans\\ Regular\\ 9.font");
|
||||
} else if (0 == strcmp(l, "config")) {
|
||||
#ifdef __MSYS__
|
||||
|
|
|
@ -5,7 +5,11 @@
|
|||
// TODO Extensions: binary search, shifting glyphs in editor, undo/redo.
|
||||
|
||||
#define UI_IMPLEMENTATION
|
||||
#ifdef __MSYS__
|
||||
#define UI_WINDOWS
|
||||
#else
|
||||
#define UI_LINUX
|
||||
#endif
|
||||
#include "luigi.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Reference in New Issue