mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Get the version at make time, not qmake time
Let's see how many tries it will take me to get this one right... The name of the .dmg needs to be determined when running make, not qmake. Otherwise we'd have to force the user to run qmake every time version.h changes. This looks better. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									5477c1ffa0
								
							
						
					
					
						commit
						03f4089acb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -7,7 +7,7 @@ exists(.git/HEAD): { | ||||||
|     GIT_HEAD = .git/HEAD |     GIT_HEAD = .git/HEAD | ||||||
|     VERSION_SCRIPT = $$PWD/scripts/get-version |     VERSION_SCRIPT = $$PWD/scripts/get-version | ||||||
|     # always use linux here -------------------vvv    so we get the true full version |     # always use linux here -------------------vvv    so we get the true full version | ||||||
|     FULL_VERSION = $$system("$$VERSION_SCRIPT linux") |     FULL_VERSION = "`$$VERSION_SCRIPT linux`" | ||||||
|     version_h.depends = $$VERSION_SCRIPT |     version_h.depends = $$VERSION_SCRIPT | ||||||
|     version_h.commands = echo \\$${LITERAL_HASH}define VERSION_STRING \\\"`$$VERSION_SCRIPT $$VER_OS`\\\" > ${QMAKE_FILE_OUT} |     version_h.commands = echo \\$${LITERAL_HASH}define VERSION_STRING \\\"`$$VERSION_SCRIPT $$VER_OS`\\\" > ${QMAKE_FILE_OUT} | ||||||
|     version_h.input = GIT_HEAD |     version_h.input = GIT_HEAD | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue