Home | History | Annotate | Download | only in gl
      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 := ui_gl_gl_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_mesa_mesa_headers_gyp)/mesa_headers.stamp \
     16 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
     17 	$(call intermediates-dir-for,GYP,ui_gl_gl_jni_headers_gyp)/gl_jni_headers.stamp
     18 
     19 ### Rules for action "generate_gl_bindings":
     20 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_local_path := $(LOCAL_PATH)
     21 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     22 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     23 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     24 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: $(LOCAL_PATH)/ui/gl/generate_bindings.py $(LOCAL_PATH)/third_party/mesa/src/include/GL/glext.h $(LOCAL_PATH)/third_party/mesa/src/include/GLES2/gl2ext.h $(LOCAL_PATH)/ui/gl/GL/glextchromium.h $(LOCAL_PATH)/gpu/GLES2/gl2chromium.h $(LOCAL_PATH)/gpu/GLES2/gl2extchromium.h $(LOCAL_PATH)/third_party/mesa/src/include/EGL/eglext.h $(LOCAL_PATH)/ui/gl/EGL/eglextchromium.h $(LOCAL_PATH)/third_party/mesa/src/include/GL/wglext.h $(LOCAL_PATH)/third_party/mesa/src/include/GL/glx.h $(LOCAL_PATH)/third_party/mesa/src/include/GL/glxext.h $(GYP_TARGET_DEPENDENCIES)
     25 	@echo "Gyp action: ui_gl_gl_gyp_gl_target_generate_gl_bindings ($@)"
     26 	$(hide)cd $(gyp_local_path)/ui/gl; mkdir -p $(gyp_shared_intermediate_dir)/ui/gl; python generate_bindings.py "--header-paths=../../third_party/mesa/src/include:../../third_party/khronos" "$(gyp_shared_intermediate_dir)/ui/gl"
     27 
     28 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     29 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     30 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     31 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     32 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     33 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     34 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     35 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     36 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     37 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     38 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     39 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     40 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     41 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     42 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     43 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     44 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     45 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     46 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     47 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     48 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     49 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     50 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     51 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     52 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     53 
     54 
     55 GYP_GENERATED_OUTPUTS := \
     56 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc \
     57 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h \
     58 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h \
     59 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc \
     60 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h \
     61 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h \
     62 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc \
     63 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h \
     64 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h \
     65 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc \
     66 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc \
     67 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h \
     68 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h \
     69 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc \
     70 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h \
     71 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h \
     72 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_egl.h \
     73 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_gl.h \
     74 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_glx.h \
     75 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_osmesa.h \
     76 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_wgl.h \
     77 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_egl.h \
     78 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h \
     79 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_glx.h \
     80 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_osmesa.h \
     81 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_wgl.h
     82 
     83 # Make sure our deps and generated files are built first.
     84 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     85 
     86 LOCAL_CPP_EXTENSION := .cc
     87 $(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc
     88 	mkdir -p $(@D); cp $< $@
     89 $(gyp_intermediate_dir)/gl_bindings_autogen_mock.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc
     90 	mkdir -p $(@D); cp $< $@
     91 $(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc
     92 	mkdir -p $(@D); cp $< $@
     93 $(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc
     94 	mkdir -p $(@D); cp $< $@
     95 LOCAL_GENERATED_SOURCES := \
     96 	$(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc \
     97 	$(gyp_intermediate_dir)/gl_bindings_autogen_mock.cc \
     98 	$(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc \
     99 	$(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc
    100 
    101 GYP_COPIED_SOURCE_ORIGIN_DIRS := \
    102 	$(gyp_shared_intermediate_dir)/ui/gl
    103 
    104 LOCAL_SRC_FILES := \
    105 	ui/gl/android/gl_jni_registrar.cc \
    106 	ui/gl/android/scoped_java_surface.cc \
    107 	ui/gl/android/surface_texture_bridge.cc \
    108 	ui/gl/android/surface_texture_listener.cc \
    109 	ui/gl/gl_bindings_skia_in_process.cc \
    110 	ui/gl/gl_context.cc \
    111 	ui/gl/gl_context_android.cc \
    112 	ui/gl/gl_context_stub.cc \
    113 	ui/gl/gl_fence.cc \
    114 	ui/gl/gl_gl_api_implementation.cc \
    115 	ui/gl/gl_image.cc \
    116 	ui/gl/gl_image_android.cc \
    117 	ui/gl/gl_image_shm.cc \
    118 	ui/gl/gl_image_stub.cc \
    119 	ui/gl/gl_implementation.cc \
    120 	ui/gl/gl_implementation_android.cc \
    121 	ui/gl/gl_interface.cc \
    122 	ui/gl/gl_osmesa_api_implementation.cc \
    123 	ui/gl/gl_share_group.cc \
    124 	ui/gl/gl_state_restorer.cc \
    125 	ui/gl/gl_surface.cc \
    126 	ui/gl/gl_surface_stub.cc \
    127 	ui/gl/gl_surface_osmesa.cc \
    128 	ui/gl/gl_switches.cc \
    129 	ui/gl/gpu_switching_manager.cc \
    130 	ui/gl/scoped_binders.cc \
    131 	ui/gl/scoped_make_current.cc \
    132 	ui/gl/vsync_provider.cc \
    133 	ui/gl/egl_util.cc \
    134 	ui/gl/gl_context_egl.cc \
    135 	ui/gl/gl_surface_egl.cc \
    136 	ui/gl/gl_egl_api_implementation.cc \
    137 	ui/gl/gl_image_egl.cc
    138 
    139 
    140 # Flags passed to both C and C++ files.
    141 MY_CFLAGS_Debug := \
    142 	--param=ssp-buffer-size=4 \
    143 	-Werror \
    144 	-fno-exceptions \
    145 	-fno-strict-aliasing \
    146 	-Wall \
    147 	-Wno-unused-parameter \
    148 	-Wno-missing-field-initializers \
    149 	-fvisibility=hidden \
    150 	-pipe \
    151 	-fPIC \
    152 	-Wno-unknown-pragmas \
    153 	-m32 \
    154 	-mmmx \
    155 	-march=pentium4 \
    156 	-msse2 \
    157 	-mfpmath=sse \
    158 	-fuse-ld=gold \
    159 	-ffunction-sections \
    160 	-funwind-tables \
    161 	-g \
    162 	-fno-short-enums \
    163 	-finline-limit=64 \
    164 	-Wa,--noexecstack \
    165 	-U_FORTIFY_SOURCE \
    166 	-Wno-extra \
    167 	-Wno-ignored-qualifiers \
    168 	-Wno-type-limits \
    169 	-fno-stack-protector \
    170 	-Os \
    171 	-g \
    172 	-fomit-frame-pointer \
    173 	-fdata-sections \
    174 	-ffunction-sections
    175 
    176 MY_DEFS_Debug := \
    177 	'-DANGLE_DX11' \
    178 	'-D_FILE_OFFSET_BITS=64' \
    179 	'-DNO_TCMALLOC' \
    180 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    181 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    182 	'-DDISABLE_NACL' \
    183 	'-DCHROMIUM_BUILD' \
    184 	'-DUSE_LIBJPEG_TURBO=1' \
    185 	'-DUSE_PROPRIETARY_CODECS' \
    186 	'-DENABLE_CONFIGURATION_POLICY' \
    187 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    188 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    189 	'-DENABLE_GPU=1' \
    190 	'-DUSE_OPENSSL=1' \
    191 	'-DENABLE_EGLIMAGE=1' \
    192 	'-DENABLE_PRINTING=1' \
    193 	'-DGL_IMPLEMENTATION' \
    194 	'-DGL_GLEXT_PROTOTYPES' \
    195 	'-DEGL_EGLEXT_PROTOTYPES' \
    196 	'-DMESA_EGL_NO_X11_HEADERS' \
    197 	'-DU_USING_ICU_NAMESPACE=0' \
    198 	'-D__STDC_CONSTANT_MACROS' \
    199 	'-D__STDC_FORMAT_MACROS' \
    200 	'-DANDROID' \
    201 	'-D__GNU_SOURCE=1' \
    202 	'-DUSE_STLPORT=1' \
    203 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    204 	'-DCHROME_BUILD_ID=""' \
    205 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    206 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    207 	'-D_DEBUG'
    208 
    209 
    210 # Include paths placed before CFLAGS/CPPFLAGS
    211 LOCAL_C_INCLUDES_Debug := \
    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/skia_library/target \
    215 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    216 	$(LOCAL_PATH)/third_party/swiftshader/include \
    217 	$(LOCAL_PATH)/third_party/mesa/src/include \
    218 	$(gyp_shared_intermediate_dir)/ui/gl \
    219 	$(LOCAL_PATH)/third_party/khronos \
    220 	$(LOCAL_PATH)/gpu \
    221 	$(LOCAL_PATH) \
    222 	$(LOCAL_PATH)/third_party/skia/src/core \
    223 	$(LOCAL_PATH)/skia/ext \
    224 	$(PWD)/external/icu4c/common \
    225 	$(PWD)/external/icu4c/i18n \
    226 	$(PWD)/frameworks/wilhelm/include \
    227 	$(PWD)/bionic \
    228 	$(PWD)/external/stlport/stlport
    229 
    230 
    231 # Flags passed to only C++ (and not C) files.
    232 LOCAL_CPPFLAGS_Debug := \
    233 	-fno-rtti \
    234 	-fno-threadsafe-statics \
    235 	-fvisibility-inlines-hidden \
    236 	-Wsign-compare \
    237 	-Wno-error=c++0x-compat \
    238 	-Wno-non-virtual-dtor \
    239 	-Wno-sign-promo
    240 
    241 
    242 # Flags passed to both C and C++ files.
    243 MY_CFLAGS_Release := \
    244 	--param=ssp-buffer-size=4 \
    245 	-Werror \
    246 	-fno-exceptions \
    247 	-fno-strict-aliasing \
    248 	-Wall \
    249 	-Wno-unused-parameter \
    250 	-Wno-missing-field-initializers \
    251 	-fvisibility=hidden \
    252 	-pipe \
    253 	-fPIC \
    254 	-Wno-unknown-pragmas \
    255 	-m32 \
    256 	-mmmx \
    257 	-march=pentium4 \
    258 	-msse2 \
    259 	-mfpmath=sse \
    260 	-fuse-ld=gold \
    261 	-ffunction-sections \
    262 	-funwind-tables \
    263 	-g \
    264 	-fno-short-enums \
    265 	-finline-limit=64 \
    266 	-Wa,--noexecstack \
    267 	-U_FORTIFY_SOURCE \
    268 	-Wno-extra \
    269 	-Wno-ignored-qualifiers \
    270 	-Wno-type-limits \
    271 	-fno-stack-protector \
    272 	-Os \
    273 	-fno-ident \
    274 	-fdata-sections \
    275 	-ffunction-sections \
    276 	-fomit-frame-pointer \
    277 	-fno-unwind-tables \
    278 	-fno-asynchronous-unwind-tables
    279 
    280 MY_DEFS_Release := \
    281 	'-DANGLE_DX11' \
    282 	'-D_FILE_OFFSET_BITS=64' \
    283 	'-DNO_TCMALLOC' \
    284 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    285 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    286 	'-DDISABLE_NACL' \
    287 	'-DCHROMIUM_BUILD' \
    288 	'-DUSE_LIBJPEG_TURBO=1' \
    289 	'-DUSE_PROPRIETARY_CODECS' \
    290 	'-DENABLE_CONFIGURATION_POLICY' \
    291 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    292 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    293 	'-DENABLE_GPU=1' \
    294 	'-DUSE_OPENSSL=1' \
    295 	'-DENABLE_EGLIMAGE=1' \
    296 	'-DENABLE_PRINTING=1' \
    297 	'-DGL_IMPLEMENTATION' \
    298 	'-DGL_GLEXT_PROTOTYPES' \
    299 	'-DEGL_EGLEXT_PROTOTYPES' \
    300 	'-DMESA_EGL_NO_X11_HEADERS' \
    301 	'-DU_USING_ICU_NAMESPACE=0' \
    302 	'-D__STDC_CONSTANT_MACROS' \
    303 	'-D__STDC_FORMAT_MACROS' \
    304 	'-DANDROID' \
    305 	'-D__GNU_SOURCE=1' \
    306 	'-DUSE_STLPORT=1' \
    307 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    308 	'-DCHROME_BUILD_ID=""' \
    309 	'-DNDEBUG' \
    310 	'-DNVALGRIND' \
    311 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    312 	'-D_FORTIFY_SOURCE=2'
    313 
    314 
    315 # Include paths placed before CFLAGS/CPPFLAGS
    316 LOCAL_C_INCLUDES_Release := \
    317 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    318 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    319 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    320 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    321 	$(LOCAL_PATH)/third_party/swiftshader/include \
    322 	$(LOCAL_PATH)/third_party/mesa/src/include \
    323 	$(gyp_shared_intermediate_dir)/ui/gl \
    324 	$(LOCAL_PATH)/third_party/khronos \
    325 	$(LOCAL_PATH)/gpu \
    326 	$(LOCAL_PATH) \
    327 	$(LOCAL_PATH)/third_party/skia/src/core \
    328 	$(LOCAL_PATH)/skia/ext \
    329 	$(PWD)/external/icu4c/common \
    330 	$(PWD)/external/icu4c/i18n \
    331 	$(PWD)/frameworks/wilhelm/include \
    332 	$(PWD)/bionic \
    333 	$(PWD)/external/stlport/stlport
    334 
    335 
    336 # Flags passed to only C++ (and not C) files.
    337 LOCAL_CPPFLAGS_Release := \
    338 	-fno-rtti \
    339 	-fno-threadsafe-statics \
    340 	-fvisibility-inlines-hidden \
    341 	-Wsign-compare \
    342 	-Wno-error=c++0x-compat \
    343 	-Wno-non-virtual-dtor \
    344 	-Wno-sign-promo
    345 
    346 
    347 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    348 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    349 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    350 ### Rules for final target.
    351 
    352 LOCAL_LDFLAGS_Debug := \
    353 	-Wl,-z,now \
    354 	-Wl,-z,relro \
    355 	-Wl,-z,noexecstack \
    356 	-fPIC \
    357 	-m32 \
    358 	-fuse-ld=gold \
    359 	-nostdlib \
    360 	-Wl,--no-undefined \
    361 	-Wl,--exclude-libs=ALL \
    362 	-Wl,--fatal-warnings \
    363 	-Wl,--gc-sections \
    364 	-Wl,--warn-shared-textrel \
    365 	-Wl,-O1 \
    366 	-Wl,--as-needed
    367 
    368 
    369 LOCAL_LDFLAGS_Release := \
    370 	-Wl,-z,now \
    371 	-Wl,-z,relro \
    372 	-Wl,-z,noexecstack \
    373 	-fPIC \
    374 	-m32 \
    375 	-fuse-ld=gold \
    376 	-nostdlib \
    377 	-Wl,--no-undefined \
    378 	-Wl,--exclude-libs=ALL \
    379 	-Wl,-O1 \
    380 	-Wl,--as-needed \
    381 	-Wl,--gc-sections \
    382 	-Wl,--fatal-warnings \
    383 	-Wl,--warn-shared-textrel
    384 
    385 
    386 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    387 
    388 LOCAL_STATIC_LIBRARIES := \
    389 	ui_ui_gyp
    390 
    391 # Enable grouping to fix circular references
    392 LOCAL_GROUP_STATIC_LIBRARIES := true
    393 
    394 LOCAL_SHARED_LIBRARIES := \
    395 	libskia \
    396 	libstlport \
    397 	libdl
    398 
    399 # Add target alias to "gyp_all_modules" target.
    400 .PHONY: gyp_all_modules
    401 gyp_all_modules: ui_gl_gl_gyp
    402 
    403 # Alias gyp target name.
    404 .PHONY: gl
    405 gl: ui_gl_gl_gyp
    406 
    407 include $(BUILD_STATIC_LIBRARY)
    408