From c150be9eb7e0d69def245d877bd66f6df87f58a1 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 21 Aug 2012 23:08:30 -0400 Subject: Get Dimension working on Android. --- jni/Android.mk | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 jni/Android.mk (limited to 'jni/Android.mk') diff --git a/jni/Android.mk b/jni/Android.mk new file mode 100644 index 0000000..1adf510 --- /dev/null +++ b/jni/Android.mk @@ -0,0 +1,80 @@ +########################################################################### +## Copyright (C) 2009-2011 Tavian Barnes ## +## ## +## This file is part of The Dimension Build Suite. ## +## ## +## The Dimension Build Suite is free software; you can redistribute it ## +## and/or modify it under the terms of the GNU General Public License as ## +## published by the Free Software Foundation; either version 3 of the ## +## License, or (at your option) any later version. ## +## ## +## The Dimension Build Suite is distributed in the hope that it will be ## +## useful, but WITHOUT ANY WARRANTY; without even the implied warranty ## +## of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## +## General Public License for more details. ## +## ## +## You should have received a copy of the GNU General Public License ## +## along with this program. If not, see . ## +########################################################################### + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := dimension +LOCAL_SRC_FILES := \ + jni.c \ + ../libdimension/camera.c \ + ../libdimension/canvas.c \ + ../libdimension/canvas_pigment.c \ + ../libdimension/checker.c \ + ../libdimension/cone.c \ + ../libdimension/cube.c \ + ../libdimension/csg.c \ + ../libdimension/dictionary.c \ + ../libdimension/error.c \ + ../libdimension/finish.c \ + ../libdimension/future.c \ + ../libdimension/geometry.c \ + ../libdimension/gradient.c \ + ../libdimension/inline.c \ + ../libdimension/interior.c \ + ../libdimension/lambertian.c \ + ../libdimension/leopard.c \ + ../libdimension/light.c \ + ../libdimension/malloc.c \ + ../libdimension/map.c \ + ../libdimension/object.c \ + ../libdimension/pattern.c \ + ../libdimension/perspective.c \ + ../libdimension/phong.c \ + ../libdimension/pigment.c \ + ../libdimension/pigment_map.c \ + ../libdimension/plane.c \ + ../libdimension/platform.c \ + ../libdimension/point_light.c \ + ../libdimension/polynomial.c \ + ../libdimension/prtree.c \ + ../libdimension/ray_trace.c \ + ../libdimension/reflection.c \ + ../libdimension/rgba16.c \ + ../libdimension/scene.c \ + ../libdimension/solid_pigment.c \ + ../libdimension/sphere.c \ + ../libdimension/texture.c \ + ../libdimension/threads.c \ + ../libdimension/timer.c \ + ../libdimension/torus.c \ + ../libdimension/triangle.c \ + ../libdimension/png-stubs.c \ + ../libdimension/gl-stubs.c +LOCAL_CFLAGS := \ + -Ilibdimension/ \ + -std=gnu99 \ + -DHAVE_UNISTD_H=1 \ + -DDMNSN_GETTID_DIRECT=1 \ + -DDMNSN_SC_NPROCESSORS_ONLN=1 \ + -DDMNSN_GETRUSAGE=1 +LOCAL_LDLIBS := -llog + +include $(BUILD_SHARED_LIBRARY) -- cgit v1.2.3