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_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
     15 	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
     16 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
     17 	$(call intermediates-dir-for,GYP,third_party_libjpeg_libjpeg_gyp)/libjpeg.stamp \
     18 	$(call intermediates-dir-for,GYP,ui_gfx_gfx_jni_headers_gyp)/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/shared_device_display_info.cc \
     35 	ui/gfx/android/view_configuration.cc \
     36 	ui/gfx/animation/animation.cc \
     37 	ui/gfx/animation/animation_container.cc \
     38 	ui/gfx/animation/linear_animation.cc \
     39 	ui/gfx/animation/multi_animation.cc \
     40 	ui/gfx/animation/slide_animation.cc \
     41 	ui/gfx/animation/tween.cc \
     42 	ui/gfx/blit.cc \
     43 	ui/gfx/box_f.cc \
     44 	ui/gfx/canvas.cc \
     45 	ui/gfx/canvas_android.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/favicon_size.cc \
     53 	ui/gfx/font.cc \
     54 	ui/gfx/font_list.cc \
     55 	ui/gfx/font_render_params_android.cc \
     56 	ui/gfx/gfx_paths.cc \
     57 	ui/gfx/gpu_memory_buffer.cc \
     58 	ui/gfx/image/canvas_image_source.cc \
     59 	ui/gfx/image/image.cc \
     60 	ui/gfx/image/image_family.cc \
     61 	ui/gfx/image/image_png_rep.cc \
     62 	ui/gfx/image/image_skia.cc \
     63 	ui/gfx/image/image_skia_operations.cc \
     64 	ui/gfx/image/image_skia_rep.cc \
     65 	ui/gfx/image/image_util.cc \
     66 	ui/gfx/insets.cc \
     67 	ui/gfx/insets_f.cc \
     68 	ui/gfx/interpolated_transform.cc \
     69 	ui/gfx/matrix3_f.cc \
     70 	ui/gfx/platform_font_android.cc \
     71 	ui/gfx/point.cc \
     72 	ui/gfx/point3_f.cc \
     73 	ui/gfx/point_conversions.cc \
     74 	ui/gfx/point_f.cc \
     75 	ui/gfx/quad_f.cc \
     76 	ui/gfx/range/range.cc \
     77 	ui/gfx/rect.cc \
     78 	ui/gfx/rect_conversions.cc \
     79 	ui/gfx/rect_f.cc \
     80 	ui/gfx/screen.cc \
     81 	ui/gfx/screen_android.cc \
     82 	ui/gfx/scrollbar_size.cc \
     83 	ui/gfx/sequential_id_generator.cc \
     84 	ui/gfx/shadow_value.cc \
     85 	ui/gfx/size.cc \
     86 	ui/gfx/size_conversions.cc \
     87 	ui/gfx/size_f.cc \
     88 	ui/gfx/skbitmap_operations.cc \
     89 	ui/gfx/skia_util.cc \
     90 	ui/gfx/switches.cc \
     91 	ui/gfx/sys_color_change_listener.cc \
     92 	ui/gfx/text_elider.cc \
     93 	ui/gfx/text_utils.cc \
     94 	ui/gfx/text_utils_android.cc \
     95 	ui/gfx/transform.cc \
     96 	ui/gfx/transform_util.cc \
     97 	ui/gfx/ui_gfx_exports.cc \
     98 	ui/gfx/utf16_indexing.cc \
     99 	ui/gfx/vector2d.cc \
    100 	ui/gfx/vector2d_conversions.cc \
    101 	ui/gfx/vector2d_f.cc \
    102 	ui/gfx/vector3d_f.cc
    103 
    104 
    105 # Flags passed to both C and C++ files.
    106 MY_CFLAGS_Debug := \
    107 	-fstack-protector \
    108 	--param=ssp-buffer-size=4 \
    109 	 \
    110 	-fno-exceptions \
    111 	-fno-strict-aliasing \
    112 	-Wall \
    113 	-Wno-unused-parameter \
    114 	-Wno-missing-field-initializers \
    115 	-fvisibility=hidden \
    116 	-pipe \
    117 	-fPIC \
    118 	-EL \
    119 	-mhard-float \
    120 	-ffunction-sections \
    121 	-funwind-tables \
    122 	-g \
    123 	-fstack-protector \
    124 	-fno-short-enums \
    125 	-finline-limit=64 \
    126 	-Wa,--noexecstack \
    127 	-U_FORTIFY_SOURCE \
    128 	-Wno-extra \
    129 	-Wno-ignored-qualifiers \
    130 	-Wno-type-limits \
    131 	-Os \
    132 	-g \
    133 	-fomit-frame-pointer \
    134 	-fdata-sections \
    135 	-ffunction-sections
    136 
    137 MY_DEFS_Debug := \
    138 	'-DV8_DEPRECATION_WARNINGS' \
    139 	'-D_FILE_OFFSET_BITS=64' \
    140 	'-DNO_TCMALLOC' \
    141 	'-DDISABLE_NACL' \
    142 	'-DCHROMIUM_BUILD' \
    143 	'-DUSE_LIBJPEG_TURBO=1' \
    144 	'-DUSE_PROPRIETARY_CODECS' \
    145 	'-DENABLE_CONFIGURATION_POLICY' \
    146 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    147 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    148 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    149 	'-DUSE_OPENSSL=1' \
    150 	'-DENABLE_EGLIMAGE=1' \
    151 	'-DCLD_VERSION=1' \
    152 	'-DENABLE_PRINTING=1' \
    153 	'-DENABLE_MANAGED_USERS=1' \
    154 	'-DGFX_IMPLEMENTATION' \
    155 	'-DPOSIX_AVOID_MMAP' \
    156 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    157 	'-DU_USING_ICU_NAMESPACE=0' \
    158 	'-DCHROME_PNG_WRITE_SUPPORT' \
    159 	'-DPNG_USER_CONFIG' \
    160 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    161 	'-DUSE_SYSTEM_LIBJPEG' \
    162 	'-D__STDC_CONSTANT_MACROS' \
    163 	'-D__STDC_FORMAT_MACROS' \
    164 	'-DANDROID' \
    165 	'-D__GNU_SOURCE=1' \
    166 	'-DUSE_STLPORT=1' \
    167 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    168 	'-DCHROME_BUILD_ID=""' \
    169 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    170 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    171 	'-D_DEBUG'
    172 
    173 
    174 # Include paths placed before CFLAGS/CPPFLAGS
    175 LOCAL_C_INCLUDES_Debug := \
    176 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    177 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    178 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    179 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    180 	$(LOCAL_PATH) \
    181 	$(LOCAL_PATH)/skia/config \
    182 	$(PWD)/external/skia/include \
    183 	$(PWD)/external/skia/include/core \
    184 	$(LOCAL_PATH)/third_party/skia/src/core \
    185 	$(LOCAL_PATH)/skia/ext \
    186 	$(PWD)/external/icu4c/common \
    187 	$(PWD)/external/icu4c/i18n \
    188 	$(LOCAL_PATH)/third_party/libpng \
    189 	$(LOCAL_PATH)/third_party/zlib \
    190 	$(PWD)/external/jpeg \
    191 	$(gyp_shared_intermediate_dir)/ui/gfx \
    192 	$(PWD)/frameworks/wilhelm/include \
    193 	$(PWD)/bionic \
    194 	$(PWD)/external/stlport/stlport
    195 
    196 
    197 # Flags passed to only C++ (and not C) files.
    198 LOCAL_CPPFLAGS_Debug := \
    199 	-fno-rtti \
    200 	-fno-threadsafe-statics \
    201 	-fvisibility-inlines-hidden \
    202 	-Wsign-compare \
    203 	-Wno-uninitialized \
    204 	-Wno-error=c++0x-compat \
    205 	-Wno-non-virtual-dtor \
    206 	-Wno-sign-promo
    207 
    208 
    209 # Flags passed to both C and C++ files.
    210 MY_CFLAGS_Release := \
    211 	-fstack-protector \
    212 	--param=ssp-buffer-size=4 \
    213 	 \
    214 	-fno-exceptions \
    215 	-fno-strict-aliasing \
    216 	-Wall \
    217 	-Wno-unused-parameter \
    218 	-Wno-missing-field-initializers \
    219 	-fvisibility=hidden \
    220 	-pipe \
    221 	-fPIC \
    222 	-EL \
    223 	-mhard-float \
    224 	-ffunction-sections \
    225 	-funwind-tables \
    226 	-g \
    227 	-fstack-protector \
    228 	-fno-short-enums \
    229 	-finline-limit=64 \
    230 	-Wa,--noexecstack \
    231 	-U_FORTIFY_SOURCE \
    232 	-Wno-extra \
    233 	-Wno-ignored-qualifiers \
    234 	-Wno-type-limits \
    235 	-Os \
    236 	-fno-ident \
    237 	-fdata-sections \
    238 	-ffunction-sections \
    239 	-fomit-frame-pointer
    240 
    241 MY_DEFS_Release := \
    242 	'-DV8_DEPRECATION_WARNINGS' \
    243 	'-D_FILE_OFFSET_BITS=64' \
    244 	'-DNO_TCMALLOC' \
    245 	'-DDISABLE_NACL' \
    246 	'-DCHROMIUM_BUILD' \
    247 	'-DUSE_LIBJPEG_TURBO=1' \
    248 	'-DUSE_PROPRIETARY_CODECS' \
    249 	'-DENABLE_CONFIGURATION_POLICY' \
    250 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    251 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    252 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    253 	'-DUSE_OPENSSL=1' \
    254 	'-DENABLE_EGLIMAGE=1' \
    255 	'-DCLD_VERSION=1' \
    256 	'-DENABLE_PRINTING=1' \
    257 	'-DENABLE_MANAGED_USERS=1' \
    258 	'-DGFX_IMPLEMENTATION' \
    259 	'-DPOSIX_AVOID_MMAP' \
    260 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    261 	'-DU_USING_ICU_NAMESPACE=0' \
    262 	'-DCHROME_PNG_WRITE_SUPPORT' \
    263 	'-DPNG_USER_CONFIG' \
    264 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    265 	'-DUSE_SYSTEM_LIBJPEG' \
    266 	'-D__STDC_CONSTANT_MACROS' \
    267 	'-D__STDC_FORMAT_MACROS' \
    268 	'-DANDROID' \
    269 	'-D__GNU_SOURCE=1' \
    270 	'-DUSE_STLPORT=1' \
    271 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    272 	'-DCHROME_BUILD_ID=""' \
    273 	'-DNDEBUG' \
    274 	'-DNVALGRIND' \
    275 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    276 	'-D_FORTIFY_SOURCE=2'
    277 
    278 
    279 # Include paths placed before CFLAGS/CPPFLAGS
    280 LOCAL_C_INCLUDES_Release := \
    281 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    282 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    283 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    284 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    285 	$(LOCAL_PATH) \
    286 	$(LOCAL_PATH)/skia/config \
    287 	$(PWD)/external/skia/include \
    288 	$(PWD)/external/skia/include/core \
    289 	$(LOCAL_PATH)/third_party/skia/src/core \
    290 	$(LOCAL_PATH)/skia/ext \
    291 	$(PWD)/external/icu4c/common \
    292 	$(PWD)/external/icu4c/i18n \
    293 	$(LOCAL_PATH)/third_party/libpng \
    294 	$(LOCAL_PATH)/third_party/zlib \
    295 	$(PWD)/external/jpeg \
    296 	$(gyp_shared_intermediate_dir)/ui/gfx \
    297 	$(PWD)/frameworks/wilhelm/include \
    298 	$(PWD)/bionic \
    299 	$(PWD)/external/stlport/stlport
    300 
    301 
    302 # Flags passed to only C++ (and not C) files.
    303 LOCAL_CPPFLAGS_Release := \
    304 	-fno-rtti \
    305 	-fno-threadsafe-statics \
    306 	-fvisibility-inlines-hidden \
    307 	-Wsign-compare \
    308 	-Wno-uninitialized \
    309 	-Wno-error=c++0x-compat \
    310 	-Wno-non-virtual-dtor \
    311 	-Wno-sign-promo
    312 
    313 
    314 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    315 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    316 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    317 ### Rules for final target.
    318 
    319 LOCAL_LDFLAGS_Debug := \
    320 	-Wl,-z,now \
    321 	-Wl,-z,relro \
    322 	-Wl,-z,noexecstack \
    323 	-fPIC \
    324 	-EL \
    325 	-Wl,--no-keep-memory \
    326 	-nostdlib \
    327 	-Wl,--no-undefined \
    328 	-Wl,--exclude-libs=ALL \
    329 	-Wl,--fatal-warnings \
    330 	-Wl,--gc-sections \
    331 	-Wl,--warn-shared-textrel \
    332 	-Wl,-O1 \
    333 	-Wl,--as-needed
    334 
    335 
    336 LOCAL_LDFLAGS_Release := \
    337 	-Wl,-z,now \
    338 	-Wl,-z,relro \
    339 	-Wl,-z,noexecstack \
    340 	-fPIC \
    341 	-EL \
    342 	-Wl,--no-keep-memory \
    343 	-nostdlib \
    344 	-Wl,--no-undefined \
    345 	-Wl,--exclude-libs=ALL \
    346 	-Wl,-O1 \
    347 	-Wl,--as-needed \
    348 	-Wl,--gc-sections \
    349 	-Wl,--fatal-warnings \
    350 	-Wl,--warn-shared-textrel
    351 
    352 
    353 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    354 
    355 LOCAL_STATIC_LIBRARIES :=
    356 
    357 # Enable grouping to fix circular references
    358 LOCAL_GROUP_STATIC_LIBRARIES := true
    359 
    360 LOCAL_SHARED_LIBRARIES := \
    361 	libskia \
    362 	libstlport \
    363 	libdl
    364 
    365 # Add target alias to "gyp_all_modules" target.
    366 .PHONY: gyp_all_modules
    367 gyp_all_modules: ui_gfx_gfx_gyp
    368 
    369 # Alias gyp target name.
    370 .PHONY: gfx
    371 gfx: ui_gfx_gfx_gyp
    372 
    373 include $(BUILD_STATIC_LIBRARY)
    374