added version and icon res
This commit is contained in:
		@@ -335,10 +335,11 @@ endif()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if(WIN32)
 | 
					if(WIN32)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						# add version and icon
 | 
				
			||||||
 | 
						set(TIC80_RES_SRC ${CMAKE_CURRENT_SOURCE_DIR}/build/windows/tic/tic80.rc)
 | 
				
			||||||
	set(TIC80_RES ${CMAKE_CURRENT_BINARY_DIR}/tic80res.obj)
 | 
						set(TIC80_RES ${CMAKE_CURRENT_BINARY_DIR}/tic80res.obj)
 | 
				
			||||||
 | 
						add_custom_command(OUTPUT ${TIC80_RES} 
 | 
				
			||||||
    add_custom_command(OUTPUT ${TIC80_RES} 
 | 
							COMMAND windres -i ${TIC80_RES_SRC} -o ${TIC80_RES})
 | 
				
			||||||
    	COMMAND windres ${CMAKE_CURRENT_SOURCE_DIR}/build/mingw/res.rc ${TIC80_RES})
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	add_executable(tic80 WIN32 ${TIC80_SRC} ${TIC80_RES})
 | 
						add_executable(tic80 WIN32 ${TIC80_SRC} ${TIC80_RES})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										34
									
								
								build/windows/tic/tic80.rc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								build/windows/tic/tic80.rc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
				
			|||||||
 | 
					101 ICON "icon.ico"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1 VERSIONINFO
 | 
				
			||||||
 | 
						FILEVERSION 0,60,3,0
 | 
				
			||||||
 | 
						PRODUCTVERSION 0,60,3,0
 | 
				
			||||||
 | 
						FILEFLAGSMASK 0x3fL
 | 
				
			||||||
 | 
					#ifdef _DEBUG
 | 
				
			||||||
 | 
						FILEFLAGS 0x1L
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
						FILEFLAGS 0x0L
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
						FILEOS 0x40004L
 | 
				
			||||||
 | 
						FILETYPE 0x0L
 | 
				
			||||||
 | 
						FILESUBTYPE 0x0L
 | 
				
			||||||
 | 
					BEGIN
 | 
				
			||||||
 | 
						BLOCK "StringFileInfo"
 | 
				
			||||||
 | 
						BEGIN
 | 
				
			||||||
 | 
							BLOCK "040904E4"
 | 
				
			||||||
 | 
							BEGIN
 | 
				
			||||||
 | 
								VALUE "CompanyName", "Nesbox"
 | 
				
			||||||
 | 
								VALUE "FileDescription", "TIC-80"
 | 
				
			||||||
 | 
								VALUE "FileVersion", "0.60.3.0"
 | 
				
			||||||
 | 
								VALUE "InternalName", "tic80.exe"
 | 
				
			||||||
 | 
								VALUE "LegalCopyright", "http://tic.computer (C) 2017"
 | 
				
			||||||
 | 
								VALUE "OriginalFilename", "tic80.exe"
 | 
				
			||||||
 | 
								VALUE "ProductName", "TIC-80"
 | 
				
			||||||
 | 
								VALUE "ProductVersion", "0.60.3.0"
 | 
				
			||||||
 | 
							END
 | 
				
			||||||
 | 
						END
 | 
				
			||||||
 | 
						BLOCK "VarFileInfo"
 | 
				
			||||||
 | 
						BEGIN
 | 
				
			||||||
 | 
							VALUE "Translation", 0x409, 1252
 | 
				
			||||||
 | 
						END
 | 
				
			||||||
 | 
					END
 | 
				
			||||||
		Reference in New Issue
	
	Block a user