| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # --------------------------------------- |
| 4 | # First project |
| 5 | # |
| 6 | # Build DRM2 core library |
| 7 | # |
| 8 | # Output: libdrm2.so |
| 9 | # --------------------------------------- |
| 10 | include $(CLEAR_VARS) |
| 11 | |
| 12 | common_SRC_FILES := \ |
| 13 | src/util/ustl-1.0/bktrace.cpp \ |
| 14 | src/util/ustl-1.0/memblock.cpp \ |
| 15 | src/util/ustl-1.0/ofstream.cpp \ |
| 16 | src/util/ustl-1.0/ualgobase.cpp \ |
| 17 | src/util/ustl-1.0/unew.cpp \ |
| 18 | src/util/ustl-1.0/cmemlink.cpp \ |
| 19 | src/util/ustl-1.0/memlink.cpp \ |
| 20 | src/util/ustl-1.0/sistream.cpp \ |
| 21 | src/util/ustl-1.0/ubitset.cpp \ |
| 22 | src/util/ustl-1.0/ustdxept.cpp \ |
| 23 | src/util/ustl-1.0/fstream.cpp \ |
| 24 | src/util/ustl-1.0/mistream.cpp \ |
| 25 | src/util/ustl-1.0/sostream.cpp \ |
| 26 | src/util/ustl-1.0/uexception.cpp \ |
| 27 | src/util/ustl-1.0/ustring.cpp \ |
| 28 | src/util/xml/DomExpatAgent.cpp \ |
| 29 | src/util/xml/ExpatWrapper.cpp \ |
| 30 | src/util/xml/XMLDocumentImpl.cpp \ |
| 31 | src/util/xml/XMLElementImpl.cpp \ |
| 32 | src/util/domcore/CharacterDataImpl.cpp \ |
| 33 | src/util/domcore/ElementImpl.cpp \ |
| 34 | src/util/domcore/NodeListImpl.cpp \ |
| 35 | src/util/domcore/DocumentImpl.cpp \ |
| 36 | src/util/domcore/NodeImpl.cpp \ |
| 37 | src/util/domcore/TextImpl.cpp \ |
| 38 | src/util/domcore/DOMException.cpp \ |
| 39 | src/util/domcore/NodeIterator.cpp \ |
| 40 | src/util/crypto/DrmCrypto.cpp \ |
| 41 | src/rights/RoManager.cpp \ |
| 42 | src/rights/Asset.cpp \ |
| 43 | src/rights/Ro.cpp \ |
| 44 | src/rights/OperationPermission.cpp \ |
| 45 | src/rights/Right.cpp \ |
| 46 | src/rights/Constraint.cpp \ |
| 47 | src/drmmanager/DrmManager.cpp \ |
| 48 | src/dcf/DrmDcfCommon.cpp \ |
| 49 | src/dcf/DrmDcfContainer.cpp \ |
| 50 | src/dcf/DrmIStream.cpp \ |
| 51 | src/dcf/DrmRawContent.cpp \ |
| 52 | src/roap/RoapMessageHandler.cpp \ |
| 53 | src/roap/Registration.cpp |
| 54 | |
| 55 | ifeq ($(TARGET_ARCH),arm) |
| 56 | LOCAL_CFLAGS += -fstrict-aliasing -fomit-frame-pointer |
| 57 | endif |
| 58 | |
| 59 | common_CFLAGS := -W -g -DPLATFORM_ANDROID |
| 60 | |
| 61 | common_C_INCLUDES +=\ |
| 62 | $(LOCAL_PATH)/include \ |
| 63 | $(LOCAL_PATH)/src/util/ustl-1.0 \ |
| 64 | external/expat/lib \ |
| 65 | external/openssl \ |
| 66 | external/openssl/include |
| 67 | |
| 68 | LOCAL_SRC_FILES := $(common_SRC_FILES) |
| 69 | LOCAL_CFLAGS += $(common_CFLAGS) |
| 70 | LOCAL_C_INCLUDES += $(common_C_INCLUDES) |
| 71 | |
| 72 | LOCAL_SHARED_LIBRARIES := libexpat libcrypto |
| 73 | LOCAL_MODULE := libdrm2 |
| 74 | |
| 75 | ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86) |
| 76 | LOCAL_CFLAGS += -DUSTL_ANDROID_X86 |
| 77 | endif |
| 78 | |
| 79 | include $(BUILD_STATIC_LIBRARY) |