Home | History | Annotate | Download | only in surface
      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_surface_surface_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,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \
     16 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a
     17 
     18 GYP_GENERATED_OUTPUTS :=
     19 
     20 # Make sure our deps and generated files are built first.
     21 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     22 
     23 LOCAL_CPP_EXTENSION := .cc
     24 LOCAL_GENERATED_SOURCES :=
     25 
     26 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     27 
     28 LOCAL_SRC_FILES := \
     29 	ui/surface/surface_switches.cc \
     30 	ui/surface/transport_dib.cc \
     31 	ui/surface/transport_dib_posix.cc
     32 
     33 
     34 # Flags passed to both C and C++ files.
     35 MY_CFLAGS_Debug := \
     36 	-fstack-protector \
     37 	--param=ssp-buffer-size=4 \
     38 	-Werror \
     39 	-fno-exceptions \
     40 	-fno-strict-aliasing \
     41 	-Wall \
     42 	-Wno-unused-parameter \
     43 	-Wno-missing-field-initializers \
     44 	-fvisibility=hidden \
     45 	-pipe \
     46 	-fPIC \
     47 	-Wno-unknown-pragmas \
     48 	-fno-tree-sra \
     49 	-fuse-ld=gold \
     50 	-Wno-psabi \
     51 	-ffunction-sections \
     52 	-funwind-tables \
     53 	-g \
     54 	-fstack-protector \
     55 	-fno-short-enums \
     56 	-finline-limit=64 \
     57 	-Wa,--noexecstack \
     58 	-U_FORTIFY_SOURCE \
     59 	-Wno-extra \
     60 	-Wno-ignored-qualifiers \
     61 	-Wno-type-limits \
     62 	-Os \
     63 	-g \
     64 	-fomit-frame-pointer \
     65 	-fdata-sections \
     66 	-ffunction-sections
     67 
     68 MY_DEFS_Debug := \
     69 	'-DV8_DEPRECATION_WARNINGS' \
     70 	'-D_FILE_OFFSET_BITS=64' \
     71 	'-DNO_TCMALLOC' \
     72 	'-DDISABLE_NACL' \
     73 	'-DCHROMIUM_BUILD' \
     74 	'-DUSE_LIBJPEG_TURBO=1' \
     75 	'-DUSE_PROPRIETARY_CODECS' \
     76 	'-DENABLE_CONFIGURATION_POLICY' \
     77 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     78 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     79 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     80 	'-DUSE_OPENSSL=1' \
     81 	'-DENABLE_EGLIMAGE=1' \
     82 	'-DCLD_VERSION=1' \
     83 	'-DENABLE_PRINTING=1' \
     84 	'-DENABLE_MANAGED_USERS=1' \
     85 	'-DSURFACE_IMPLEMENTATION' \
     86 	'-DMEDIA_DISABLE_LIBVPX' \
     87 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
     88 	'-DU_USING_ICU_NAMESPACE=0' \
     89 	'-DMESA_EGL_NO_X11_HEADERS' \
     90 	'-DPOSIX_AVOID_MMAP' \
     91 	'-D__STDC_CONSTANT_MACROS' \
     92 	'-D__STDC_FORMAT_MACROS' \
     93 	'-DANDROID' \
     94 	'-D__GNU_SOURCE=1' \
     95 	'-DUSE_STLPORT=1' \
     96 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     97 	'-DCHROME_BUILD_ID=""' \
     98 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     99 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    100 	'-D_DEBUG'
    101 
    102 
    103 # Include paths placed before CFLAGS/CPPFLAGS
    104 LOCAL_C_INCLUDES_Debug := \
    105 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    106 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    107 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    108 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    109 	$(LOCAL_PATH)/third_party/khronos \
    110 	$(LOCAL_PATH)/gpu \
    111 	$(LOCAL_PATH) \
    112 	$(LOCAL_PATH)/skia/config \
    113 	$(PWD)/external/skia/include \
    114 	$(PWD)/external/skia/include/core \
    115 	$(LOCAL_PATH)/third_party/skia/src/core \
    116 	$(LOCAL_PATH)/skia/ext \
    117 	$(PWD)/external/icu4c/common \
    118 	$(PWD)/external/icu4c/i18n \
    119 	$(gyp_shared_intermediate_dir)/ui/gl \
    120 	$(LOCAL_PATH)/third_party/mesa/src/include \
    121 	$(PWD)/frameworks/wilhelm/include \
    122 	$(PWD)/bionic \
    123 	$(PWD)/external/stlport/stlport
    124 
    125 
    126 # Flags passed to only C++ (and not C) files.
    127 LOCAL_CPPFLAGS_Debug := \
    128 	-fno-rtti \
    129 	-fno-threadsafe-statics \
    130 	-fvisibility-inlines-hidden \
    131 	-Wsign-compare \
    132 	-Wno-abi \
    133 	-Wno-error=c++0x-compat \
    134 	-Wno-non-virtual-dtor \
    135 	-Wno-sign-promo
    136 
    137 
    138 # Flags passed to both C and C++ files.
    139 MY_CFLAGS_Release := \
    140 	-fstack-protector \
    141 	--param=ssp-buffer-size=4 \
    142 	-Werror \
    143 	-fno-exceptions \
    144 	-fno-strict-aliasing \
    145 	-Wall \
    146 	-Wno-unused-parameter \
    147 	-Wno-missing-field-initializers \
    148 	-fvisibility=hidden \
    149 	-pipe \
    150 	-fPIC \
    151 	-Wno-unknown-pragmas \
    152 	-fno-tree-sra \
    153 	-fuse-ld=gold \
    154 	-Wno-psabi \
    155 	-ffunction-sections \
    156 	-funwind-tables \
    157 	-g \
    158 	-fstack-protector \
    159 	-fno-short-enums \
    160 	-finline-limit=64 \
    161 	-Wa,--noexecstack \
    162 	-U_FORTIFY_SOURCE \
    163 	-Wno-extra \
    164 	-Wno-ignored-qualifiers \
    165 	-Wno-type-limits \
    166 	-Os \
    167 	-fno-ident \
    168 	-fdata-sections \
    169 	-ffunction-sections \
    170 	-fomit-frame-pointer
    171 
    172 MY_DEFS_Release := \
    173 	'-DV8_DEPRECATION_WARNINGS' \
    174 	'-D_FILE_OFFSET_BITS=64' \
    175 	'-DNO_TCMALLOC' \
    176 	'-DDISABLE_NACL' \
    177 	'-DCHROMIUM_BUILD' \
    178 	'-DUSE_LIBJPEG_TURBO=1' \
    179 	'-DUSE_PROPRIETARY_CODECS' \
    180 	'-DENABLE_CONFIGURATION_POLICY' \
    181 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    182 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    183 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    184 	'-DUSE_OPENSSL=1' \
    185 	'-DENABLE_EGLIMAGE=1' \
    186 	'-DCLD_VERSION=1' \
    187 	'-DENABLE_PRINTING=1' \
    188 	'-DENABLE_MANAGED_USERS=1' \
    189 	'-DSURFACE_IMPLEMENTATION' \
    190 	'-DMEDIA_DISABLE_LIBVPX' \
    191 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    192 	'-DU_USING_ICU_NAMESPACE=0' \
    193 	'-DMESA_EGL_NO_X11_HEADERS' \
    194 	'-DPOSIX_AVOID_MMAP' \
    195 	'-D__STDC_CONSTANT_MACROS' \
    196 	'-D__STDC_FORMAT_MACROS' \
    197 	'-DANDROID' \
    198 	'-D__GNU_SOURCE=1' \
    199 	'-DUSE_STLPORT=1' \
    200 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    201 	'-DCHROME_BUILD_ID=""' \
    202 	'-DNDEBUG' \
    203 	'-DNVALGRIND' \
    204 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    205 	'-D_FORTIFY_SOURCE=2'
    206 
    207 
    208 # Include paths placed before CFLAGS/CPPFLAGS
    209 LOCAL_C_INCLUDES_Release := \
    210 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    211 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    212 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    213 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    214 	$(LOCAL_PATH)/third_party/khronos \
    215 	$(LOCAL_PATH)/gpu \
    216 	$(LOCAL_PATH) \
    217 	$(LOCAL_PATH)/skia/config \
    218 	$(PWD)/external/skia/include \
    219 	$(PWD)/external/skia/include/core \
    220 	$(LOCAL_PATH)/third_party/skia/src/core \
    221 	$(LOCAL_PATH)/skia/ext \
    222 	$(PWD)/external/icu4c/common \
    223 	$(PWD)/external/icu4c/i18n \
    224 	$(gyp_shared_intermediate_dir)/ui/gl \
    225 	$(LOCAL_PATH)/third_party/mesa/src/include \
    226 	$(PWD)/frameworks/wilhelm/include \
    227 	$(PWD)/bionic \
    228 	$(PWD)/external/stlport/stlport
    229 
    230 
    231 # Flags passed to only C++ (and not C) files.
    232 LOCAL_CPPFLAGS_Release := \
    233 	-fno-rtti \
    234 	-fno-threadsafe-statics \
    235 	-fvisibility-inlines-hidden \
    236 	-Wsign-compare \
    237 	-Wno-abi \
    238 	-Wno-error=c++0x-compat \
    239 	-Wno-non-virtual-dtor \
    240 	-Wno-sign-promo
    241 
    242 
    243 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    244 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    245 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    246 ### Rules for final target.
    247 
    248 LOCAL_LDFLAGS_Debug := \
    249 	-Wl,-z,now \
    250 	-Wl,-z,relro \
    251 	-Wl,-z,noexecstack \
    252 	-fPIC \
    253 	-Wl,-z,relro \
    254 	-Wl,-z,now \
    255 	-fuse-ld=gold \
    256 	-nostdlib \
    257 	-Wl,--no-undefined \
    258 	-Wl,--exclude-libs=ALL \
    259 	-Wl,--icf=safe \
    260 	-Wl,--fatal-warnings \
    261 	-Wl,--gc-sections \
    262 	-Wl,--warn-shared-textrel \
    263 	-Wl,-O1 \
    264 	-Wl,--as-needed
    265 
    266 
    267 LOCAL_LDFLAGS_Release := \
    268 	-Wl,-z,now \
    269 	-Wl,-z,relro \
    270 	-Wl,-z,noexecstack \
    271 	-fPIC \
    272 	-Wl,-z,relro \
    273 	-Wl,-z,now \
    274 	-fuse-ld=gold \
    275 	-nostdlib \
    276 	-Wl,--no-undefined \
    277 	-Wl,--exclude-libs=ALL \
    278 	-Wl,--icf=safe \
    279 	-Wl,-O1 \
    280 	-Wl,--as-needed \
    281 	-Wl,--gc-sections \
    282 	-Wl,--fatal-warnings \
    283 	-Wl,--warn-shared-textrel
    284 
    285 
    286 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    287 
    288 LOCAL_STATIC_LIBRARIES := \
    289 	ui_gl_gl_gyp \
    290 	ui_ui_gyp
    291 
    292 # Enable grouping to fix circular references
    293 LOCAL_GROUP_STATIC_LIBRARIES := true
    294 
    295 LOCAL_SHARED_LIBRARIES := \
    296 	libskia \
    297 	libstlport \
    298 	libdl
    299 
    300 # Add target alias to "gyp_all_modules" target.
    301 .PHONY: gyp_all_modules
    302 gyp_all_modules: ui_surface_surface_gyp
    303 
    304 # Alias gyp target name.
    305 .PHONY: surface
    306 surface: ui_surface_surface_gyp
    307 
    308 include $(BUILD_STATIC_LIBRARY)
    309