<commit_before>NITC=nitc
NITLS=nitls

all: bin/model_viewer

bin/model_viewer: $(shell ${NITLS} -M src/model_viewer.nit linux)
	${NITC} src/model_viewer.nit -m linux -o $@

check: bin/model_viewer
	NIT_TESTING=true bin/model_viewer

# ---
# Android

android: bin/model_viewer.apk
bin/model_viewer.apk: $(shell ${NITLS} -M src/model_viewer.nit android) android/res/
	${NITC} src/model_viewer.nit -m android -o $@

android-release: $(shell ${NITLS} -M src/model_viewer.nit android) android/res/
	${NITC} src/model_viewer.nit -m android -o bin/model_viewer.apk --release

android/res/: art/icon.png
	make -C ../inkscape_tools/
	mkdir -p android/res/drawable-ldpi/ android/res/drawable-mdpi/ android/res/drawable-hdpi/ \
		android/res/drawable-xhdpi/ android/res/drawable-xxhdpi/ android/res/drawable-xxxhdpi/
	convert -resize 36x36   art/icon.png android/res/drawable-ldpi/icon.png
	convert -resize 48x48   art/icon.png android/res/drawable-mdpi/icon.png
	convert -resize 72x72   art/icon.png android/res/drawable-hdpi/icon.png
	convert -resize 96x96   art/icon.png android/res/drawable-xhdpi/icon.png
	convert -resize 144x144 art/icon.png android/res/drawable-xxhdpi/icon.png
	convert -resize 192x192 art/icon.png android/res/drawable-xxxhdpi/icon.png

bin/model_viewer_vr.apk: $(shell ${NITLS} -M src/model_viewer.nit android) android/res/ android/libs/cardboard.jar
	${NITC} src/model_viewer.nit -m android -m ../../lib/gamnit/depth/vr.nit -o $@

android/libs/cardboard.jar:
	mkdir -p android/libs
	curl --progress-bar -o libs/cardboard.jar \
	https://raw.githubusercontent.com/googlesamples/cardboard-java/master/CardboardSample/libs/cardboard.jar<commit_msg>model_viewer: fix path to the android project<commit_after>NITC=nitc
NITLS=nitls

all: bin/model_viewer

bin/model_viewer: $(shell ${NITLS} -M src/model_viewer.nit linux)
	${NITC} src/model_viewer.nit -m linux -o $@

check: bin/model_viewer
	NIT_TESTING=true bin/model_viewer

# ---
# Android

android: bin/model_viewer.apk
bin/model_viewer.apk: $(shell ${NITLS} -M src/model_viewer.nit android) android/res/
	${NITC} src/model_viewer.nit -m android -o $@

android-release: $(shell ${NITLS} -M src/model_viewer.nit android) android/res/
	${NITC} src/model_viewer.nit -m android -o bin/model_viewer.apk --release

android/res/: art/icon.png
	make -C ../inkscape_tools/
	mkdir -p android/res/drawable-ldpi/ android/res/drawable-mdpi/ android/res/drawable-hdpi/ \
		android/res/drawable-xhdpi/ android/res/drawable-xxhdpi/ android/res/drawable-xxxhdpi/
	convert -resize 36x36   art/icon.png android/res/drawable-ldpi/icon.png
	convert -resize 48x48   art/icon.png android/res/drawable-mdpi/icon.png
	convert -resize 72x72   art/icon.png android/res/drawable-hdpi/icon.png
	convert -resize 96x96   art/icon.png android/res/drawable-xhdpi/icon.png
	convert -resize 144x144 art/icon.png android/res/drawable-xxhdpi/icon.png
	convert -resize 192x192 art/icon.png android/res/drawable-xxxhdpi/icon.png

bin/model_viewer_vr.apk: $(shell ${NITLS} -M src/model_viewer.nit android) android/res/ android/libs/cardboard.jar
	${NITC} src/model_viewer.nit -m android -m ../../lib/gamnit/depth/vr.nit -o $@

android/libs/cardboard.jar:
	mkdir -p android/libs
	https://raw.githubusercontent.com/googlesamples/cardboard-java/master/CardboardSample/libs/cardboard.jar
	curl --progress-bar -o android/libs/cardboard.jar \
{'fraction_non_alphanumeric': 0.1392857142857143, 'fraction_numerical': 0.016666666666666666, 'mean_word_length': 4.031437125748503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7032148', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1263, 'n_words': 235}