smalltalk
/
osmo-st-core
Archived
1
0
Fork 0

pharo: Work on the automatic fileout to pharo

Remove the PackageLoader fileInPackage statement as it is conflicting
with the export as there is no PackageLoader in Pharo. Add a Makefile
to help with invoking the export and create a compat_for_pharo.st for
the methods not provided by Pharo. The testcase is working now.
This commit is contained in:
Holger Hans Peter Freyther 2013-02-10 21:21:43 +01:00
parent 35843c3654
commit 01cfa6f4b8
3 changed files with 33 additions and 2 deletions

View File

@ -16,8 +16,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
"
PackageLoader fileInPackage: #OsmoLogging.
Osmo.LogArea subclass: LogAreaTimer [
<category: 'OsmoCore-Logging'>

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
GST_PACKAGE = gst-package
GST_CONVERT = gst-convert
CONVERT_RULES = -r'Osmo.LogManager->LogManager' \
-r'Osmo.LogArea->LogArea' \
-r'Osmo.LogLevel->LogLevel' \
-r'DateTime->DateAndTime' \
-r'(Duration milliseconds: ``@args1) -> (Duration milliSeconds: ``@args1)'
all:
$(GST_PACKAGE) --test package.xml
convert:
$(GST_CONVERT) $(CONVERT_RULES) -F squeak -f gst \
-o fileout.st compat_for_pharo.st LogArea.st Dispatcher.st Timer.st Tests.st

16
compat_for_pharo.st Normal file
View File

@ -0,0 +1,16 @@
"This is to be easily loadable on Pharo 1.4 and up"
Object extend [
addToBeFinalized [
<category: '*OsmoCore'>
"No idea how to implement it"
]
]
Semaphore extend [
signals [
<category: '*OsmoCore'>
"Used in our testcase"
^ excessSignals
]
]