From ad69ac738932622520a3b434c7958e579c0165f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 11 Jan 2018 22:09:15 -0500 Subject: [PATCH] inkscape_tools: delete mnit based test applications MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/inkscape_tools/Makefile | 9 -- contrib/inkscape_tools/README.md | 6 - contrib/inkscape_tools/tests/app/Makefile | 19 --- contrib/inkscape_tools/tests/app/art/drawing.svg | 121 -------------------- contrib/inkscape_tools/tests/app/src/s2pn.nit | 53 --------- .../inkscape_tools/tests/app/src/s2pn_android.nit | 18 --- .../inkscape_tools/tests/app/src/s2pn_linux.nit | 18 --- 7 files changed, 244 deletions(-) delete mode 100644 contrib/inkscape_tools/tests/app/Makefile delete mode 100644 contrib/inkscape_tools/tests/app/art/drawing.svg delete mode 100644 contrib/inkscape_tools/tests/app/src/s2pn.nit delete mode 100644 contrib/inkscape_tools/tests/app/src/s2pn_android.nit delete mode 100644 contrib/inkscape_tools/tests/app/src/s2pn_linux.nit delete mode 100644 contrib/inkscape_tools/tests/packages.ini diff --git a/contrib/inkscape_tools/Makefile b/contrib/inkscape_tools/Makefile index db40075..9ca428b 100644 --- a/contrib/inkscape_tools/Makefile +++ b/contrib/inkscape_tools/Makefile @@ -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 diff --git a/contrib/inkscape_tools/README.md b/contrib/inkscape_tools/README.md index 62b9623..b279d0f 100644 --- a/contrib/inkscape_tools/README.md +++ b/contrib/inkscape_tools/README.md @@ -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 index b42c5f4..0000000 --- a/contrib/inkscape_tools/tests/app/Makefile +++ /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 index bbcb7a2..0000000 --- a/contrib/inkscape_tools/tests/app/art/drawing.svg +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - Not to extract - - - diff --git a/contrib/inkscape_tools/tests/app/src/s2pn.nit b/contrib/inkscape_tools/tests/app/src/s2pn.nit deleted file mode 100644 index c2162ff..0000000 --- a/contrib/inkscape_tools/tests/app/src/s2pn.nit +++ /dev/null @@ -1,53 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2013 Alexis Laferrière -# -# 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 index 350a5b2..0000000 --- a/contrib/inkscape_tools/tests/app/src/s2pn_android.nit +++ /dev/null @@ -1,18 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2014 Alexis Laferrière -# -# 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 index 7cc5cee..0000000 --- a/contrib/inkscape_tools/tests/app/src/s2pn_linux.nit +++ /dev/null @@ -1,18 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2014 Alexis Laferrière -# -# 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 index e69de29..0000000 -- 1.7.9.5