~glmark2-dev/glmark2/fix-no-mapbuffer

« back to all changes in this revision

Viewing changes to src/Android.mk

  • Committer: Alexandros Frantzis
  • Date: 2011-08-10 20:18:30 UTC
  • mto: This revision was merged to the branch mainline in revision 123.
  • Revision ID: alexandros.frantzis@linaro.org-20110810201830-e8u0vppjt8ui5zxe
Add android native makefiles and directory structure needed for NDK builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
LOCAL_PATH := $(call my-dir)
 
2
 
 
3
include $(CLEAR_VARS)
 
4
 
 
5
LOCAL_CPP_EXTENSION := .cc
 
6
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/libmatrix
 
7
LOCAL_MODULE := matrix
 
8
LOCAL_CPPFLAGS := -DANDROID -DUSE_GLESv2
 
9
LOCAL_SRC_FILES := libmatrix/mat.cc \
 
10
                   libmatrix/program.cc
 
11
 
 
12
include $(BUILD_STATIC_LIBRARY)
 
13
 
 
14
include $(CLEAR_VARS)
 
15
 
 
16
LOCAL_MODULE := png
 
17
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/libpng
 
18
LOCAL_SRC_FILES := libpng/png.c \
 
19
                   libpng/pngerror.c \
 
20
                   libpng/pnggccrd.c \
 
21
                   libpng/pngget.c \
 
22
                   libpng/pngmem.c \
 
23
                   libpng/pngpread.c \
 
24
                   libpng/pngread.c \
 
25
                   libpng/pngrio.c \
 
26
                   libpng/pngrtran.c \
 
27
                   libpng/pngrutil.c \
 
28
                   libpng/pngset.c \
 
29
                   libpng/pngtrans.c \
 
30
                   libpng/pngvcrd.c \
 
31
                   libpng/pngwio.c \
 
32
                   libpng/pngwrite.c \
 
33
                   libpng/pngwtran.c \
 
34
                   libpng/pngwutil.c
 
35
 
 
36
include $(BUILD_STATIC_LIBRARY)
 
37
 
 
38
include $(CLEAR_VARS)
 
39
 
 
40
LOCAL_MODULE := glmark2
 
41
LOCAL_STATIC_LIBRARIES := matrix png
 
42
LOCAL_CPPFLAGS := -DANDROID -DUSE_GLESv2 -DGLMARK_DATA_PATH=""
 
43
LOCAL_LDLIBS := -landroid -llog -lGLESv2 -lEGL -lz -lm
 
44
LOCAL_SRC_FILES := android.cpp \
 
45
                   benchmark.cpp \
 
46
                   canvas-android.cpp \
 
47
                   log.cpp \
 
48
                   mesh.cpp \
 
49
                   model.cpp \
 
50
                   options.cpp \
 
51
                   scene-build.cpp \
 
52
                   scene-bump.cpp \
 
53
                   scene-conditionals.cpp \
 
54
                   scene.cpp \
 
55
                   scene-default-options.cpp \
 
56
                   scene-effect-2d.cpp \
 
57
                   scene-function.cpp \
 
58
                   scene-grid.cpp \
 
59
                   scene-loop.cpp \
 
60
                   scene-shading.cpp \
 
61
                   scene-texture.cpp \
 
62
                   shader-source.cpp \
 
63
                   texture.cpp \
 
64
                   util.cpp
 
65
 
 
66
include $(BUILD_SHARED_LIBRARY)