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:
parent
35843c3654
commit
01cfa6f4b8
|
@ -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'>
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
]
|
||||
]
|
Reference in New Issue