From 942ad5802aa7ce2560a797cd439d928a2a36b904 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Tue, 9 Aug 2022 00:25:36 +0200 Subject: [PATCH] use SLD image for image handling --- README.md | 6 ++++++ bin/build_base_image_diya.sh | 1 + export.st | 23 ++--------------------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 9f3b137..7c7a9e6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # DiyaSDK Base tools for Diya kernel Development + +Dependencies on Linux system + +``` +libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev +``` diff --git a/bin/build_base_image_diya.sh b/bin/build_base_image_diya.sh index 884e0e7..d85bdcd 100755 --- a/bin/build_base_image_diya.sh +++ b/bin/build_base_image_diya.sh @@ -20,6 +20,7 @@ if [ ! -e "$SRC_IMG" ]; then cd "$BASE_DIR/builder/" curl "https://get.pharo.org/$ARCH/70+vm" | bash cd "$W" + find . -name "*SDL*.so*" -exec rm -f {} \; fi cp -rf "$W/fonts" "$BASE_DIR/builder/" # chmod -R a+rw $BASE_DIR diff --git a/export.st b/export.st index 1926300..328cd5a 100644 --- a/export.st +++ b/export.st @@ -48,8 +48,6 @@ packages := #( 'System-Localization' 'STON-Core' 'Colors' - 'Graphics-Primitives' - 'Graphics-Files' 'Diya' ). @@ -66,19 +64,10 @@ ignoresClasses := { GlyphForm. ManifestGraphicsPrimitives. EllipseMidpointTracer. - GrafPort + GrafPort. + Form }. "remove some unused meothods" -Form class - removeSelector: #serviceOpenImageInWindow; - removeSelector: #openImageInWindow:; - removeSelector: #serviceImageAsBackground; - removeSelector: #setBackgroundFromImageFileNamed:; - removeSelector: #services. -Form - removeSelector: #setAsBackground; - compile: 'scaledByDisplayScaleFactor - '. AbstractFileReference removeSelector: #fileIn. FileStream @@ -98,8 +87,6 @@ PharoCommandLineHandler compile: 'runPreferences '. -GIFReadWriter class - removeSelector: #exampleAnim. Rectangle class removeSelector: #fromUser:; removeSelector: #fromUser. @@ -144,12 +131,6 @@ core addClass: (HEClass for:OSWindowPlatformSpecificHandle); addClass: (HEClass for:STCommandLineHandler); addClass: (HEClass for:FreeTypeFace); "form object support" - addClass: (HEClass for:DisplayObject); - addClass: (HEClass for:DisplayMedium); - addClass: (HEClass for:Form); - addClass: (HEClass for:ColorForm); - addClass: (HEClass for:ColorArray); - addClass: (HEClass for: AnimatedImageFrame); addClass: (HEClass for: ShortIntegerArray) .