inkscape_tools: delete mnit based test applications
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 12 Jan 2018 03:09:15 +0000 (22:09 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 25 Jan 2018 14:01:17 +0000 (09:01 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/inkscape_tools/Makefile
contrib/inkscape_tools/README.md
contrib/inkscape_tools/tests/app/Makefile [deleted file]
contrib/inkscape_tools/tests/app/art/drawing.svg [deleted file]
contrib/inkscape_tools/tests/app/src/s2pn.nit [deleted file]
contrib/inkscape_tools/tests/app/src/s2pn_android.nit [deleted file]
contrib/inkscape_tools/tests/app/src/s2pn_linux.nit [deleted file]
contrib/inkscape_tools/tests/packages.ini [deleted file]

index db40075..9ca428b 100644 (file)
@@ -2,13 +2,4 @@ all:
        mkdir -p bin
        nitc --dir bin src/svg_to_png_and_nit.nit src/svg_to_icons.nit
 
-check: test-tinks test-app
-
-test-app: bin/svg_to_png_and_nit
-       make -C tests/app
-
-test-tinks: bin/svg_to_png_and_nit
-       mkdir -p tests/tinks/images
-       bin/svg_to_png_and_nit --assets tests/tinks/ --src tests/tinks/ ../tinks/art/drawing.svg
-
 .PHONY: bin/svg_to_png_and_nit
index 62b9623..b279d0f 100644 (file)
@@ -40,9 +40,3 @@ It produces two files:
 4. Execute `bin/svg_to_png_and_nit drawing.svg`
 5. From your code, import the generated source file at `src/drawing.nit`.
 6. Use the class `DrawingImages` and its attributes.
-
-## Examples
-
-The minimal test in `tests/app/` shows the basic usage of this tool.
-
-The Dino example `../../../../examples/mnit_dino` also uses this tool and is a more complete and practical example.
diff --git a/contrib/inkscape_tools/tests/app/Makefile b/contrib/inkscape_tools/tests/app/Makefile
deleted file mode 100644 (file)
index b42c5f4..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-all: images icons linux
-
-linux:
-       mkdir -p bin
-       ../../../../bin/nitc -o bin/s2pn src/s2pn_linux.nit
-
-android:
-       mkdir -p bin
-       ../../../../bin/nitc -o bin/s2pn.apk src/s2pn_android.nit
-
-images:
-       mkdir -p assets/images
-       ../../bin/svg_to_png_and_nit art/drawing.svg --assets assets --src src
-
-icons:
-       mkdir -p res1 res2 res3
-       #../../bin/svg_to_icons art/icon.svg --large --out res1
-       ../../bin/svg_to_icons art/drawing.svg --large --out res2 --id 0circle
-       #../../bin/svg_to_icons art/icon.svg --android --out res3
diff --git a/contrib/inkscape_tools/tests/app/art/drawing.svg b/contrib/inkscape_tools/tests/app/art/drawing.svg
deleted file mode 100644 (file)
index bbcb7a2..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="744.09448819"
-   height="1052.3622047"
-   id="svg2"
-   version="1.1"
-   inkscape:version="0.48.4 r9939"
-   sodipodi:docname="drawing.svg">
-  <defs
-     id="defs4" />
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2"
-     inkscape:zoom="0.7"
-     inkscape:cx="121.41831"
-     inkscape:cy="436.77983"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="false"
-     inkscape:window-width="1962"
-     inkscape:window-height="1240"
-     inkscape:window-x="2718"
-     inkscape:window-y="1285"
-     inkscape:window-maximized="0" />
-  <metadata
-     id="metadata7">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title />
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <g
-     inkscape:label="Layer 1"
-     inkscape:groupmode="layer"
-     id="layer1">
-    <rect
-       style="fill:#0caf0c;fill-opacity:1;stroke:#3b3b3b;stroke-width:1.58335221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
-       id="0square"
-       width="98.416649"
-       height="98.416649"
-       x="83.827385"
-       y="181.54672"
-       inkscape:label="#rect2985" />
-    <path
-       sodipodi:type="arc"
-       style="fill:#ff7900;fill-opacity:1;stroke:#3b3b3b;stroke-width:2.50000000000000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
-       id="0circle"
-       sodipodi:cx="556.42859"
-       sodipodi:cy="290.21933"
-       sodipodi:rx="85"
-       sodipodi:ry="85"
-       d="m 641.42859,290.21933 a 85,85 0 1 1 -170,0 85,85 0 1 1 170,0 z"
-       transform="translate(-124.28571,-85.714286)"
-       inkscape:label="#path2987" />
-    <path
-       transform="translate(-405.71428,218.57143)"
-       d="m 641.42859,290.21933 a 85,85 0 1 1 -170,0 85,85 0 1 1 170,0 z"
-       sodipodi:ry="85"
-       sodipodi:rx="85"
-       sodipodi:cy="290.21933"
-       sodipodi:cx="556.42859"
-       id="0circles0"
-       style="fill:#0095ff;fill-opacity:1;stroke:#3b3b3b;stroke-width:2.50000000000000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
-       sodipodi:type="arc"
-       inkscape:label="#path2989" />
-    <path
-       sodipodi:type="arc"
-       style="fill:#0095ff;fill-opacity:1;stroke:#3b3b3b;stroke-width:3.33612041999999986;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;opacity:0.71604937999999996"
-       id="0circles1"
-       sodipodi:cx="556.42859"
-       sodipodi:cy="290.21933"
-       sodipodi:rx="85"
-       sodipodi:ry="85"
-       d="m 641.42859,290.21933 a 85,85 0 1 1 -170,0 85,85 0 1 1 170,0 z"
-       transform="matrix(0.74937343,0,0,0.74937343,-104.82992,291.3081)"
-       inkscape:label="#path2991" />
-    <path
-       transform="matrix(0.39849624,0,0,0.39849624,214.6939,393.13944)"
-       d="m 641.42859,290.21933 a 85,85 0 1 1 -170,0 85,85 0 1 1 170,0 z"
-       sodipodi:ry="85"
-       sodipodi:rx="85"
-       sodipodi:cy="290.21933"
-       sodipodi:cx="556.42859"
-       id="0circles2"
-       style="fill:#0095ff;fill-opacity:1;stroke:#3b3b3b;stroke-width:6.27358492000000023;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;opacity:0.28806584000000002"
-       sodipodi:type="arc"
-       inkscape:label="#path2993" />
-    <g
-       id="g3767">
-      <text
-         sodipodi:linespacing="125%"
-         id="text3763"
-         y="912.59924"
-         x="83.155045"
-         style="font-size:54.63201141px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
-         xml:space="preserve"><tspan
-           y="912.59924"
-           x="83.155045"
-           id="tspan3765"
-           sodipodi:role="line">Not to extract</tspan></text>
-    </g>
-  </g>
-</svg>
diff --git a/contrib/inkscape_tools/tests/app/src/s2pn.nit b/contrib/inkscape_tools/tests/app/src/s2pn.nit
deleted file mode 100644 (file)
index c2162ff..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2013 Alexis Laferrière <alexis.laf@xymus.net>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import drawing
-
-redef class App
-
-       var img_set: DrawingImages is noinit
-
-       init do super
-
-       redef fun on_create
-       do
-               super
-
-               img_set = new DrawingImages
-               img_set.load_all(self)
-       end
-
-       redef fun frame_core( display )
-       do
-               display.clear(0.2, 0.2, 0.2)
-
-               display.blit(img_set.square, 0, 0)
-               display.blit(img_set.circle, 100, 100)
-               display.blit(img_set.circles[0], 0, 100)
-               display.blit(img_set.circles[1], 0, 200)
-               display.blit(img_set.circles[2], 0, 300)
-       end
-
-       redef fun input( ie )
-       do
-               if ie isa QuitEvent then
-                       quit = true
-                       return true
-               end
-
-               return false
-       end
-end
diff --git a/contrib/inkscape_tools/tests/app/src/s2pn_android.nit b/contrib/inkscape_tools/tests/app/src/s2pn_android.nit
deleted file mode 100644 (file)
index 350a5b2..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2014 Alexis Laferrière <alexis.laf@xymus.net>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import s2pn
-import mnit::android
diff --git a/contrib/inkscape_tools/tests/app/src/s2pn_linux.nit b/contrib/inkscape_tools/tests/app/src/s2pn_linux.nit
deleted file mode 100644 (file)
index 7cc5cee..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2014 Alexis Laferrière <alexis.laf@xymus.net>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import s2pn
-import mnit::linux
diff --git a/contrib/inkscape_tools/tests/packages.ini b/contrib/inkscape_tools/tests/packages.ini
deleted file mode 100644 (file)
index e69de29..0000000