Alex Sakhartchouk | 17bd28b | 2011-02-11 17:51:44 -0800 | [diff] [blame] | 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 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
| 17 | # Host executable |
| 18 | include $(CLEAR_VARS) |
| 19 | LOCAL_MODULE := a3dconvert |
| 20 | LOCAL_MODULE_TAGS := optional |
| 21 | LOCAL_CFLAGS += -DANDROID_RS_SERIALIZE |
| 22 | # Needed for colladaDom |
| 23 | LOCAL_CFLAGS += -DNO_BOOST -DDOM_INCLUDE_TINYXML -DNO_ZAE |
| 24 | |
| 25 | LOCAL_SRC_FILES := \ |
| 26 | a3dconvert.cpp \ |
| 27 | ObjLoader.cpp \ |
| 28 | ColladaConditioner.cpp \ |
| 29 | ColladaGeometry.cpp \ |
| 30 | ColladaLoader.cpp |
| 31 | |
Alex Sakhartchouk | eb6146e | 2011-06-02 12:23:52 -0700 | [diff] [blame] | 32 | # Needed to maintain libRS dependencies |
| 33 | intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,HOST,) |
| 34 | librs_generated_headers := \ |
| 35 | $(intermediates)/rsgApiStructs.h \ |
| 36 | $(intermediates)/rsgApiFuncDecl.h |
| 37 | LOCAL_GENERATED_SOURCES := $(librs_generated_headers) |
Alex Sakhartchouk | 17bd28b | 2011-02-11 17:51:44 -0800 | [diff] [blame] | 38 | |
| 39 | LOCAL_C_INCLUDES += external/collada/include |
| 40 | LOCAL_C_INCLUDES += external/collada/include/1.4 |
| 41 | LOCAL_C_INCLUDES += frameworks/base/libs/rs |
Alex Sakhartchouk | eb6146e | 2011-06-02 12:23:52 -0700 | [diff] [blame] | 42 | LOCAL_C_INCLUDES += $(intermediates) |
Alex Sakhartchouk | 17bd28b | 2011-02-11 17:51:44 -0800 | [diff] [blame] | 43 | |
Iliyan Malchev | 10fc4be | 2011-10-19 22:50:26 -0700 | [diff] [blame] | 44 | LOCAL_LDLIBS := -ldl -lpthread |
Alex Sakhartchouk | eb6146e | 2011-06-02 12:23:52 -0700 | [diff] [blame] | 45 | LOCAL_STATIC_LIBRARIES += libRS libutils libcutils |
Alex Sakhartchouk | 17bd28b | 2011-02-11 17:51:44 -0800 | [diff] [blame] | 46 | LOCAL_STATIC_LIBRARIES += colladadom libtinyxml libpcrecpp libpcre |
| 47 | include $(BUILD_HOST_EXECUTABLE) |