diff options
Diffstat (limited to 'frontends/windows/Makefile')
-rw-r--r-- | frontends/windows/Makefile | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/frontends/windows/Makefile b/frontends/windows/Makefile index de01ce33a..524f716fe 100644 --- a/frontends/windows/Makefile +++ b/frontends/windows/Makefile @@ -33,11 +33,15 @@ WSCFLAGS := -std=c99 -Dnswin32 -DCURL_STATICLIB -DCARES_STATICLIB -g CFLAGS += $(WSCFLAGS) LDFLAGS += $(WSCFLAGS) +# The filter and target for split messages +MESSAGES_FILTER=win +MESSAGES_TARGET=$(FRONTEND_RESOURCES_DIR) + # ---------------------------------------------------------------------------- # built-in resource setup # ---------------------------------------------------------------------------- -$(OBJROOT)/windows_resource.o: $(FRONTEND_RESOURCES_DIR)/resource.rc +$(OBJROOT)/windows_resource.o: $(FRONTEND_RESOURCES_DIR)/resource.rc $(addsuffix /Messages,$(addprefix $(MESSAGES_TARGET)/,$(MESSAGES_LANGUAGES))) $(VQ)echo " WINDRES: compiling windows resources" ${Q}$(WINDRES) $< -O coff -o $@ @@ -48,10 +52,10 @@ S_RESOURCES := windows_resource.o # ---------------------------------------------------------------------------- # sources purely for the windows build -S_FRONTEND := main.c window.c gui.c drawable.c plot.c findfile.c \ - font.c bitmap.c about.c prefs.c download.c filetype.c file.c \ +S_FRONTEND := main.c window.c gui.c clipboard.c drawable.c plot.c findfile.c \ + font.c bitmap.c about.c prefs.c download.c fetch.c file.c \ local_history.c schedule.c windbg.c pointers.c \ - corewindow.c hotlist.c cookies.c global_history.c ssl_cert.c + corewindow.c hotlist.c cookies.c global_history.c # This is the final source build list # Note this is deliberately *not* expanded here as common and image @@ -82,12 +86,11 @@ NSIS_VERBOSE := 0 endif # installer messages generation -$(OBJROOT)/messages-en: resources/FatMessages - $(VQ)echo "MSGSPLIT: Language: en Filter: win" - $(Q)$(RM) $@ - $(Q)$(SPLIT_MESSAGES) -l en -p win -f messages -o $@ $< +$(OBJROOT)/messages-en: $(MESSAGES_TARGET)/en/Messages + $(VQ)echo " MSGCP: $< $@" + $(Q)$(INSTALL) -m 644 -T $< $@ -netsurf-installer.exe: $(EXETARGET) $(WIN_RES_INS_OBJ) +netsurf-installer.exe: $(EXETARGET) $(POSTEXES) $(WIN_RES_INS_OBJ) $(VQ)echo "MAKENSIS: $@" $(Q)makensis -V$(NSIS_VERBOSE) -NOCD -DOBJROOT=$(OBJROOT) -DRESDIR=$(FRONTEND_RESOURCES_DIR) -DVERSIONMAJOR=$(VERSION_MAJ) -DVERSIONMINOR=$(VERSION_MIN) -DOUTFNAME=$@ $(FRONTEND_RESOURCES_DIR)/installer.nsi |