Home | History | Annotate | Download | only in gfx
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      6 LOCAL_MODULE := ui_gfx_gfx_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
     15 	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
     16 	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
     17 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \
     18 	$(call intermediates-dir-for,GYP,ui_gfx_gfx_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/gfx_jni_headers.stamp
     19 
     20 GYP_GENERATED_OUTPUTS :=
     21 
     22 # Make sure our deps and generated files are built first.
     23 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     24 
     25 LOCAL_CPP_EXTENSION := .cc
     26 LOCAL_GENERATED_SOURCES :=
     27 
     28 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     29 
     30 LOCAL_SRC_FILES := \
     31 	ui/gfx/android/device_display_info.cc \
     32 	ui/gfx/android/gfx_jni_registrar.cc \
     33 	ui/gfx/android/java_bitmap.cc \
     34 	ui/gfx/android/scroller.cc \
     35 	ui/gfx/android/shared_device_display_info.cc \
     36 	ui/gfx/android/view_configuration.cc \
     37 	ui/gfx/animation/animation.cc \
     38 	ui/gfx/animation/animation_container.cc \
     39 	ui/gfx/animation/linear_animation.cc \
     40 	ui/gfx/animation/multi_animation.cc \
     41 	ui/gfx/animation/slide_animation.cc \
     42 	ui/gfx/animation/tween.cc \
     43 	ui/gfx/blit.cc \
     44 	ui/gfx/canvas.cc \
     45 	ui/gfx/canvas_notimplemented.cc \
     46 	ui/gfx/codec/jpeg_codec.cc \
     47 	ui/gfx/codec/png_codec.cc \
     48 	ui/gfx/color_analysis.cc \
     49 	ui/gfx/color_profile.cc \
     50 	ui/gfx/color_utils.cc \
     51 	ui/gfx/display.cc \
     52 	ui/gfx/display_change_notifier.cc \
     53 	ui/gfx/favicon_size.cc \
     54 	ui/gfx/font.cc \
     55 	ui/gfx/font_list.cc \
     56 	ui/gfx/font_list_impl.cc \
     57 	ui/gfx/font_render_params.cc \
     58 	ui/gfx/font_render_params_android.cc \
     59 	ui/gfx/gfx_paths.cc \
     60 	ui/gfx/gpu_memory_buffer.cc \
     61 	ui/gfx/image/canvas_image_source.cc \
     62 	ui/gfx/image/image.cc \
     63 	ui/gfx/image/image_family.cc \
     64 	ui/gfx/image/image_png_rep.cc \
     65 	ui/gfx/image/image_skia.cc \
     66 	ui/gfx/image/image_skia_operations.cc \
     67 	ui/gfx/image/image_skia_rep.cc \
     68 	ui/gfx/image/image_util.cc \
     69 	ui/gfx/interpolated_transform.cc \
     70 	ui/gfx/linux_font_delegate.cc \
     71 	ui/gfx/platform_font_android.cc \
     72 	ui/gfx/range/range.cc \
     73 	ui/gfx/screen.cc \
     74 	ui/gfx/screen_android.cc \
     75 	ui/gfx/scrollbar_size.cc \
     76 	ui/gfx/sequential_id_generator.cc \
     77 	ui/gfx/shadow_value.cc \
     78 	ui/gfx/skbitmap_operations.cc \
     79 	ui/gfx/skia_util.cc \
     80 	ui/gfx/switches.cc \
     81 	ui/gfx/sys_color_change_listener.cc \
     82 	ui/gfx/text_elider.cc \
     83 	ui/gfx/text_utils.cc \
     84 	ui/gfx/text_utils_android.cc \
     85 	ui/gfx/transform.cc \
     86 	ui/gfx/transform_util.cc \
     87 	ui/gfx/ui_gfx_exports.cc \
     88 	ui/gfx/utf16_indexing.cc
     89 
     90 
     91 # Flags passed to both C and C++ files.
     92 MY_CFLAGS_Debug := \
     93 	--param=ssp-buffer-size=4 \
     94 	-Werror \
     95 	-fno-strict-aliasing \
     96 	-Wall \
     97 	-Wno-unused-parameter \
     98 	-Wno-missing-field-initializers \
     99 	-fvisibility=hidden \
    100 	-pipe \
    101 	-fPIC \
    102 	-Wno-unused-local-typedefs \
    103 	-msse2 \
    104 	-mfpmath=sse \
    105 	-mmmx \
    106 	-m32 \
    107 	-ffunction-sections \
    108 	-funwind-tables \
    109 	-g \
    110 	-fno-short-enums \
    111 	-finline-limit=64 \
    112 	-Wa,--noexecstack \
    113 	-U_FORTIFY_SOURCE \
    114 	-Wno-extra \
    115 	-Wno-ignored-qualifiers \
    116 	-Wno-type-limits \
    117 	-Wno-unused-but-set-variable \
    118 	-fno-stack-protector \
    119 	-Os \
    120 	-g \
    121 	-gdwarf-4 \
    122 	-fdata-sections \
    123 	-ffunction-sections \
    124 	-fomit-frame-pointer \
    125 	-funwind-tables
    126 
    127 MY_DEFS_Debug := \
    128 	'-DV8_DEPRECATION_WARNINGS' \
    129 	'-D_FILE_OFFSET_BITS=64' \
    130 	'-DNO_TCMALLOC' \
    131 	'-DDISABLE_NACL' \
    132 	'-DCHROMIUM_BUILD' \
    133 	'-DUSE_LIBJPEG_TURBO=1' \
    134 	'-DENABLE_WEBRTC=1' \
    135 	'-DUSE_PROPRIETARY_CODECS' \
    136 	'-DENABLE_BROWSER_CDMS' \
    137 	'-DENABLE_CONFIGURATION_POLICY' \
    138 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    139 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    140 	'-DENABLE_EGLIMAGE=1' \
    141 	'-DCLD_VERSION=1' \
    142 	'-DENABLE_PRINTING=1' \
    143 	'-DENABLE_MANAGED_USERS=1' \
    144 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    145 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    146 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    147 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    148 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    149 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    150 	'-DVIDEO_HOLE=1' \
    151 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    152 	'-DGFX_IMPLEMENTATION' \
    153 	'-DSK_ENABLE_INST_COUNT=0' \
    154 	'-DSK_SUPPORT_GPU=1' \
    155 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    156 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    157 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    158 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    159 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    160 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    161 	'-DSK_BUILD_FOR_ANDROID' \
    162 	'-DSK_USE_POSIX_THREADS' \
    163 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    164 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    165 	'-DU_USING_ICU_NAMESPACE=0' \
    166 	'-DU_ENABLE_DYLOAD=0' \
    167 	'-DCHROME_PNG_WRITE_SUPPORT' \
    168 	'-DPNG_USER_CONFIG' \
    169 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    170 	'-DUSE_OPENSSL=1' \
    171 	'-DUSE_OPENSSL_CERTS=1' \
    172 	'-D__STDC_CONSTANT_MACROS' \
    173 	'-D__STDC_FORMAT_MACROS' \
    174 	'-DANDROID' \
    175 	'-D__GNU_SOURCE=1' \
    176 	'-DUSE_STLPORT=1' \
    177 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    178 	'-DCHROME_BUILD_ID=""' \
    179 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    180 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    181 	'-D_DEBUG'
    182 
    183 
    184 # Include paths placed before CFLAGS/CPPFLAGS
    185 LOCAL_C_INCLUDES_Debug := \
    186 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    187 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    188 	$(gyp_shared_intermediate_dir) \
    189 	$(LOCAL_PATH)/third_party/icu/source/common \
    190 	$(LOCAL_PATH) \
    191 	$(LOCAL_PATH)/skia/config \
    192 	$(LOCAL_PATH)/third_party/skia/src/core \
    193 	$(LOCAL_PATH)/third_party/skia/include/core \
    194 	$(LOCAL_PATH)/third_party/skia/include/effects \
    195 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    196 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    197 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    198 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    199 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    200 	$(LOCAL_PATH)/third_party/skia/include/ports \
    201 	$(LOCAL_PATH)/third_party/skia/include/utils \
    202 	$(LOCAL_PATH)/skia/ext \
    203 	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
    204 	$(PWD)/external/icu/icu4c/source/common \
    205 	$(PWD)/external/icu/icu4c/source/i18n \
    206 	$(LOCAL_PATH)/third_party/libpng \
    207 	$(LOCAL_PATH)/third_party/zlib \
    208 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    209 	$(gyp_shared_intermediate_dir)/ui/gfx \
    210 	$(PWD)/frameworks/wilhelm/include \
    211 	$(PWD)/bionic \
    212 	$(PWD)/external/stlport/stlport
    213 
    214 
    215 # Flags passed to only C++ (and not C) files.
    216 LOCAL_CPPFLAGS_Debug := \
    217 	-fno-exceptions \
    218 	-fno-rtti \
    219 	-fno-threadsafe-statics \
    220 	-fvisibility-inlines-hidden \
    221 	-Wsign-compare \
    222 	-std=gnu++11 \
    223 	-Wno-narrowing \
    224 	-Wno-literal-suffix \
    225 	-Wno-non-virtual-dtor \
    226 	-Wno-sign-promo
    227 
    228 
    229 # Flags passed to both C and C++ files.
    230 MY_CFLAGS_Release := \
    231 	--param=ssp-buffer-size=4 \
    232 	-Werror \
    233 	-fno-strict-aliasing \
    234 	-Wall \
    235 	-Wno-unused-parameter \
    236 	-Wno-missing-field-initializers \
    237 	-fvisibility=hidden \
    238 	-pipe \
    239 	-fPIC \
    240 	-Wno-unused-local-typedefs \
    241 	-msse2 \
    242 	-mfpmath=sse \
    243 	-mmmx \
    244 	-m32 \
    245 	-ffunction-sections \
    246 	-funwind-tables \
    247 	-g \
    248 	-fno-short-enums \
    249 	-finline-limit=64 \
    250 	-Wa,--noexecstack \
    251 	-U_FORTIFY_SOURCE \
    252 	-Wno-extra \
    253 	-Wno-ignored-qualifiers \
    254 	-Wno-type-limits \
    255 	-Wno-unused-but-set-variable \
    256 	-fno-stack-protector \
    257 	-Os \
    258 	-fno-ident \
    259 	-fdata-sections \
    260 	-ffunction-sections \
    261 	-fomit-frame-pointer \
    262 	-funwind-tables
    263 
    264 MY_DEFS_Release := \
    265 	'-DV8_DEPRECATION_WARNINGS' \
    266 	'-D_FILE_OFFSET_BITS=64' \
    267 	'-DNO_TCMALLOC' \
    268 	'-DDISABLE_NACL' \
    269 	'-DCHROMIUM_BUILD' \
    270 	'-DUSE_LIBJPEG_TURBO=1' \
    271 	'-DENABLE_WEBRTC=1' \
    272 	'-DUSE_PROPRIETARY_CODECS' \
    273 	'-DENABLE_BROWSER_CDMS' \
    274 	'-DENABLE_CONFIGURATION_POLICY' \
    275 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    276 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    277 	'-DENABLE_EGLIMAGE=1' \
    278 	'-DCLD_VERSION=1' \
    279 	'-DENABLE_PRINTING=1' \
    280 	'-DENABLE_MANAGED_USERS=1' \
    281 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    282 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    283 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    284 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    285 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    286 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    287 	'-DVIDEO_HOLE=1' \
    288 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    289 	'-DGFX_IMPLEMENTATION' \
    290 	'-DSK_ENABLE_INST_COUNT=0' \
    291 	'-DSK_SUPPORT_GPU=1' \
    292 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    293 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    294 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    295 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    296 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    297 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    298 	'-DSK_BUILD_FOR_ANDROID' \
    299 	'-DSK_USE_POSIX_THREADS' \
    300 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    301 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    302 	'-DU_USING_ICU_NAMESPACE=0' \
    303 	'-DU_ENABLE_DYLOAD=0' \
    304 	'-DCHROME_PNG_WRITE_SUPPORT' \
    305 	'-DPNG_USER_CONFIG' \
    306 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    307 	'-DUSE_OPENSSL=1' \
    308 	'-DUSE_OPENSSL_CERTS=1' \
    309 	'-D__STDC_CONSTANT_MACROS' \
    310 	'-D__STDC_FORMAT_MACROS' \
    311 	'-DANDROID' \
    312 	'-D__GNU_SOURCE=1' \
    313 	'-DUSE_STLPORT=1' \
    314 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    315 	'-DCHROME_BUILD_ID=""' \
    316 	'-DNDEBUG' \
    317 	'-DNVALGRIND' \
    318 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    319 	'-D_FORTIFY_SOURCE=2'
    320 
    321 
    322 # Include paths placed before CFLAGS/CPPFLAGS
    323 LOCAL_C_INCLUDES_Release := \
    324 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    325 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    326 	$(gyp_shared_intermediate_dir) \
    327 	$(LOCAL_PATH)/third_party/icu/source/common \
    328 	$(LOCAL_PATH) \
    329 	$(LOCAL_PATH)/skia/config \
    330 	$(LOCAL_PATH)/third_party/skia/src/core \
    331 	$(LOCAL_PATH)/third_party/skia/include/core \
    332 	$(LOCAL_PATH)/third_party/skia/include/effects \
    333 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    334 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    335 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    336 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    337 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    338 	$(LOCAL_PATH)/third_party/skia/include/ports \
    339 	$(LOCAL_PATH)/third_party/skia/include/utils \
    340 	$(LOCAL_PATH)/skia/ext \
    341 	$(LOCAL_PATH)/third_party/harfbuzz-ng/src \
    342 	$(PWD)/external/icu/icu4c/source/common \
    343 	$(PWD)/external/icu/icu4c/source/i18n \
    344 	$(LOCAL_PATH)/third_party/libpng \
    345 	$(LOCAL_PATH)/third_party/zlib \
    346 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    347 	$(gyp_shared_intermediate_dir)/ui/gfx \
    348 	$(PWD)/frameworks/wilhelm/include \
    349 	$(PWD)/bionic \
    350 	$(PWD)/external/stlport/stlport
    351 
    352 
    353 # Flags passed to only C++ (and not C) files.
    354 LOCAL_CPPFLAGS_Release := \
    355 	-fno-exceptions \
    356 	-fno-rtti \
    357 	-fno-threadsafe-statics \
    358 	-fvisibility-inlines-hidden \
    359 	-Wsign-compare \
    360 	-std=gnu++11 \
    361 	-Wno-narrowing \
    362 	-Wno-literal-suffix \
    363 	-Wno-non-virtual-dtor \
    364 	-Wno-sign-promo
    365 
    366 
    367 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    368 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    369 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    370 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    371 ### Rules for final target.
    372 
    373 LOCAL_SHARED_LIBRARIES := \
    374 	libstlport \
    375 	libdl
    376 
    377 # Add target alias to "gyp_all_modules" target.
    378 .PHONY: gyp_all_modules
    379 gyp_all_modules: ui_gfx_gfx_gyp
    380 
    381 # Alias gyp target name.
    382 .PHONY: gfx
    383 gfx: ui_gfx_gfx_gyp
    384 
    385 include $(BUILD_STATIC_LIBRARY)
    386