1 # Copyright (C) 2016 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 define define-magick++-vars 18 $(eval LOCAL_SRC_FILES := lib/Blob.cpp\ 19 lib/BlobRef.cpp\ 20 lib/CoderInfo.cpp\ 21 lib/Color.cpp\ 22 lib/Drawable.cpp\ 23 lib/Exception.cpp\ 24 lib/Functions.cpp\ 25 lib/Geometry.cpp\ 26 lib/Image.cpp\ 27 lib/ImageRef.cpp\ 28 lib/Montage.cpp\ 29 lib/Options.cpp\ 30 lib/Pixels.cpp\ 31 lib/ResourceLimits.cpp\ 32 lib/STL.cpp\ 33 lib/Statistic.cpp\ 34 lib/Thread.cpp\ 35 lib/TypeMetric.cpp) \ 36 $(eval LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. \ 37 $(LOCAL_PATH)/lib) \ 38 $(eval LOCAL_CFLAGS += -DHAVE_CONFIG_H \ 39 -Wall -Werror \ 40 -Wno-deprecated-register \ 41 -Wno-unused-private-field) \ 42 $(eval LOCAL_CPPFLAGS += -fexceptions) \ 43 $(eval LOCAL_EXPORT_C_INCLUDE_DIRS := \ 44 external/ImageMagick/Magick++/lib \ 45 external/ImageMagick) 46 endef 47 48 include $(CLEAR_VARS) 49 50 $(call define-magick++-vars) 51 LOCAL_MODULE := Magick++_platform 52 LOCAL_CXX_STL := libc++_static 53 54 include $(BUILD_STATIC_LIBRARY) 55 56 57 include $(CLEAR_VARS) 58 59 $(call define-magick++-vars) 60 LOCAL_MODULE := Magick++ 61 LOCAL_SDK_VERSION := 24 62 LOCAL_NDK_STL_VARIANT := c++_static 63 64 include $(BUILD_STATIC_LIBRARY) 65