• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
32# 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)
38
39LOCAL_C_INCLUDES += external/collada/include
40LOCAL_C_INCLUDES += external/collada/include/1.4
41LOCAL_C_INCLUDES += frameworks/base/libs/rs
42LOCAL_C_INCLUDES += $(intermediates)
43
44LOCAL_LDLIBS := -lpthread
45LOCAL_STATIC_LIBRARIES += libRS libutils libcutils
46LOCAL_STATIC_LIBRARIES += colladadom libtinyxml libpcrecpp libpcre
47include $(BUILD_HOST_EXECUTABLE)
48