Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 1 | # This file is generated by gyp; do not edit. |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 6 | LOCAL_MODULE := skia_skia_chrome_gyp |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 7 | LOCAL_MODULE_SUFFIX := .a |
| 8 | LOCAL_MODULE_TAGS := optional |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 9 | LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) |
| 10 | gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) |
| 11 | gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 12 | |
| 13 | # Make sure our deps are built first. |
| 14 | GYP_TARGET_DEPENDENCIES := \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 15 | $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 16 | |
| 17 | GYP_GENERATED_OUTPUTS := |
| 18 | |
| 19 | # Make sure our deps and generated files are built first. |
| 20 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 21 | |
| 22 | LOCAL_CPP_EXTENSION := .cc |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 23 | $(gyp_intermediate_dir)/SkMemory_new_handler.cc: $(LOCAL_PATH)/skia/ext/SkMemory_new_handler.cpp |
| 24 | mkdir -p $(@D); cp $< $@ |
| 25 | LOCAL_GENERATED_SOURCES := \ |
| 26 | $(gyp_intermediate_dir)/SkMemory_new_handler.cc |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 27 | |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 28 | GYP_COPIED_SOURCE_ORIGIN_DIRS := \ |
| 29 | $(LOCAL_PATH)/skia/ext |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 30 | |
| 31 | LOCAL_SRC_FILES := \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 32 | skia/ext/analysis_canvas.cc \ |
Ben Murdoch | fb25065 | 2013-07-31 11:42:55 +0100 | [diff] [blame] | 33 | skia/ext/benchmarking_canvas.cc \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 34 | skia/ext/bitmap_platform_device_skia.cc \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 35 | skia/ext/convolver.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 36 | skia/ext/event_tracer_impl.cc \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 37 | skia/ext/google_logging.cc \ |
| 38 | skia/ext/image_operations.cc \ |
| 39 | skia/ext/lazy_pixel_ref.cc \ |
Torne (Richard Coles) | 424c4d7 | 2013-08-30 15:14:49 +0100 | [diff] [blame] | 40 | skia/ext/opacity_draw_filter.cc \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 41 | skia/ext/paint_simplifier.cc \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 42 | skia/ext/pixel_ref_utils.cc \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 43 | skia/ext/platform_canvas.cc \ |
| 44 | skia/ext/platform_device.cc \ |
| 45 | skia/ext/platform_device_linux.cc \ |
| 46 | skia/ext/recursive_gaussian_convolution.cc \ |
Torne (Richard Coles) | 424c4d7 | 2013-08-30 15:14:49 +0100 | [diff] [blame] | 47 | skia/ext/SkDiscardableMemory_chrome.cc \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 48 | skia/ext/skia_utils_base.cc \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 49 | skia/ext/vector_platform_device_skia.cc |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 50 | |
| 51 | |
| 52 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 53 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 54 | -fstack-protector \ |
| 55 | --param=ssp-buffer-size=4 \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 56 | -fno-exceptions \ |
| 57 | -fno-strict-aliasing \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 58 | -Wno-unused-parameter \ |
| 59 | -Wno-missing-field-initializers \ |
| 60 | -fvisibility=hidden \ |
| 61 | -pipe \ |
| 62 | -fPIC \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 63 | -Wno-unused-local-typedefs \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 64 | -Wno-format \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 65 | -fno-tree-sra \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 66 | -fno-partial-inlining \ |
| 67 | -fno-early-inlining \ |
| 68 | -fno-tree-copy-prop \ |
| 69 | -fno-tree-loop-optimize \ |
| 70 | -fno-move-loop-invariants \ |
| 71 | -fno-caller-saves \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 72 | -Wno-psabi \ |
| 73 | -ffunction-sections \ |
| 74 | -funwind-tables \ |
| 75 | -g \ |
| 76 | -fstack-protector \ |
| 77 | -fno-short-enums \ |
| 78 | -finline-limit=64 \ |
| 79 | -Wa,--noexecstack \ |
| 80 | -U_FORTIFY_SOURCE \ |
| 81 | -Wno-extra \ |
| 82 | -Wno-ignored-qualifiers \ |
| 83 | -Wno-type-limits \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 84 | -Wno-unused-but-set-variable \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 85 | -Wno-address \ |
| 86 | -Wno-format-security \ |
| 87 | -Wno-return-type \ |
| 88 | -Wno-sequence-point \ |
| 89 | -Os \ |
| 90 | -g \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 91 | -fdata-sections \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 92 | -ffunction-sections \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 93 | -fomit-frame-pointer \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 94 | -funwind-tables |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 95 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 96 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 97 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 98 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 99 | '-DNO_TCMALLOC' \ |
| 100 | '-DDISABLE_NACL' \ |
| 101 | '-DCHROMIUM_BUILD' \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 102 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 103 | '-DENABLE_WEBRTC=1' \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 104 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 105 | '-DENABLE_BROWSER_CDMS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 106 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 107 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 108 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 109 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 110 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 111 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 112 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 113 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 114 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 115 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 116 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 117 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 118 | '-DVIDEO_HOLE=1' \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 119 | '-DSK_ENABLE_INST_COUNT=0' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 120 | '-DSK_SUPPORT_GPU=1' \ |
| 121 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 122 | '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 123 | '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 124 | '-DGR_GL_IGNORE_ES3_MSAA=0' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 125 | '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 126 | '-DSK_SUPPORT_LEGACY_PICTURE_CLONE' \ |
| 127 | '-DSK_SUPPORT_LEGACY_GETDEVICE' \ |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 128 | '-DSK_IGNORE_ETC1_SUPPORT' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 129 | '-DSK_IGNORE_GPU_DITHER' \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 130 | '-DSK_BUILD_FOR_ANDROID' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 131 | '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ |
| 132 | '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 133 | '-DIGNORE_ROT_AA_RECT_OPT' \ |
| 134 | '-DSK_IGNORE_BLURRED_RRECT_OPT' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 135 | '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ |
| 136 | '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ |
| 137 | '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 138 | '-DSK_GAMMA_APPLY_TO_A8' \ |
| 139 | '-DSK_GAMMA_EXPONENT=1.4' \ |
| 140 | '-DSK_GAMMA_CONTRAST=0.0' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 141 | '-DSK_USE_POSIX_THREADS' \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 142 | '-DSK_ARM_HAS_OPTIONAL_NEON' \ |
Ben Murdoch | ba5b9a6 | 2013-08-12 14:20:17 +0100 | [diff] [blame] | 143 | '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 144 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 145 | '-DUSE_OPENSSL_CERTS=1' \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 146 | '-DANDROID' \ |
| 147 | '-D__GNU_SOURCE=1' \ |
| 148 | '-DUSE_STLPORT=1' \ |
| 149 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 150 | '-DCHROME_BUILD_ID=""' \ |
| 151 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 152 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 153 | '-D_DEBUG' |
| 154 | |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 155 | |
| 156 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 157 | LOCAL_C_INCLUDES_Debug := \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 158 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 159 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 160 | $(gyp_shared_intermediate_dir) \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 161 | $(LOCAL_PATH) \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 162 | $(LOCAL_PATH)/skia/config \ |
Torne (Richard Coles) | 8bcbed8 | 2013-10-22 16:41:35 +0100 | [diff] [blame] | 163 | $(LOCAL_PATH)/third_party/skia/src/core \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 164 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 165 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 166 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 167 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 168 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 169 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 170 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 171 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 172 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 173 | $(PWD)/frameworks/wilhelm/include \ |
| 174 | $(PWD)/bionic \ |
| 175 | $(PWD)/external/stlport/stlport |
| 176 | |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 177 | |
| 178 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 179 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 180 | -fno-rtti \ |
| 181 | -fno-threadsafe-statics \ |
| 182 | -fvisibility-inlines-hidden \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 183 | -Wno-deprecated \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 184 | -Wno-abi \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 185 | -std=gnu++11 \ |
| 186 | -Wno-narrowing \ |
| 187 | -Wno-literal-suffix \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 188 | -Wno-non-virtual-dtor \ |
| 189 | -Wno-sign-promo \ |
| 190 | -Wno-non-virtual-dtor |
| 191 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 192 | |
| 193 | # Flags passed to both C and C++ files. |
| 194 | MY_CFLAGS_Release := \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 195 | -fstack-protector \ |
| 196 | --param=ssp-buffer-size=4 \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 197 | -fno-exceptions \ |
| 198 | -fno-strict-aliasing \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 199 | -Wno-unused-parameter \ |
| 200 | -Wno-missing-field-initializers \ |
| 201 | -fvisibility=hidden \ |
| 202 | -pipe \ |
| 203 | -fPIC \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 204 | -Wno-unused-local-typedefs \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 205 | -Wno-format \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 206 | -fno-tree-sra \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 207 | -fno-partial-inlining \ |
| 208 | -fno-early-inlining \ |
| 209 | -fno-tree-copy-prop \ |
| 210 | -fno-tree-loop-optimize \ |
| 211 | -fno-move-loop-invariants \ |
| 212 | -fno-caller-saves \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 213 | -Wno-psabi \ |
| 214 | -ffunction-sections \ |
| 215 | -funwind-tables \ |
| 216 | -g \ |
| 217 | -fstack-protector \ |
| 218 | -fno-short-enums \ |
| 219 | -finline-limit=64 \ |
| 220 | -Wa,--noexecstack \ |
| 221 | -U_FORTIFY_SOURCE \ |
| 222 | -Wno-extra \ |
| 223 | -Wno-ignored-qualifiers \ |
| 224 | -Wno-type-limits \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 225 | -Wno-unused-but-set-variable \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 226 | -Wno-address \ |
| 227 | -Wno-format-security \ |
| 228 | -Wno-return-type \ |
| 229 | -Wno-sequence-point \ |
| 230 | -Os \ |
| 231 | -fno-ident \ |
| 232 | -fdata-sections \ |
| 233 | -ffunction-sections \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 234 | -fomit-frame-pointer \ |
| 235 | -funwind-tables |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 236 | |
| 237 | MY_DEFS_Release := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 238 | '-DV8_DEPRECATION_WARNINGS' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 239 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 240 | '-DNO_TCMALLOC' \ |
| 241 | '-DDISABLE_NACL' \ |
| 242 | '-DCHROMIUM_BUILD' \ |
| 243 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 244 | '-DENABLE_WEBRTC=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 245 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 246 | '-DENABLE_BROWSER_CDMS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 247 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 248 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 249 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 250 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 251 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 252 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 253 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 254 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 255 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 256 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 257 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 258 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 259 | '-DVIDEO_HOLE=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 260 | '-DSK_ENABLE_INST_COUNT=0' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 261 | '-DSK_SUPPORT_GPU=1' \ |
| 262 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 263 | '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 264 | '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 265 | '-DGR_GL_IGNORE_ES3_MSAA=0' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 266 | '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 267 | '-DSK_SUPPORT_LEGACY_PICTURE_CLONE' \ |
| 268 | '-DSK_SUPPORT_LEGACY_GETDEVICE' \ |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 269 | '-DSK_IGNORE_ETC1_SUPPORT' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 270 | '-DSK_IGNORE_GPU_DITHER' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 271 | '-DSK_BUILD_FOR_ANDROID' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 272 | '-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \ |
| 273 | '-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 274 | '-DIGNORE_ROT_AA_RECT_OPT' \ |
| 275 | '-DSK_IGNORE_BLURRED_RRECT_OPT' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 276 | '-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \ |
| 277 | '-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \ |
| 278 | '-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 279 | '-DSK_GAMMA_APPLY_TO_A8' \ |
| 280 | '-DSK_GAMMA_EXPONENT=1.4' \ |
| 281 | '-DSK_GAMMA_CONTRAST=0.0' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 282 | '-DSK_USE_POSIX_THREADS' \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 283 | '-DSK_ARM_HAS_OPTIONAL_NEON' \ |
Ben Murdoch | ba5b9a6 | 2013-08-12 14:20:17 +0100 | [diff] [blame] | 284 | '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 285 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 286 | '-DUSE_OPENSSL_CERTS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 287 | '-DANDROID' \ |
| 288 | '-D__GNU_SOURCE=1' \ |
| 289 | '-DUSE_STLPORT=1' \ |
| 290 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 291 | '-DCHROME_BUILD_ID=""' \ |
| 292 | '-DNDEBUG' \ |
| 293 | '-DNVALGRIND' \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 294 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 295 | |
| 296 | |
| 297 | # Include paths placed before CFLAGS/CPPFLAGS |
| 298 | LOCAL_C_INCLUDES_Release := \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 299 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 300 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 301 | $(gyp_shared_intermediate_dir) \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 302 | $(LOCAL_PATH) \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 303 | $(LOCAL_PATH)/skia/config \ |
Torne (Richard Coles) | 8bcbed8 | 2013-10-22 16:41:35 +0100 | [diff] [blame] | 304 | $(LOCAL_PATH)/third_party/skia/src/core \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 305 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 306 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 307 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 308 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 309 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
| 310 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 311 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 312 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 313 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 314 | $(PWD)/frameworks/wilhelm/include \ |
| 315 | $(PWD)/bionic \ |
| 316 | $(PWD)/external/stlport/stlport |
| 317 | |
| 318 | |
| 319 | # Flags passed to only C++ (and not C) files. |
| 320 | LOCAL_CPPFLAGS_Release := \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 321 | -fno-rtti \ |
| 322 | -fno-threadsafe-statics \ |
| 323 | -fvisibility-inlines-hidden \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 324 | -Wno-deprecated \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 325 | -Wno-abi \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 326 | -std=gnu++11 \ |
| 327 | -Wno-narrowing \ |
| 328 | -Wno-literal-suffix \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 329 | -Wno-non-virtual-dtor \ |
| 330 | -Wno-sign-promo \ |
| 331 | -Wno-non-virtual-dtor |
| 332 | |
| 333 | |
| 334 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 335 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 336 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 337 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 338 | ### Rules for final target. |
| 339 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 340 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 341 | -Wl,-z,now \ |
| 342 | -Wl,-z,relro \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 343 | -Wl,--fatal-warnings \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 344 | -Wl,-z,noexecstack \ |
| 345 | -fPIC \ |
| 346 | -Wl,-z,relro \ |
| 347 | -Wl,-z,now \ |
| 348 | -fuse-ld=gold \ |
| 349 | -nostdlib \ |
| 350 | -Wl,--no-undefined \ |
| 351 | -Wl,--exclude-libs=ALL \ |
| 352 | -Wl,--icf=safe \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 353 | -Wl,--warn-shared-textrel \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 354 | -Wl,-O1 \ |
| 355 | -Wl,--as-needed |
| 356 | |
| 357 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 358 | LOCAL_LDFLAGS_Release := \ |
| 359 | -Wl,-z,now \ |
| 360 | -Wl,-z,relro \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 361 | -Wl,--fatal-warnings \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 362 | -Wl,-z,noexecstack \ |
| 363 | -fPIC \ |
| 364 | -Wl,-z,relro \ |
| 365 | -Wl,-z,now \ |
| 366 | -fuse-ld=gold \ |
| 367 | -nostdlib \ |
| 368 | -Wl,--no-undefined \ |
| 369 | -Wl,--exclude-libs=ALL \ |
| 370 | -Wl,--icf=safe \ |
| 371 | -Wl,-O1 \ |
| 372 | -Wl,--as-needed \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 373 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 374 | -Wl,--warn-shared-textrel |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 375 | |
| 376 | |
| 377 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 378 | |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 379 | LOCAL_STATIC_LIBRARIES := \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 380 | skia_skia_library_gyp |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 381 | |
| 382 | # Enable grouping to fix circular references |
| 383 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 384 | |
| 385 | LOCAL_SHARED_LIBRARIES := \ |
| 386 | libstlport \ |
| 387 | libdl |
| 388 | |
| 389 | # Add target alias to "gyp_all_modules" target. |
| 390 | .PHONY: gyp_all_modules |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 391 | gyp_all_modules: skia_skia_chrome_gyp |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 392 | |
| 393 | # Alias gyp target name. |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 394 | .PHONY: skia_chrome |
| 395 | skia_chrome: skia_skia_chrome_gyp |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 396 | |
| 397 | include $(BUILD_STATIC_LIBRARY) |