blob: f85c70be61749d846272eefa22ff7a04027d36d7 [file] [log] [blame]
Alex Sakhartchouk17bd28b2011-02-11 17:51:44 -08001# Copyright (C) 2011 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17# Host executable
18include $(CLEAR_VARS)
19LOCAL_MODULE := a3dconvert
20LOCAL_MODULE_TAGS := optional
21LOCAL_CFLAGS += -DANDROID_RS_SERIALIZE
22# Needed for colladaDom
23LOCAL_CFLAGS += -DNO_BOOST -DDOM_INCLUDE_TINYXML -DNO_ZAE
24
25LOCAL_SRC_FILES := \
26 a3dconvert.cpp \
27 ObjLoader.cpp \
28 ColladaConditioner.cpp \
29 ColladaGeometry.cpp \
30 ColladaLoader.cpp
31
Alex Sakhartchoukeb6146e2011-06-02 12:23:52 -070032# Needed to maintain libRS dependencies
33intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,HOST,)
34librs_generated_headers := \
35 $(intermediates)/rsgApiStructs.h \
36 $(intermediates)/rsgApiFuncDecl.h
37LOCAL_GENERATED_SOURCES := $(librs_generated_headers)
Alex Sakhartchouk17bd28b2011-02-11 17:51:44 -080038
39LOCAL_C_INCLUDES += external/collada/include
40LOCAL_C_INCLUDES += external/collada/include/1.4
41LOCAL_C_INCLUDES += frameworks/base/libs/rs
Alex Sakhartchoukeb6146e2011-06-02 12:23:52 -070042LOCAL_C_INCLUDES += $(intermediates)
Alex Sakhartchouk17bd28b2011-02-11 17:51:44 -080043
Iliyan Malchev10fc4be2011-10-19 22:50:26 -070044LOCAL_LDLIBS := -ldl -lpthread
Alex Sakhartchoukeb6146e2011-06-02 12:23:52 -070045LOCAL_STATIC_LIBRARIES += libRS libutils libcutils
Alex Sakhartchouk17bd28b2011-02-11 17:51:44 -080046LOCAL_STATIC_LIBRARIES += colladadom libtinyxml libpcrecpp libpcre
47include $(BUILD_HOST_EXECUTABLE)