diff --git a/src/klayout_main/klayout.rc b/src/klayout_main/klayout.rc new file mode 100644 index 000000000..039e66e80 --- /dev/null +++ b/src/klayout_main/klayout.rc @@ -0,0 +1,4 @@ + +// The application logo +0 ICON "logo.ico" + diff --git a/src/klayout_main/klayout_main.pro b/src/klayout_main/klayout_main.pro index ade7ab2e6..49b0e16cc 100644 --- a/src/klayout_main/klayout_main.pro +++ b/src/klayout_main/klayout_main.pro @@ -25,6 +25,19 @@ INCLUDEPATH += ../tl ../gsi ../db ../rdb ../laybasic ../lay ../ext ../img ../ant DEPENDPATH += ../tl ../gsi ../db ../rdb ../laybasic ../lay ../ext ../img ../ant ../lib LIBS += $$PYTHONLIBFILE $$RUBYLIBFILE -L$$DESTDIR -lklayout_tl -lklayout_gsi -lklayout_db -lklayout_rdb -lklayout_laybasic -lklayout_lay -lklayout_ant -lklayout_img -lklayout_edt -lklayout_ext -lklayout_lib +win32 { + + windres.target = klayout_rc.o + windres.depends = $$PWD/klayout.rc + windres.commands = windres $$windres.depends $$windres.target + + PRE_TARGETDEPS += klayout_rc.o + QMAKE_EXTRA_TARGETS += windres + + LIBS += $$windres.target + +} + # Note: this accounts for UI-generated headers placed into the output folders in # shadow builds: INCLUDEPATH += $$DESTDIR/laybasic $$OUT_PWD/../lay diff --git a/src/klayout_main/logo.ico b/src/klayout_main/logo.ico new file mode 100644 index 000000000..3f1646533 Binary files /dev/null and b/src/klayout_main/logo.ico differ