OsmAnd/Osmand-kernel/skia/Makefile

90 lines
2.7 KiB
Makefile
Raw Normal View History

2012-05-31 21:01:27 +02:00
# Include tools definitions
2012-05-15 20:48:06 +02:00
include ../Makefile.vars
2012-05-31 21:01:27 +02:00
# Include project files
LOCAL_PATH = .
2012-05-01 00:30:31 +02:00
include Common.mk
2012-05-31 21:01:27 +02:00
# Set library name
LIBNAME = $(LIBRARY_PREFIX)skia
LIBTYPE = $(STATICLIB_EXT)
2012-05-01 00:30:31 +02:00
2012-05-31 21:01:27 +02:00
# Library content
2012-05-01 00:30:31 +02:00
LOCAL_SRC_FILES += \
$(OSMAND_SKIA_LOC)/src/opts/SkBlitRow_opts_none.cpp \
$(OSMAND_SKIA_LOC)/src/opts/SkBitmapProcState_opts_none.cpp \
$(OSMAND_SKIA_LOC)/src/opts/SkUtils_opts_none.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkDebug_stdio.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkOSFile_stdio.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkMemory_malloc.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_gamma.cpp \
2012-06-15 14:34:25 +02:00
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_tables.cpp \
2012-05-01 00:30:31 +02:00
$(OSMAND_SKIA_LOC)/src/ports/SkGlobalInitialization_default.cpp
2012-06-17 12:30:45 +02:00
SKIAFLAGS += \
2012-05-31 21:01:27 +02:00
-DSK_RELEASE \
2012-05-01 00:30:31 +02:00
-DGR_RELEASE=1 \
2012-05-08 10:47:42 +02:00
-DSK_ENABLE_LIBPNG \
2012-05-01 00:30:31 +02:00
-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0 \
-DNDEBUG \
-fno-rtti \
2012-06-17 12:30:45 +02:00
-fno-exceptions
LOCAL_SRC_FILES_WINDOWS = \
$(OSMAND_SKIA_LOC)/src/ports/SkThread_win.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkTime_win.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_win.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_sandbox_none.cpp
SKIA_FLAGS_WINDOWS = \
-DSK_BUILD_FOR_WIN32 \
-DMINGW_HAS_SECURE_API \
-DSkUserConfig_DEFINED \
-DPICTURE_VERSION_ICS=1 \
-DPICTURE_VERSION_JB=2 \
-DSK_SCALAR_IS_FLOAT \
-DSK_CAN_USE_FLOAT \
-DSK_CPU_LENDIAN
2012-06-21 06:24:17 +02:00
LOCAL_SRC_FILES_MAC = \
$(OSMAND_SKIA_LOC)/src/ports/SkThread_pthread.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_mac.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_mac_coretext.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_freetype_mac.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkTime_Unix.cpp
2012-06-17 12:30:45 +02:00
2012-06-21 06:24:17 +02:00
SKIA_FLAGS_MAC = \
-DSK_BUILD_FOR_MAC \
-DSK_USE_CORETEXT \
-DSkUserConfig_DEFINED \
-DPICTURE_VERSION_ICS=1 \
-DPICTURE_VERSION_JB=2 \
-DSK_SCALAR_IS_FLOAT \
-DSK_CAN_USE_FLOAT \
-DSK_CPU_LENDIAN
2012-06-18 20:19:22 +02:00
ifeq ($(TARGET),windows)
2012-06-17 12:30:45 +02:00
LOCAL_SRC_FILES += $(LOCAL_SRC_FILES_WINDOWS)
2012-06-21 06:24:17 +02:00
LOCAL_C_INCLUDES += $(OSMAND_SKIA_ABS)/include/utils/win
2012-06-17 12:30:45 +02:00
SKIAFLAGS += $(SKIA_FLAGS_WINDOWS)
2012-06-21 06:24:17 +02:00
else ifeq ($(TARGET),darwin)
LOCAL_SRC_FILES += $(LOCAL_SRC_FILES_MAC)
LOCAL_C_INCLUDES += $(OSMAND_SKIA_ABS)/include/utils/mac
SKIAFLAGS += $(SKIA_FLAGS_MAC)
2012-06-17 12:30:45 +02:00
else
2012-06-21 06:24:17 +02:00
LOCAL_C_INCLUDES += $(OSMAND_SKIA_ABS)/include/utils/unix
2012-06-17 12:30:45 +02:00
LOCAL_SRC_FILES += \
2012-06-20 22:47:55 +02:00
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_sandbox_none.cpp \
2012-06-17 12:30:45 +02:00
$(OSMAND_SKIA_LOC)/src/ports/SkThread_pthread.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkTime_Unix.cpp \
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_FreeType.cpp \
2012-06-20 22:47:55 +02:00
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_linux.cpp \
$(OSMAND_SKIA_LOC)/src/core/SkMMapStream.cpp
2012-06-17 12:30:45 +02:00
SKIAFLAGS += \
-DSK_BUILD_FOR_UNIX
endif
2012-05-01 00:30:31 +02:00
2012-05-31 21:01:27 +02:00
CFLAGS += $(SKIAFLAGS)
CXXFLAGS += $(SKIAFLAGS)
2012-05-01 00:30:31 +02:00
2012-05-31 21:01:27 +02:00
# Finally, include generic rules
include ../Makefile.rules