]> gitweb.factorcode.org Git - factor.git/commitdiff
Nmakefile: Add default flags and add command to add the manifest to .exe
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 7 Mar 2020 05:33:26 +0000 (23:33 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 7 Mar 2020 05:33:26 +0000 (23:33 -0600)
The manifest is disabled for now, but once we fix the resolution we
should enable it.

to test:
nmake /f Nmakefile factor.exe.manifest

Right now the UI looks tiny if you compile for the factor.exe and
include the manifest.

Lastly, sorry for the WIP but it seems pretty harmless and has been
sitting in a branch for almost three years.

Nmakefile

index 7d0dd250f42abf02372f7fad015e9c7fbb60b484..f68c821101771a6c8ad0fda29a66be046629558f 100644 (file)
--- a/Nmakefile
+++ b/Nmakefile
@@ -58,6 +58,13 @@ CL_FLAGS = $(CL_FLAGS) $(CL_FLAGS_VISTA)
 PLAF_DLL_OBJS = vm\os-windows-x86.64.obj vm\cpu-x86.obj
 SUBSYSTEM_COM_FLAGS = console
 SUBSYSTEM_EXE_FLAGS = windows
+
+!ELSE
+CL_FLAGS = $(CL_FLAGS) $(CL_FLAGS_VISTA)
+PLAF_DLL_OBJS = vm\os-windows-x86.64.obj vm\cpu-x86.obj
+SUBSYSTEM_COM_FLAGS = console
+SUBSYSTEM_EXE_FLAGS = windows
+
 !ENDIF
 
 !IF DEFINED(DEBUG)
@@ -143,6 +150,9 @@ factor.com: $(EXE_OBJS) $(DLL_OBJS)
 factor.exe: $(EXE_OBJS) $(DLL_OBJS)
        link $(LINK_FLAGS) /out:factor.exe /SUBSYSTEM:$(SUBSYSTEM_EXE_FLAGS) $(EXE_OBJS) $(DLL_OBJS)
 
+factor.exe.manifest: factor.exe
+       mt -manifest factor.exe.manifest -outputresource:factor.exe;#1
+
 all: factor.com factor.exe factor.dll.lib libfactor-ffi-test.dll
 
 !ENDIF