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 := gpu_gles2_implementation_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,third_party_khronos_khronos_headers_gyp,,,$(GYP_VAR_PREFIX))/khronos_headers.stamp \
     15 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a
     16 
     17 GYP_GENERATED_OUTPUTS :=
     18 
     19 # Make sure our deps and generated files are built first.
     20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     21 
     22 LOCAL_CPP_EXTENSION := .cc
     23 LOCAL_GENERATED_SOURCES :=
     24 
     25 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     26 
     27 LOCAL_SRC_FILES := \
     28 	gpu/command_buffer/client/buffer_tracker.cc \
     29 	gpu/command_buffer/client/client_context_state.cc \
     30 	gpu/command_buffer/client/gles2_implementation.cc \
     31 	gpu/command_buffer/client/gles2_trace_implementation.cc \
     32 	gpu/command_buffer/client/gpu_memory_buffer_tracker.cc \
     33 	gpu/command_buffer/client/program_info_manager.cc \
     34 	gpu/command_buffer/client/query_tracker.cc \
     35 	gpu/command_buffer/client/share_group.cc \
     36 	gpu/command_buffer/client/vertex_array_object_manager.cc
     37 
     38 
     39 # Flags passed to both C and C++ files.
     40 MY_CFLAGS_Debug := \
     41 	-fstack-protector \
     42 	--param=ssp-buffer-size=4 \
     43 	-Werror \
     44 	-fno-strict-aliasing \
     45 	-Wall \
     46 	-Wno-unused-parameter \
     47 	-Wno-missing-field-initializers \
     48 	-fvisibility=hidden \
     49 	-pipe \
     50 	-fPIC \
     51 	-Wno-unused-local-typedefs \
     52 	-m64 \
     53 	-march=x86-64 \
     54 	-ffunction-sections \
     55 	-funwind-tables \
     56 	-g \
     57 	-fstack-protector \
     58 	-fno-short-enums \
     59 	-finline-limit=64 \
     60 	-Wa,--noexecstack \
     61 	-U_FORTIFY_SOURCE \
     62 	-Wno-extra \
     63 	-Wno-ignored-qualifiers \
     64 	-Wno-type-limits \
     65 	-Wno-unused-but-set-variable \
     66 	-Os \
     67 	-g \
     68 	-gdwarf-4 \
     69 	-fdata-sections \
     70 	-ffunction-sections \
     71 	-fomit-frame-pointer \
     72 	-funwind-tables
     73 
     74 MY_DEFS_Debug := \
     75 	'-DV8_DEPRECATION_WARNINGS' \
     76 	'-D_FILE_OFFSET_BITS=64' \
     77 	'-DNO_TCMALLOC' \
     78 	'-DDISABLE_NACL' \
     79 	'-DCHROMIUM_BUILD' \
     80 	'-DUSE_LIBJPEG_TURBO=1' \
     81 	'-DENABLE_WEBRTC=1' \
     82 	'-DUSE_PROPRIETARY_CODECS' \
     83 	'-DENABLE_BROWSER_CDMS' \
     84 	'-DENABLE_CONFIGURATION_POLICY' \
     85 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     86 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     87 	'-DENABLE_EGLIMAGE=1' \
     88 	'-DCLD_VERSION=1' \
     89 	'-DENABLE_PRINTING=1' \
     90 	'-DENABLE_MANAGED_USERS=1' \
     91 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     92 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     93 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     94 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     95 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     96 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     97 	'-DVIDEO_HOLE=1' \
     98 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     99 	'-DGLES2_IMPL_IMPLEMENTATION' \
    100 	'-DMESA_EGL_NO_X11_HEADERS' \
    101 	'-DUSE_OPENSSL=1' \
    102 	'-DUSE_OPENSSL_CERTS=1' \
    103 	'-D__STDC_CONSTANT_MACROS' \
    104 	'-D__STDC_FORMAT_MACROS' \
    105 	'-DANDROID' \
    106 	'-D__GNU_SOURCE=1' \
    107 	'-DUSE_STLPORT=1' \
    108 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    109 	'-DCHROME_BUILD_ID=""' \
    110 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    111 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    112 	'-D_DEBUG'
    113 
    114 
    115 # Include paths placed before CFLAGS/CPPFLAGS
    116 LOCAL_C_INCLUDES_Debug := \
    117 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    118 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    119 	$(gyp_shared_intermediate_dir) \
    120 	$(LOCAL_PATH)/third_party/khronos \
    121 	$(LOCAL_PATH)/gpu \
    122 	$(LOCAL_PATH) \
    123 	$(LOCAL_PATH)/skia/config \
    124 	$(gyp_shared_intermediate_dir)/ui/gl \
    125 	$(LOCAL_PATH)/third_party/mesa/src/include \
    126 	$(PWD)/frameworks/wilhelm/include \
    127 	$(PWD)/bionic \
    128 	$(PWD)/external/stlport/stlport
    129 
    130 
    131 # Flags passed to only C++ (and not C) files.
    132 LOCAL_CPPFLAGS_Debug := \
    133 	-fno-exceptions \
    134 	-fno-rtti \
    135 	-fno-threadsafe-statics \
    136 	-fvisibility-inlines-hidden \
    137 	-Wsign-compare \
    138 	-std=gnu++11 \
    139 	-Wno-narrowing \
    140 	-Wno-literal-suffix \
    141 	-Wno-non-virtual-dtor \
    142 	-Wno-sign-promo
    143 
    144 
    145 # Flags passed to both C and C++ files.
    146 MY_CFLAGS_Release := \
    147 	-fstack-protector \
    148 	--param=ssp-buffer-size=4 \
    149 	-Werror \
    150 	-fno-strict-aliasing \
    151 	-Wall \
    152 	-Wno-unused-parameter \
    153 	-Wno-missing-field-initializers \
    154 	-fvisibility=hidden \
    155 	-pipe \
    156 	-fPIC \
    157 	-Wno-unused-local-typedefs \
    158 	-m64 \
    159 	-march=x86-64 \
    160 	-ffunction-sections \
    161 	-funwind-tables \
    162 	-g \
    163 	-fstack-protector \
    164 	-fno-short-enums \
    165 	-finline-limit=64 \
    166 	-Wa,--noexecstack \
    167 	-U_FORTIFY_SOURCE \
    168 	-Wno-extra \
    169 	-Wno-ignored-qualifiers \
    170 	-Wno-type-limits \
    171 	-Wno-unused-but-set-variable \
    172 	-Os \
    173 	-fno-ident \
    174 	-fdata-sections \
    175 	-ffunction-sections \
    176 	-fomit-frame-pointer \
    177 	-funwind-tables
    178 
    179 MY_DEFS_Release := \
    180 	'-DV8_DEPRECATION_WARNINGS' \
    181 	'-D_FILE_OFFSET_BITS=64' \
    182 	'-DNO_TCMALLOC' \
    183 	'-DDISABLE_NACL' \
    184 	'-DCHROMIUM_BUILD' \
    185 	'-DUSE_LIBJPEG_TURBO=1' \
    186 	'-DENABLE_WEBRTC=1' \
    187 	'-DUSE_PROPRIETARY_CODECS' \
    188 	'-DENABLE_BROWSER_CDMS' \
    189 	'-DENABLE_CONFIGURATION_POLICY' \
    190 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    191 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    192 	'-DENABLE_EGLIMAGE=1' \
    193 	'-DCLD_VERSION=1' \
    194 	'-DENABLE_PRINTING=1' \
    195 	'-DENABLE_MANAGED_USERS=1' \
    196 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    197 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    198 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    199 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    200 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    201 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    202 	'-DVIDEO_HOLE=1' \
    203 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    204 	'-DGLES2_IMPL_IMPLEMENTATION' \
    205 	'-DMESA_EGL_NO_X11_HEADERS' \
    206 	'-DUSE_OPENSSL=1' \
    207 	'-DUSE_OPENSSL_CERTS=1' \
    208 	'-D__STDC_CONSTANT_MACROS' \
    209 	'-D__STDC_FORMAT_MACROS' \
    210 	'-DANDROID' \
    211 	'-D__GNU_SOURCE=1' \
    212 	'-DUSE_STLPORT=1' \
    213 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    214 	'-DCHROME_BUILD_ID=""' \
    215 	'-DNDEBUG' \
    216 	'-DNVALGRIND' \
    217 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    218 	'-D_FORTIFY_SOURCE=2'
    219 
    220 
    221 # Include paths placed before CFLAGS/CPPFLAGS
    222 LOCAL_C_INCLUDES_Release := \
    223 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    224 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    225 	$(gyp_shared_intermediate_dir) \
    226 	$(LOCAL_PATH)/third_party/khronos \
    227 	$(LOCAL_PATH)/gpu \
    228 	$(LOCAL_PATH) \
    229 	$(LOCAL_PATH)/skia/config \
    230 	$(gyp_shared_intermediate_dir)/ui/gl \
    231 	$(LOCAL_PATH)/third_party/mesa/src/include \
    232 	$(PWD)/frameworks/wilhelm/include \
    233 	$(PWD)/bionic \
    234 	$(PWD)/external/stlport/stlport
    235 
    236 
    237 # Flags passed to only C++ (and not C) files.
    238 LOCAL_CPPFLAGS_Release := \
    239 	-fno-exceptions \
    240 	-fno-rtti \
    241 	-fno-threadsafe-statics \
    242 	-fvisibility-inlines-hidden \
    243 	-Wsign-compare \
    244 	-std=gnu++11 \
    245 	-Wno-narrowing \
    246 	-Wno-literal-suffix \
    247 	-Wno-non-virtual-dtor \
    248 	-Wno-sign-promo
    249 
    250 
    251 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    252 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    253 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    254 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    255 ### Rules for final target.
    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: gpu_gles2_implementation_gyp
    264 
    265 # Alias gyp target name.
    266 .PHONY: gles2_implementation
    267 gles2_implementation: gpu_gles2_implementation_gyp
    268 
    269 include $(BUILD_STATIC_LIBRARY)
    270