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