This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Application.mk
105 lines (84 loc) · 3.63 KB
/
Application.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#----------------------------------------------------------------------------#
# _ _ _ #
# /\ | | (_) | | #
# / \ _ __ __| |_ __ ___ _ __| | #
# / /\ \ | '_ \ / _` | '__/ _ \| |/ _` | #
# / ____ \| | | | (_| | | | (_) | | (_| | #
# /_/ \_\_| |_|\__,_|_| \___/|_|\__,_| #
# #
# _____ __ __ _ _ ______ #
# |_ _| | \/ | (_) | | |____ | #
# | | _ __ ___ __ _ __ _ ___| \ / | __ _ __ _ _ ___| | __ / / #
# | | | '_ ` _ \ / _` |/ _` |/ _ \ |\/| |/ _` |/ _` | |/ __| |/ / / / #
# _| |_| | | | | | (_| | (_| | __/ | | | (_| | (_| | | (__| < / / #
# |_____|_| |_| |_|\__,_|\__, |\___|_| |_|\__,_|\__, |_|\___|_|\_\ /_/ #
# __/ | __/ | #
# |___/ |___/ #
# #
#----------------------------------------------------------------------------#
# list of supported architectures
# https://developer.android.com/ndk/guides/application_mk.html
# mips32 have a bug with 64bit atomic counter, so if you need
# this platform - plz, use gcc build
# DO NOT BUILD MORE THAN ONE AT THE SAME TIME, OR IT WILL FAIL
# BUILD THEM ONE AT A TIME
# armeabi-v7a is currently not supported
APP_ABI := arm64-v8a
APP_PLATFORM := android-24
NDK_TOOLCHAIN_VERSION := clang
# list of build-in STL's supported by NDK.
# switch to clang STL in case of using this compiler
# https://developer.android.com/ndk/guides/cpp-support.html#runtimes
# Until NDK r16, the NDK's libc++ is only of beta quality.
# Beginning with NDK r16, libc++ will be the preferred STL.
# A future NDK release will remove the other options.
APP_STL := c++_shared
APP_CFLAGS += -O3
APP_CPPFLAGS += -O3
#------------------------------------------
# Magick options
HDRI_ENABLE := true
# 8, 16, 32
QUANTUM_DEPTH := 16
#------------------------------------------
# Whether to do a static or shared library
# build.
#
# You can also choose to build a magick
# binary.
#
STATIC_BUILD := true
# magick bin requires magick wand API
BUILD_MAGICK_BIN := true
BUILD_MAGICKWAND := true
# requires magickwand
BUILD_MAGICKPP := false
#------------------------------------------
# Types of builds available. OpenMP, OpenCL, or neither
# Neither will do a vanilla build without either feature
# openCL build requires special setup. Check the libopencl
# directory for more information
OPENCL_BUILD := false
OPENMP_BUILD := true
#------------------------------------------
# Enable or disable specific delegates here
#
LIBBZ2_ENABLED := true
LIBFFTW_ENABLED := true
LIBFREETYPE2_ENABLED := true
LIBJPEG_TURBO_ENABLED := true
LIBLZMA_ENABLED := true
LIBOPENJPEG_ENABLED := true
LIBPNG_ENABLED := true
LIBTIFF_ENABLED := true
LIBWEBP_ENABLED := true
LIBXML2_ENABLED := true
LIBZLIB_ENABLED := true
LIBLCMS2_ENABLED := true
#------------------------------------------
# fix long windows paths causing build to fail (too many sources)
LOCAL_SHORT_COMMANDS := true
APP_SHORT_COMMANDS := true
#------------------------------------------
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/make/postconfig.mk