Home | History | Annotate | Download | only in collada
      1 # Copyright (C) 2010 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 #src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp \
     17 #src/dae/daeZAEUncompressHandler.cpp \
     18 
     19 common_SRC_FILES := \
     20     src/dae/dae.cpp \
     21     src/dae/daeArray.cpp \
     22     src/dae/daeAtomicType.cpp \
     23     src/dae/daeDatabase.cpp \
     24     src/dae/daeDocument.cpp \
     25     src/dae/daeDom.cpp \
     26     src/dae/daeElement.cpp \
     27     src/dae/daeError.cpp \
     28     src/dae/daeErrorHandler.cpp \
     29     src/dae/daeIDRef.cpp \
     30     src/dae/daeIOPluginCommon.cpp \
     31     src/dae/daeMemorySystem.cpp \
     32     src/dae/daeMetaAny.cpp \
     33     src/dae/daeMetaAttribute.cpp \
     34     src/dae/daeMetaCMPolicy.cpp \
     35     src/dae/daeMetaChoice.cpp \
     36     src/dae/daeMetaElement.cpp \
     37     src/dae/daeMetaElementAttribute.cpp \
     38     src/dae/daeMetaGroup.cpp \
     39     src/dae/daeMetaSequence.cpp \
     40     src/dae/daeRawResolver.cpp \
     41     src/dae/daeRefCountedObj.cpp \
     42     src/dae/daeSIDResolver.cpp \
     43     src/dae/daeStandardURIResolver.cpp \
     44     src/dae/daeStringRef.cpp \
     45     src/dae/daeStringTable.cpp \
     46     src/dae/daeTinyXMLPlugin.cpp \
     47     src/dae/daeURI.cpp \
     48     src/dae/daeUtils.cpp \
     49     src/dae/domAny.cpp \
     50     src/modules/stdErrPlugin/stdErrPlugin.cpp \
     51     src/modules/STLDatabase/daeSTLDatabase.cpp \
     52     src/1.4/dom/domAccessor.cpp \
     53     src/1.4/dom/domAnimation.cpp \
     54     src/1.4/dom/domAnimation_clip.cpp \
     55     src/1.4/dom/domAsset.cpp \
     56     src/1.4/dom/domBind_material.cpp \
     57     src/1.4/dom/domBool_array.cpp \
     58     src/1.4/dom/domBox.cpp \
     59     src/1.4/dom/domCOLLADA.cpp \
     60     src/1.4/dom/domCamera.cpp \
     61     src/1.4/dom/domCapsule.cpp \
     62     src/1.4/dom/domCg_connect_param.cpp \
     63     src/1.4/dom/domCg_newarray_type.cpp \
     64     src/1.4/dom/domCg_newparam.cpp \
     65     src/1.4/dom/domCg_param_type.cpp \
     66     src/1.4/dom/domCg_sampler1D.cpp \
     67     src/1.4/dom/domCg_sampler2D.cpp \
     68     src/1.4/dom/domCg_sampler3D.cpp \
     69     src/1.4/dom/domCg_samplerCUBE.cpp \
     70     src/1.4/dom/domCg_samplerDEPTH.cpp \
     71     src/1.4/dom/domCg_samplerRECT.cpp \
     72     src/1.4/dom/domCg_setarray_type.cpp \
     73     src/1.4/dom/domCg_setparam.cpp \
     74     src/1.4/dom/domCg_setparam_simple.cpp \
     75     src/1.4/dom/domCg_setuser_type.cpp \
     76     src/1.4/dom/domCg_surface_type.cpp \
     77     src/1.4/dom/domChannel.cpp \
     78     src/1.4/dom/domCommon_color_or_texture_type.cpp \
     79     src/1.4/dom/domCommon_float_or_param_type.cpp \
     80     src/1.4/dom/domCommon_newparam_type.cpp \
     81     src/1.4/dom/domCommon_transparent_type.cpp \
     82     src/1.4/dom/domConstants.cpp \
     83     src/1.4/dom/domController.cpp \
     84     src/1.4/dom/domConvex_mesh.cpp \
     85     src/1.4/dom/domCylinder.cpp \
     86     src/1.4/dom/domEffect.cpp \
     87     src/1.4/dom/domEllipsoid.cpp \
     88     src/1.4/dom/domExtra.cpp \
     89     src/1.4/dom/domFloat_array.cpp \
     90     src/1.4/dom/domForce_field.cpp \
     91     src/1.4/dom/domFx_annotate_common.cpp \
     92     src/1.4/dom/domFx_annotate_type_common.cpp \
     93     src/1.4/dom/domFx_basic_type_common.cpp \
     94     src/1.4/dom/domFx_clearcolor_common.cpp \
     95     src/1.4/dom/domFx_cleardepth_common.cpp \
     96     src/1.4/dom/domFx_clearstencil_common.cpp \
     97     src/1.4/dom/domFx_code_profile.cpp \
     98     src/1.4/dom/domFx_colortarget_common.cpp \
     99     src/1.4/dom/domFx_depthtarget_common.cpp \
    100     src/1.4/dom/domFx_include_common.cpp \
    101     src/1.4/dom/domFx_newparam_common.cpp \
    102     src/1.4/dom/domFx_profile_abstract.cpp \
    103     src/1.4/dom/domFx_sampler1D_common.cpp \
    104     src/1.4/dom/domFx_sampler2D_common.cpp \
    105     src/1.4/dom/domFx_sampler3D_common.cpp \
    106     src/1.4/dom/domFx_samplerCUBE_common.cpp \
    107     src/1.4/dom/domFx_samplerDEPTH_common.cpp \
    108     src/1.4/dom/domFx_samplerRECT_common.cpp \
    109     src/1.4/dom/domFx_stenciltarget_common.cpp \
    110     src/1.4/dom/domFx_surface_common.cpp \
    111     src/1.4/dom/domFx_surface_format_hint_common.cpp \
    112     src/1.4/dom/domFx_surface_init_common.cpp \
    113     src/1.4/dom/domFx_surface_init_cube_common.cpp \
    114     src/1.4/dom/domFx_surface_init_from_common.cpp \
    115     src/1.4/dom/domFx_surface_init_planar_common.cpp \
    116     src/1.4/dom/domFx_surface_init_volume_common.cpp \
    117     src/1.4/dom/domGeometry.cpp \
    118     src/1.4/dom/domGl_hook_abstract.cpp \
    119     src/1.4/dom/domGl_pipeline_settings.cpp \
    120     src/1.4/dom/domGl_sampler1D.cpp \
    121     src/1.4/dom/domGl_sampler2D.cpp \
    122     src/1.4/dom/domGl_sampler3D.cpp \
    123     src/1.4/dom/domGl_samplerCUBE.cpp \
    124     src/1.4/dom/domGl_samplerDEPTH.cpp \
    125     src/1.4/dom/domGl_samplerRECT.cpp \
    126     src/1.4/dom/domGles_basic_type_common.cpp \
    127     src/1.4/dom/domGles_newparam.cpp \
    128     src/1.4/dom/domGles_pipeline_settings.cpp \
    129     src/1.4/dom/domGles_sampler_state.cpp \
    130     src/1.4/dom/domGles_texcombiner_argumentAlpha_type.cpp \
    131     src/1.4/dom/domGles_texcombiner_argumentRGB_type.cpp \
    132     src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp \
    133     src/1.4/dom/domGles_texcombiner_commandRGB_type.cpp \
    134     src/1.4/dom/domGles_texcombiner_command_type.cpp \
    135     src/1.4/dom/domGles_texenv_command_type.cpp \
    136     src/1.4/dom/domGles_texture_constant_type.cpp \
    137     src/1.4/dom/domGles_texture_pipeline.cpp \
    138     src/1.4/dom/domGles_texture_unit.cpp \
    139     src/1.4/dom/domGlsl_newarray_type.cpp \
    140     src/1.4/dom/domGlsl_newparam.cpp \
    141     src/1.4/dom/domGlsl_param_type.cpp \
    142     src/1.4/dom/domGlsl_setarray_type.cpp \
    143     src/1.4/dom/domGlsl_setparam.cpp \
    144     src/1.4/dom/domGlsl_setparam_simple.cpp \
    145     src/1.4/dom/domGlsl_surface_type.cpp \
    146     src/1.4/dom/domIDREF_array.cpp \
    147     src/1.4/dom/domImage.cpp \
    148     src/1.4/dom/domInputGlobal.cpp \
    149     src/1.4/dom/domInputLocal.cpp \
    150     src/1.4/dom/domInputLocalOffset.cpp \
    151     src/1.4/dom/domInstanceWithExtra.cpp \
    152     src/1.4/dom/domInstance_camera.cpp \
    153     src/1.4/dom/domInstance_controller.cpp \
    154     src/1.4/dom/domInstance_effect.cpp \
    155     src/1.4/dom/domInstance_force_field.cpp \
    156     src/1.4/dom/domInstance_geometry.cpp \
    157     src/1.4/dom/domInstance_light.cpp \
    158     src/1.4/dom/domInstance_material.cpp \
    159     src/1.4/dom/domInstance_node.cpp \
    160     src/1.4/dom/domInstance_physics_material.cpp \
    161     src/1.4/dom/domInstance_physics_model.cpp \
    162     src/1.4/dom/domInstance_rigid_body.cpp \
    163     src/1.4/dom/domInstance_rigid_constraint.cpp \
    164     src/1.4/dom/domInt_array.cpp \
    165     src/1.4/dom/domLibrary_animation_clips.cpp \
    166     src/1.4/dom/domLibrary_animations.cpp \
    167     src/1.4/dom/domLibrary_cameras.cpp \
    168     src/1.4/dom/domLibrary_controllers.cpp \
    169     src/1.4/dom/domLibrary_effects.cpp \
    170     src/1.4/dom/domLibrary_force_fields.cpp \
    171     src/1.4/dom/domLibrary_geometries.cpp \
    172     src/1.4/dom/domLibrary_images.cpp \
    173     src/1.4/dom/domLibrary_lights.cpp \
    174     src/1.4/dom/domLibrary_materials.cpp \
    175     src/1.4/dom/domLibrary_nodes.cpp \
    176     src/1.4/dom/domLibrary_physics_materials.cpp \
    177     src/1.4/dom/domLibrary_physics_models.cpp \
    178     src/1.4/dom/domLibrary_physics_scenes.cpp \
    179     src/1.4/dom/domLibrary_visual_scenes.cpp \
    180     src/1.4/dom/domLight.cpp \
    181     src/1.4/dom/domLines.cpp \
    182     src/1.4/dom/domLinestrips.cpp \
    183     src/1.4/dom/domLookat.cpp \
    184     src/1.4/dom/domMaterial.cpp \
    185     src/1.4/dom/domMatrix.cpp \
    186     src/1.4/dom/domMesh.cpp \
    187     src/1.4/dom/domMorph.cpp \
    188     src/1.4/dom/domName_array.cpp \
    189     src/1.4/dom/domNode.cpp \
    190     src/1.4/dom/domP.cpp \
    191     src/1.4/dom/domParam.cpp \
    192     src/1.4/dom/domPhysics_material.cpp \
    193     src/1.4/dom/domPhysics_model.cpp \
    194     src/1.4/dom/domPhysics_scene.cpp \
    195     src/1.4/dom/domPlane.cpp \
    196     src/1.4/dom/domPolygons.cpp \
    197     src/1.4/dom/domPolylist.cpp \
    198     src/1.4/dom/domProfile_CG.cpp \
    199     src/1.4/dom/domProfile_COMMON.cpp \
    200     src/1.4/dom/domProfile_GLES.cpp \
    201     src/1.4/dom/domProfile_GLSL.cpp \
    202     src/1.4/dom/domRigid_body.cpp \
    203     src/1.4/dom/domRigid_constraint.cpp \
    204     src/1.4/dom/domRotate.cpp \
    205     src/1.4/dom/domSampler.cpp \
    206     src/1.4/dom/domScale.cpp \
    207     src/1.4/dom/domSkew.cpp \
    208     src/1.4/dom/domSkin.cpp \
    209     src/1.4/dom/domSource.cpp \
    210     src/1.4/dom/domSphere.cpp \
    211     src/1.4/dom/domSpline.cpp \
    212     src/1.4/dom/domTapered_capsule.cpp \
    213     src/1.4/dom/domTapered_cylinder.cpp \
    214     src/1.4/dom/domTargetableFloat.cpp \
    215     src/1.4/dom/domTargetableFloat3.cpp \
    216     src/1.4/dom/domTechnique.cpp \
    217     src/1.4/dom/domTranslate.cpp \
    218     src/1.4/dom/domTriangles.cpp \
    219     src/1.4/dom/domTrifans.cpp \
    220     src/1.4/dom/domTristrips.cpp \
    221     src/1.4/dom/domTypes.cpp \
    222     src/1.4/dom/domVertices.cpp \
    223     src/1.4/dom/domVisual_scene.cpp
    224 
    225 pcre_intermediatesInc := $(call intermediates-dir-for,STATIC_LIBRARIES,libpcre,HOST,)/pcre/include
    226 pcrecpp_intermediatesInc := $(call intermediates-dir-for,STATIC_LIBRARIES,libpcrecpp,HOST,)/pcrecpp/include
    227 common_generated_headers := \
    228     $(pcre_intermediatesInc)/pcre.h \
    229     $(pcre_intermediatesInc)/config.h \
    230     $(pcrecpp_intermediatesInc)/pcre_stringpiece.h \
    231     $(pcrecpp_intermediatesInc)/pcrecpparg.h
    232 
    233 common_C_INCLUDES += \
    234     $(LOCAL_PATH)/include \
    235     $(LOCAL_PATH)/include/1.4 \
    236     external/tinyxml \
    237     external/pcre \
    238     $(pcre_intermediatesInc) \
    239     $(pcrecpp_intermediatesInc)
    240 
    241 # For the host
    242 # ========================================================
    243 include $(CLEAR_VARS)
    244 
    245 LOCAL_MODULE_TAGS := optional
    246 LOCAL_CFLAGS += -DNO_BOOST -DDOM_INCLUDE_TINYXML -DNO_ZAE
    247 LOCAL_CFLAGS += -fPIC
    248 LOCAL_GENERATED_SOURCES := $(common_generated_headers)
    249 
    250 LOCAL_SRC_FILES := $(common_SRC_FILES)
    251 LOCAL_C_INCLUDES += $(common_C_INCLUDES)
    252 LOCAL_STATIC_LIBRARIES := libtinyxml
    253 LOCAL_MODULE:= colladadom
    254 include $(BUILD_HOST_STATIC_LIBRARY)
    255