aboutsummaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2023-11-19 15:03:40 +0000
committerSimon Tatham <anakin@pobox.com>2023-11-19 15:04:50 +0000
commit595338fa43d40f356f04b8704f72f060651669e8 (patch)
treee4ca8f772b90acfe5d29459ad99bb45ec8f246c2 /range.c
parentcb8dcc34f7c656b8603a510617e35492a0d16b8c (diff)
downloadpuzzles-595338fa43d40f356f04b8704f72f060651669e8.zip
puzzles-595338fa43d40f356f04b8704f72f060651669e8.tar.gz
puzzles-595338fa43d40f356f04b8704f72f060651669e8.tar.bz2
puzzles-595338fa43d40f356f04b8704f72f060651669e8.tar.xz
Windows: leave puzzles.rc out of auxiliary GUI tools.
There's no reason to put the .rc file into developer tools like galaxieseditor at all. Its current job is to add an icon, and those tools don't have any. I'm about to add version information, and they won't have that either (in particular, no description string like the games do). The CLI developer tools already don't include puzzles.rc, and GUI dev tools are more like those than they are like puzzles. puzzles.rc was being added to an aux GUI tool's source file list by get_platform_puzzle_extra_source_files(), which is called for aux GUI tools as well as for puzzles proper. However, it's not as simple as just eliminating that call, because on Unix, we _do_ need to add the same extra source files to GUI dev tools that we do for puzzles, because gtk.c contains external references to either an array of the puzzle's icons or an empty array indicating that there aren't any, so _something_ has to provide that. So instead, get_platform_puzzle_extra_source_files now takes an extra argument saying whether the program is a real puzzle or an aux tool; windows.cmake leaves out puzzles.rc in the latter case, but unix.cmake puts the icon array in unconditionally.
Diffstat (limited to 'range.c')
0 files changed, 0 insertions, 0 deletions