Skip to content

Commit b202a16

Browse files
authored
Merge pull request #59 from bgilbert/windres-cleanup
Simplify nip2-icon.o build
2 parents 9f935d1 + bcf657f commit b202a16

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ po/POTFILES
3030
fred
3131
po/Makefile.in.in
3232
src/.deps/
33-
src/dummy.c
3433
src/gtksheet-marshal.c
3534
src/gtksheettypebuiltins.c
3635
src/lex.c
3736
src/nip2
38-
src/nip2-icon.rc
3937
src/parse.c
4038
src/parse.h
4139
stamp-h1

po/POTFILES.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ src/parse.c
4040
src/managedgvalue.c
4141
src/conversion.c
4242
src/trace.c
43-
src/dummy.c
4443
src/gtkutil.c
4544
src/slider.c
4645
src/action.c

src/Makefile.am

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ nip2_SOURCES = \
184184
plotwindow.h \
185185
model.c \
186186
model.h \
187-
nip2-icon.rc \
188187
option.c \
189188
option.h \
190189
optionview.c \
@@ -296,6 +295,11 @@ nip2_SOURCES = \
296295
workspaceview.c \
297296
workspaceview.h
298297

298+
if OS_WIN32
299+
nip2_SOURCES += \
300+
nip2-icon.rc
301+
endif
302+
299303
helpindex.h:
300304
./makehelpindex.pl $(prefix) > helpindex.h
301305
nipmarshal.h:
@@ -304,17 +308,9 @@ nipmarshal.c:
304308
echo "#include \"nipmarshal.h\"" > nipmarshal.c
305309
glib-genmarshal --prefix=nip --body nipmarshal.list >> nipmarshal.c
306310

307-
nip2-icon.rc:
308-
echo 1 ICON \"nip2-icon.ico\" > nip2-icon.rc
309-
310311
.rc.o:
311-
if OS_WIN32
312312
cp ${top_srcdir}/share/nip2/data/nip2-icon.ico .
313313
${WINDRES} $< -o $@
314-
else
315-
echo "int poop () {}" >dummy.c
316-
$(CC) -c dummy.c -o $@
317-
endif
318314

319315
# we have to replace the standard .y.c rule: we are a bison-only GLR parser,
320316
# so we can't use autoconf's preferred -y yacc-compatibility stuff

src/nip2-icon.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1 ICON "nip2-icon.ico"

0 commit comments

Comments
 (0)