[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[imlib2] index

SwikiCodeRobot @> #testImlib2Index

Code

"Check X11 is actually included in the image"
self require: #FFIDynamicLibrary in: #(
	'build/node/library/node-ffi/node-ffi.st.js'
	'u8:aleReimondo/node-ffi/node-ffi.st.js'
); require: #Imlib2 in: #(
	'build/node/library/RaspberryPi/Imlib2.st.js'
	'u8:aleReimondo/RaspberryPi/Imlib2.st.js'
).!

Imlib2 current isNil ifTrue: [
	self print: '// Missing Imlib2 library'.
	^self abort
].
self print: 'Ok - Imlib2 API installed and loaded'


References