[Vm-dev] VM Maker: CMakeVMMaker-GuillermoPolito.208.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jun 19 12:04:37 UTC 2013


Guillermo Polito uploaded a new version of CMakeVMMaker to project VM Maker:
http://source.squeak.org/VMMaker/CMakeVMMaker-GuillermoPolito.208.mcz

==================== Summary ====================

Name: CMakeVMMaker-GuillermoPolito.208
Author: GuillermoPolito
Time: 19 June 2013, 2:04:03.863 pm
UUID: 570f3504-7464-4024-9f1c-c730c06a95d1
Ancestors: CMakeVMMaker-GuillermoPolito.207

moving to filesystem

=============== Diff against CMakeVMMaker-GuillermoPolito.207 ===============

Item was changed:
  ----- Method: CMThirdpartyLibrary>>generateFor: (in category 'generating cmake file') -----
  generateFor: aVMGenerator
  
  	| libDir stream contents |
  	
  	vmGen := aVMGenerator.
  	
  	gen := CMakeGenerator new
  		output: (String new writeStream).
  	
  	libDir := (aVMGenerator thirdpartyDir / self canonicalName) ensureDirectory.
  
  	stream := String new writeStream.
  	
  	self generate.
  
  	stream nextPutAll: (vmGen config fixLineEndsOf: gen output contents).
  
  	contents := stream contents. 
  	
  	(self isFile: (libDir asFileReference / gen outputFileName) fullName hasContents: contents) ifFalse: [
  		"contents changed, update the file. Because fucking cmake will force rebuild everything if we change its modification date
  		without changing its contents"
+ 		(FileStream forceNewFileNamed: (libDir asFileReference / gen outputFileName)) nextPutAll: contents; close.
- 		(libDir forceNewFileNamed: gen outputFileName) nextPutAll: contents; close.
  		].
  	
  
  	vmGen addSubdirectory:  vmGen thirdpartyDirName , '/' , self canonicalName.
  	self defineGlobalTargets.
  	!



More information about the Vm-dev mailing list