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