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
|
|
|
|
|
|
|
|
ifeq ($(TARGET),win)
|
|
|
|
LOCAL_SRC_FILES += $(LOCAL_SRC_FILES_WINDOWS)
|
|
|
|
SKIAFLAGS += $(SKIA_FLAGS_WINDOWS)
|
|
|
|
else ifeq ($(TARGET),cygwin)
|
|
|
|
LOCAL_SRC_FILES += $(LOCAL_SRC_FILES_WINDOWS)
|
|
|
|
SKIAFLAGS += $(SKIA_FLAGS_WINDOWS)
|
|
|
|
else
|
|
|
|
LOCAL_SRC_FILES += \
|
|
|
|
$(OSMAND_SKIA_LOC)/src/ports/SkThread_pthread.cpp \
|
|
|
|
$(OSMAND_SKIA_LOC)/src/ports/SkTime_Unix.cpp \
|
|
|
|
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_FreeType.cpp \
|
|
|
|
$(OSMAND_SKIA_LOC)/src/ports/SkFontHost_linux.cpp
|
|
|
|
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
|