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