BUILD: Improve rules for compiling Windows resource scripts
This commit is contained in:
parent
a3767e679e
commit
309286cfbb
4 changed files with 8 additions and 7 deletions
|
@ -156,6 +156,12 @@ endif
|
||||||
$(QUIET)$(MKDIR) $(*D)
|
$(QUIET)$(MKDIR) $(*D)
|
||||||
$(QUIET_AS)$(AS) $(ASFLAGS) $(<) -o $*.o
|
$(QUIET_AS)$(AS) $(ASFLAGS) $(<) -o $*.o
|
||||||
|
|
||||||
|
# Build rule for Windows resource files
|
||||||
|
# TODO: Support dependency tracking
|
||||||
|
%.o: %.rc
|
||||||
|
$(QUIET)$(MKDIR) $(*D)
|
||||||
|
$(QUIET_WINDRES)$(WINDRES) $(WINDRESFLAGS) $(CPPFLAGS) $(<) -o $*.o
|
||||||
|
|
||||||
ifdef USE_NASM
|
ifdef USE_NASM
|
||||||
# Build rule for NASM assembler files
|
# Build rule for NASM assembler files
|
||||||
%.o: %.asm
|
%.o: %.asm
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
# Windows specific
|
# Windows specific
|
||||||
#
|
#
|
||||||
|
|
||||||
scummvmwinres.o: $(srcdir)/icons/scummvm.ico $(DIST_FILES_THEMES) $(DIST_FILES_NETWORKING) $(DIST_FILES_ENGINEDATA) $(srcdir)/dists/scummvm.rc
|
dists/scummvm.o: $(srcdir)/icons/scummvm.ico $(DIST_FILES_THEMES) $(DIST_FILES_NETWORKING) $(DIST_FILES_ENGINEDATA) config.h $(srcdir)/base/internal_version.h
|
||||||
$(QUIET_WINDRES)$(WINDRES) -DHAVE_CONFIG_H $(WINDRESFLAGS) $(DEFINES) -I. -I$(srcdir) $(srcdir)/dists/scummvm.rc scummvmwinres.o
|
|
||||||
|
|
||||||
# Special target to create a win32 snapshot binary (for Inno Setup)
|
# Special target to create a win32 snapshot binary (for Inno Setup)
|
||||||
win32dist: all
|
win32dist: all
|
||||||
|
|
|
@ -2,10 +2,6 @@ ifdef WRAP_MALLOC
|
||||||
LDFLAGS += -Wl,--wrap,malloc -Wl,--wrap,free
|
LDFLAGS += -Wl,--wrap,malloc -Wl,--wrap,free
|
||||||
endif
|
endif
|
||||||
|
|
||||||
backends/platform/wince/PocketSCUMM.o: $(srcdir)/backends/platform/wince/PocketSCUMM.rc
|
|
||||||
$(QUIET)$(MKDIR) $(*D)
|
|
||||||
$(WINDRES) $(WINDRESFLAGS) -I$(srcdir)/backends/platform/wince $< $@
|
|
||||||
|
|
||||||
ifdef DYNAMIC_MODULES
|
ifdef DYNAMIC_MODULES
|
||||||
plugins: backends/platform/wince/stub.o backends/platform/wince/PocketSCUMM.o
|
plugins: backends/platform/wince/stub.o backends/platform/wince/PocketSCUMM.o
|
||||||
$(CXX) backends/platform/wince/stub.o backends/platform/wince/PocketSCUMM.o -L. -lscummvm -o scummvm.exe
|
$(CXX) backends/platform/wince/stub.o backends/platform/wince/PocketSCUMM.o -L. -lscummvm -o scummvm.exe
|
||||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -2786,7 +2786,7 @@ case $_host_os in
|
||||||
append_var DEFINES "-D__USE_MINGW_ANSI_STDIO=0"
|
append_var DEFINES "-D__USE_MINGW_ANSI_STDIO=0"
|
||||||
append_var LDFLAGS "-static-libgcc -static-libstdc++"
|
append_var LDFLAGS "-static-libgcc -static-libstdc++"
|
||||||
append_var LIBS "-lmingw32 -lwinmm -lgdi32"
|
append_var LIBS "-lmingw32 -lwinmm -lgdi32"
|
||||||
append_var OBJS "scummvmwinres.o"
|
append_var OBJS "dists/scummvm.o"
|
||||||
add_line_to_config_mk 'WIN32 = 1'
|
add_line_to_config_mk 'WIN32 = 1'
|
||||||
_port_mk="backends/platform/sdl/win32/win32.mk"
|
_port_mk="backends/platform/sdl/win32/win32.mk"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue