diff options
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | ico/sciteco-48.png | bin | 0 -> 9379 bytes | |||
-rw-r--r-- | ico/sciteco.ico | bin | 0 -> 12206 bytes | |||
-rw-r--r-- | src/Makefile.am | 8 | ||||
-rw-r--r-- | src/sciteco.rc | 4 |
5 files changed, 24 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3ddf295..fe06358 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,18 @@ AC_PROG_INSTALL # Required by the Scintilla build process: AC_CHECK_TOOL(AR, ar) +# Check for Windows resource compiler and define +# WIN32 conditional +case $host in +*-mingw*) + LT_LANG([Windows Resource]) + AM_CONDITIONAL(WIN32, [true]) + ;; +*) + AM_CONDITIONAL(WIN32, [false]) + ;; +esac + # Emscripten uses Clang as well AM_CONDITIONAL(CLANG, [$CXX --version | $GREP -E "clang|Emscripten" >/dev/null]) diff --git a/ico/sciteco-48.png b/ico/sciteco-48.png Binary files differnew file mode 100644 index 0000000..37423cc --- /dev/null +++ b/ico/sciteco-48.png diff --git a/ico/sciteco.ico b/ico/sciteco.ico Binary files differnew file mode 100644 index 0000000..e36a6ab --- /dev/null +++ b/ico/sciteco.ico diff --git a/src/Makefile.am b/src/Makefile.am index 692ac1d..739aefd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -68,10 +68,18 @@ sciteco_minimal_LDADD = libsciteco-base.a \ @SCINTILLA_PATH@/bin/scintilla.a bin_PROGRAMS = sciteco +sciteco_SOURCES = nodist_sciteco_SOURCES = $(nodist_sciteco_minimal_SOURCES) \ symbols-scintilla.cpp symbols-scilexer.cpp sciteco_LDADD = $(sciteco_minimal_LDADD) +# For MinGW: Compile in resource (contains the icon) +if WIN32 +sciteco_SOURCES += sciteco.rc +.rc.o: + @RC@ $< $@ +endif + CLEANFILES = $(BUILT_SOURCES) \ symbols-scintilla.cpp symbols-scilexer.cpp diff --git a/src/sciteco.rc b/src/sciteco.rc new file mode 100644 index 0000000..66646ae --- /dev/null +++ b/src/sciteco.rc @@ -0,0 +1,4 @@ +/* + * This will be SciTECO's application icon: + */ +DEFAULT ICON "../ico/sciteco.ico" |