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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
     15 	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
     16 	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_minimal_gyp,,,$(GYP_VAR_PREFIX))/blink_minimal.stamp \
     17 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_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/grcontext_for_webgraphicscontext3d.cc \
     32 	webkit/common/gpu/webgraphicscontext3d_impl.cc \
     33 	webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
     34 
     35 
     36 # Flags passed to both C and C++ files.
     37 MY_CFLAGS_Debug := \
     38 	--param=ssp-buffer-size=4 \
     39 	-Werror \
     40 	-fno-strict-aliasing \
     41 	-Wall \
     42 	-Wno-unused-parameter \
     43 	-Wno-missing-field-initializers \
     44 	-fvisibility=hidden \
     45 	-pipe \
     46 	-fPIC \
     47 	-Wno-unused-local-typedefs \
     48 	-msse2 \
     49 	-mfpmath=sse \
     50 	-mmmx \
     51 	-m32 \
     52 	-ffunction-sections \
     53 	-funwind-tables \
     54 	-g \
     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 	-Wno-unused-but-set-variable \
     63 	-fno-stack-protector \
     64 	-Os \
     65 	-g \
     66 	-gdwarf-4 \
     67 	-fdata-sections \
     68 	-ffunction-sections \
     69 	-fomit-frame-pointer \
     70 	-funwind-tables
     71 
     72 MY_DEFS_Debug := \
     73 	'-DV8_DEPRECATION_WARNINGS' \
     74 	'-D_FILE_OFFSET_BITS=64' \
     75 	'-DNO_TCMALLOC' \
     76 	'-DDISABLE_NACL' \
     77 	'-DCHROMIUM_BUILD' \
     78 	'-DUSE_LIBJPEG_TURBO=1' \
     79 	'-DENABLE_WEBRTC=1' \
     80 	'-DUSE_PROPRIETARY_CODECS' \
     81 	'-DENABLE_BROWSER_CDMS' \
     82 	'-DENABLE_CONFIGURATION_POLICY' \
     83 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     84 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     85 	'-DENABLE_EGLIMAGE=1' \
     86 	'-DCLD_VERSION=1' \
     87 	'-DENABLE_PRINTING=1' \
     88 	'-DENABLE_MANAGED_USERS=1' \
     89 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     90 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     91 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     92 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     93 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     94 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     95 	'-DVIDEO_HOLE=1' \
     96 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     97 	'-DWEBKIT_GPU_IMPLEMENTATION' \
     98 	'-DSK_ENABLE_INST_COUNT=0' \
     99 	'-DSK_SUPPORT_GPU=1' \
    100 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    101 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    102 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    103 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    104 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    105 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    106 	'-DSK_BUILD_FOR_ANDROID' \
    107 	'-DSK_USE_POSIX_THREADS' \
    108 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    109 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    110 	'-DMESA_EGL_NO_X11_HEADERS' \
    111 	'-DU_USING_ICU_NAMESPACE=0' \
    112 	'-DU_ENABLE_DYLOAD=0' \
    113 	'-DUSE_OPENSSL=1' \
    114 	'-DUSE_OPENSSL_CERTS=1' \
    115 	'-D__STDC_CONSTANT_MACROS' \
    116 	'-D__STDC_FORMAT_MACROS' \
    117 	'-DANDROID' \
    118 	'-D__GNU_SOURCE=1' \
    119 	'-DUSE_STLPORT=1' \
    120 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    121 	'-DCHROME_BUILD_ID=""' \
    122 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    123 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    124 	'-D_DEBUG'
    125 
    126 
    127 # Include paths placed before CFLAGS/CPPFLAGS
    128 LOCAL_C_INCLUDES_Debug := \
    129 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    130 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    131 	$(gyp_shared_intermediate_dir) \
    132 	$(LOCAL_PATH) \
    133 	$(LOCAL_PATH)/third_party/khronos \
    134 	$(LOCAL_PATH)/gpu \
    135 	$(LOCAL_PATH)/skia/config \
    136 	$(LOCAL_PATH)/third_party/WebKit/Source \
    137 	$(LOCAL_PATH)/third_party/skia/src/core \
    138 	$(LOCAL_PATH)/third_party/skia/include/core \
    139 	$(LOCAL_PATH)/third_party/skia/include/effects \
    140 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    141 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    142 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    143 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    144 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    145 	$(LOCAL_PATH)/third_party/skia/include/ports \
    146 	$(LOCAL_PATH)/third_party/skia/include/utils \
    147 	$(LOCAL_PATH)/skia/ext \
    148 	$(gyp_shared_intermediate_dir)/ui/gl \
    149 	$(LOCAL_PATH)/third_party/mesa/src/include \
    150 	$(PWD)/external/icu/icu4c/source/common \
    151 	$(PWD)/external/icu/icu4c/source/i18n \
    152 	$(PWD)/frameworks/wilhelm/include \
    153 	$(PWD)/bionic \
    154 	$(PWD)/external/stlport/stlport
    155 
    156 
    157 # Flags passed to only C++ (and not C) files.
    158 LOCAL_CPPFLAGS_Debug := \
    159 	-fno-exceptions \
    160 	-fno-rtti \
    161 	-fno-threadsafe-statics \
    162 	-fvisibility-inlines-hidden \
    163 	-Wsign-compare \
    164 	-std=gnu++11 \
    165 	-Wno-narrowing \
    166 	-Wno-literal-suffix \
    167 	-Wno-non-virtual-dtor \
    168 	-Wno-sign-promo
    169 
    170 
    171 # Flags passed to both C and C++ files.
    172 MY_CFLAGS_Release := \
    173 	--param=ssp-buffer-size=4 \
    174 	-Werror \
    175 	-fno-strict-aliasing \
    176 	-Wall \
    177 	-Wno-unused-parameter \
    178 	-Wno-missing-field-initializers \
    179 	-fvisibility=hidden \
    180 	-pipe \
    181 	-fPIC \
    182 	-Wno-unused-local-typedefs \
    183 	-msse2 \
    184 	-mfpmath=sse \
    185 	-mmmx \
    186 	-m32 \
    187 	-ffunction-sections \
    188 	-funwind-tables \
    189 	-g \
    190 	-fno-short-enums \
    191 	-finline-limit=64 \
    192 	-Wa,--noexecstack \
    193 	-U_FORTIFY_SOURCE \
    194 	-Wno-extra \
    195 	-Wno-ignored-qualifiers \
    196 	-Wno-type-limits \
    197 	-Wno-unused-but-set-variable \
    198 	-fno-stack-protector \
    199 	-Os \
    200 	-fno-ident \
    201 	-fdata-sections \
    202 	-ffunction-sections \
    203 	-fomit-frame-pointer \
    204 	-funwind-tables
    205 
    206 MY_DEFS_Release := \
    207 	'-DV8_DEPRECATION_WARNINGS' \
    208 	'-D_FILE_OFFSET_BITS=64' \
    209 	'-DNO_TCMALLOC' \
    210 	'-DDISABLE_NACL' \
    211 	'-DCHROMIUM_BUILD' \
    212 	'-DUSE_LIBJPEG_TURBO=1' \
    213 	'-DENABLE_WEBRTC=1' \
    214 	'-DUSE_PROPRIETARY_CODECS' \
    215 	'-DENABLE_BROWSER_CDMS' \
    216 	'-DENABLE_CONFIGURATION_POLICY' \
    217 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    218 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    219 	'-DENABLE_EGLIMAGE=1' \
    220 	'-DCLD_VERSION=1' \
    221 	'-DENABLE_PRINTING=1' \
    222 	'-DENABLE_MANAGED_USERS=1' \
    223 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    224 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    225 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    226 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    227 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    228 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    229 	'-DVIDEO_HOLE=1' \
    230 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    231 	'-DWEBKIT_GPU_IMPLEMENTATION' \
    232 	'-DSK_ENABLE_INST_COUNT=0' \
    233 	'-DSK_SUPPORT_GPU=1' \
    234 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    235 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    236 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    237 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    238 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    239 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    240 	'-DSK_BUILD_FOR_ANDROID' \
    241 	'-DSK_USE_POSIX_THREADS' \
    242 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    243 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    244 	'-DMESA_EGL_NO_X11_HEADERS' \
    245 	'-DU_USING_ICU_NAMESPACE=0' \
    246 	'-DU_ENABLE_DYLOAD=0' \
    247 	'-DUSE_OPENSSL=1' \
    248 	'-DUSE_OPENSSL_CERTS=1' \
    249 	'-D__STDC_CONSTANT_MACROS' \
    250 	'-D__STDC_FORMAT_MACROS' \
    251 	'-DANDROID' \
    252 	'-D__GNU_SOURCE=1' \
    253 	'-DUSE_STLPORT=1' \
    254 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    255 	'-DCHROME_BUILD_ID=""' \
    256 	'-DNDEBUG' \
    257 	'-DNVALGRIND' \
    258 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    259 	'-D_FORTIFY_SOURCE=2'
    260 
    261 
    262 # Include paths placed before CFLAGS/CPPFLAGS
    263 LOCAL_C_INCLUDES_Release := \
    264 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    265 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    266 	$(gyp_shared_intermediate_dir) \
    267 	$(LOCAL_PATH) \
    268 	$(LOCAL_PATH)/third_party/khronos \
    269 	$(LOCAL_PATH)/gpu \
    270 	$(LOCAL_PATH)/skia/config \
    271 	$(LOCAL_PATH)/third_party/WebKit/Source \
    272 	$(LOCAL_PATH)/third_party/skia/src/core \
    273 	$(LOCAL_PATH)/third_party/skia/include/core \
    274 	$(LOCAL_PATH)/third_party/skia/include/effects \
    275 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    276 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    277 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    278 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    279 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    280 	$(LOCAL_PATH)/third_party/skia/include/ports \
    281 	$(LOCAL_PATH)/third_party/skia/include/utils \
    282 	$(LOCAL_PATH)/skia/ext \
    283 	$(gyp_shared_intermediate_dir)/ui/gl \
    284 	$(LOCAL_PATH)/third_party/mesa/src/include \
    285 	$(PWD)/external/icu/icu4c/source/common \
    286 	$(PWD)/external/icu/icu4c/source/i18n \
    287 	$(PWD)/frameworks/wilhelm/include \
    288 	$(PWD)/bionic \
    289 	$(PWD)/external/stlport/stlport
    290 
    291 
    292 # Flags passed to only C++ (and not C) files.
    293 LOCAL_CPPFLAGS_Release := \
    294 	-fno-exceptions \
    295 	-fno-rtti \
    296 	-fno-threadsafe-statics \
    297 	-fvisibility-inlines-hidden \
    298 	-Wsign-compare \
    299 	-std=gnu++11 \
    300 	-Wno-narrowing \
    301 	-Wno-literal-suffix \
    302 	-Wno-non-virtual-dtor \
    303 	-Wno-sign-promo
    304 
    305 
    306 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    307 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    308 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    309 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    310 ### Rules for final target.
    311 
    312 LOCAL_SHARED_LIBRARIES := \
    313 	libstlport \
    314 	libdl
    315 
    316 # Add target alias to "gyp_all_modules" target.
    317 .PHONY: gyp_all_modules
    318 gyp_all_modules: webkit_common_gpu_webkit_gpu_gyp
    319 
    320 # Alias gyp target name.
    321 .PHONY: webkit_gpu
    322 webkit_gpu: webkit_common_gpu_webkit_gpu_gyp
    323 
    324 include $(BUILD_STATIC_LIBRARY)
    325