[Vm-dev] VM Maker: CMakeVMMaker-EstebanLorenzano.174.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Aug 1 10:05:18 UTC 2012
Esteban Lorenzano uploaded a new version of CMakeVMMaker to project VM Maker:
http://source.squeak.org/VMMaker/CMakeVMMaker-EstebanLorenzano.174.mcz
==================== Summary ====================
Name: CMakeVMMaker-EstebanLorenzano.174
Author: EstebanLorenzano
Time: 1 August 2012, 12:05:01.565 pm
UUID: 1b426f67-3e63-4b47-a534-40fc56de4f65
Ancestors: CMakeVMMaker-EstebanLorenzano.173
- introduce platform-specificness for 3rdparty libs
=============== Diff against CMakeVMMaker-EstebanLorenzano.173 ===============
Item was added:
+ CMFreetype2 subclass: #CMOSXFreetype2
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'CMakeVMMaker-Libs'!
Item was added:
+ ----- Method: CMOSXFreetype2 class>>platformName (in category 'as yet unclassified') -----
+ platformName
+ ^'iOS'!
Item was removed:
- ----- Method: CMThirdpartyLibrary class>>named: (in category 'as yet unclassified') -----
- named: aName
-
- ^ (self allSubclasses detect: [:cls | cls canonicalName = aName])
- new!
Item was added:
+ ----- Method: CMThirdpartyLibrary class>>named:config: (in category 'as yet unclassified') -----
+ named: aName config: aCPlatformConfig
+
+ ^ (self allSubclasses detect: [:cls |
+ cls canonicalName = aName and: [ cls supports: aCPlatformConfig ] ])
+ new!
Item was added:
+ ----- Method: CMThirdpartyLibrary class>>platformName (in category 'as yet unclassified') -----
+ platformName
+ ^nil!
Item was added:
+ ----- Method: CMThirdpartyLibrary class>>supports: (in category 'testing') -----
+ supports: aConfig
+ "default implementation"
+ ^ self platformName = aConfig platformName !
Item was changed:
----- Method: CPlatformConfig>>addThirdpartyLibrary: (in category 'thirdparty libs') -----
addThirdpartyLibrary: libName
| libs lib |
libs := self thirdpartyLibs.
lib := libs detect: [:each | each canonicalName = libName] ifNone: [ nil ].
lib ifNil: [
+ lib := (CMThirdpartyLibrary named: libName config: self).
- lib := (CMThirdpartyLibrary named: libName).
"add dependencies first, so thirpartyLibs collection will be naturally dependency sorted"
lib dependencies do: [:dep | self addThirdpartyLibrary: dep ].
libs add: lib.
].
^ lib!
Item was added:
+ ----- Method: CPlatformConfig>>platformName (in category 'accessing') -----
+ platformName
+ "override in subclass"
+ self subclassResponsibility !
More information about the Vm-dev
mailing list