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,GYP,ui_gl_gl_jni_headers_gyp)/gl_jni_headers.stamp
     17 
     18 ### Rules for action "generate_gl_bindings":
     19 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_local_path := $(LOCAL_PATH)
     20 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     21 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     22 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     23 $(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/khronos/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/khronos/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)
     24 	@echo "Gyp action: ui_gl_gl_gyp_gl_target_generate_gl_bindings ($@)"
     25 	$(hide)cd $(gyp_local_path)/ui/gl; mkdir -p $(gyp_shared_intermediate_dir)/ui/gl; python generate_bindings.py "--header-paths=../../third_party/khronos:../../third_party/mesa/src/include" "$(gyp_shared_intermediate_dir)/ui/gl"
     26 
     27 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     28 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     29 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     30 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     31 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     32 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     33 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     34 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     35 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     36 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     37 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     38 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     39 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     40 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     41 $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     42 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     43 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     44 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     45 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     46 $(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     47 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_egl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     48 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     49 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_glx.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     50 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_osmesa.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     51 $(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_wgl.h: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc ;
     52 
     53 
     54 GYP_GENERATED_OUTPUTS := \
     55 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc \
     56 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.h \
     57 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_egl.h \
     58 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc \
     59 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.h \
     60 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_gl.h \
     61 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.cc \
     62 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_glx.h \
     63 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_glx.h \
     64 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc \
     65 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc \
     66 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.h \
     67 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_osmesa.h \
     68 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.cc \
     69 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_wgl.h \
     70 	$(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_api_autogen_wgl.h \
     71 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_egl.h \
     72 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_gl.h \
     73 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_glx.h \
     74 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_osmesa.h \
     75 	$(gyp_shared_intermediate_dir)/ui/gl/gl_interface_autogen_wgl.h \
     76 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_egl.h \
     77 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_gl.h \
     78 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_glx.h \
     79 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_osmesa.h \
     80 	$(gyp_shared_intermediate_dir)/ui/gl/gl_mock_autogen_wgl.h
     81 
     82 # Make sure our deps and generated files are built first.
     83 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     84 
     85 LOCAL_CPP_EXTENSION := .cc
     86 $(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_gl.cc
     87 	mkdir -p $(@D); cp $< $@
     88 $(gyp_intermediate_dir)/gl_bindings_autogen_mock.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_mock.cc
     89 	mkdir -p $(@D); cp $< $@
     90 $(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_osmesa.cc
     91 	mkdir -p $(@D); cp $< $@
     92 $(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc: $(gyp_shared_intermediate_dir)/ui/gl/gl_bindings_autogen_egl.cc
     93 	mkdir -p $(@D); cp $< $@
     94 LOCAL_GENERATED_SOURCES := \
     95 	$(gyp_intermediate_dir)/gl_bindings_autogen_gl.cc \
     96 	$(gyp_intermediate_dir)/gl_bindings_autogen_mock.cc \
     97 	$(gyp_intermediate_dir)/gl_bindings_autogen_osmesa.cc \
     98 	$(gyp_intermediate_dir)/gl_bindings_autogen_egl.cc
     99 
    100 GYP_COPIED_SOURCE_ORIGIN_DIRS := \
    101 	$(gyp_shared_intermediate_dir)/ui/gl
    102 
    103 LOCAL_SRC_FILES := \
    104 	ui/gl/android/gl_jni_registrar.cc \
    105 	ui/gl/android/scoped_java_surface.cc \
    106 	ui/gl/android/surface_texture.cc \
    107 	ui/gl/android/surface_texture_listener.cc \
    108 	ui/gl/gl_bindings_skia_in_process.cc \
    109 	ui/gl/gl_context.cc \
    110 	ui/gl/gl_context_android.cc \
    111 	ui/gl/gl_context_stub.cc \
    112 	ui/gl/gl_fence.cc \
    113 	ui/gl/gl_gl_api_implementation.cc \
    114 	ui/gl/gl_image.cc \
    115 	ui/gl/gl_image_android.cc \
    116 	ui/gl/gl_image_shm.cc \
    117 	ui/gl/gl_image_stub.cc \
    118 	ui/gl/gl_implementation.cc \
    119 	ui/gl/gl_implementation_android.cc \
    120 	ui/gl/gl_interface.cc \
    121 	ui/gl/gl_osmesa_api_implementation.cc \
    122 	ui/gl/gl_share_group.cc \
    123 	ui/gl/gl_state_restorer.cc \
    124 	ui/gl/gl_surface.cc \
    125 	ui/gl/gl_surface_stub.cc \
    126 	ui/gl/gl_surface_osmesa.cc \
    127 	ui/gl/gl_switches.cc \
    128 	ui/gl/gpu_switching_manager.cc \
    129 	ui/gl/scoped_binders.cc \
    130 	ui/gl/scoped_make_current.cc \
    131 	ui/gl/sync_control_vsync_provider.cc \
    132 	ui/gl/egl_util.cc \
    133 	ui/gl/gl_context_egl.cc \
    134 	ui/gl/gl_surface_egl.cc \
    135 	ui/gl/gl_egl_api_implementation.cc \
    136 	ui/gl/gl_image_egl.cc
    137 
    138 
    139 # Flags passed to both C and C++ files.
    140 MY_CFLAGS_Debug := \
    141 	-fstack-protector \
    142 	--param=ssp-buffer-size=4 \
    143 	 \
    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 	-EL \
    154 	-mhard-float \
    155 	-ffunction-sections \
    156 	-funwind-tables \
    157 	-g \
    158 	-fstack-protector \
    159 	-fno-short-enums \
    160 	-finline-limit=64 \
    161 	-Wa,--noexecstack \
    162 	-U_FORTIFY_SOURCE \
    163 	-Wno-extra \
    164 	-Wno-ignored-qualifiers \
    165 	-Wno-type-limits \
    166 	-Os \
    167 	-g \
    168 	-fomit-frame-pointer \
    169 	-fdata-sections \
    170 	-ffunction-sections
    171 
    172 MY_DEFS_Debug := \
    173 	'-DV8_DEPRECATION_WARNINGS' \
    174 	'-D_FILE_OFFSET_BITS=64' \
    175 	'-DNO_TCMALLOC' \
    176 	'-DDISABLE_NACL' \
    177 	'-DCHROMIUM_BUILD' \
    178 	'-DUSE_LIBJPEG_TURBO=1' \
    179 	'-DUSE_PROPRIETARY_CODECS' \
    180 	'-DENABLE_CONFIGURATION_POLICY' \
    181 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    182 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    183 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    184 	'-DUSE_OPENSSL=1' \
    185 	'-DENABLE_EGLIMAGE=1' \
    186 	'-DCLD_VERSION=1' \
    187 	'-DENABLE_PRINTING=1' \
    188 	'-DENABLE_MANAGED_USERS=1' \
    189 	'-DGL_IMPLEMENTATION' \
    190 	'-DGL_GLEXT_PROTOTYPES' \
    191 	'-DEGL_EGLEXT_PROTOTYPES' \
    192 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    193 	'-DMESA_EGL_NO_X11_HEADERS' \
    194 	'-DU_USING_ICU_NAMESPACE=0' \
    195 	'-D__STDC_CONSTANT_MACROS' \
    196 	'-D__STDC_FORMAT_MACROS' \
    197 	'-DANDROID' \
    198 	'-D__GNU_SOURCE=1' \
    199 	'-DUSE_STLPORT=1' \
    200 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    201 	'-DCHROME_BUILD_ID=""' \
    202 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    203 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    204 	'-D_DEBUG'
    205 
    206 
    207 # Include paths placed before CFLAGS/CPPFLAGS
    208 LOCAL_C_INCLUDES_Debug := \
    209 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    210 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    211 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    212 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    213 	$(LOCAL_PATH)/third_party/swiftshader/include \
    214 	$(LOCAL_PATH)/third_party/mesa/src/include \
    215 	$(gyp_shared_intermediate_dir)/ui/gl \
    216 	$(LOCAL_PATH)/third_party/khronos \
    217 	$(LOCAL_PATH)/gpu \
    218 	$(LOCAL_PATH) \
    219 	$(LOCAL_PATH)/skia/config \
    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 	$(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-uninitialized \
    238 	-Wno-error=c++0x-compat \
    239 	-Wno-non-virtual-dtor \
    240 	-Wno-sign-promo
    241 
    242 
    243 # Flags passed to both C and C++ files.
    244 MY_CFLAGS_Release := \
    245 	-fstack-protector \
    246 	--param=ssp-buffer-size=4 \
    247 	 \
    248 	-fno-exceptions \
    249 	-fno-strict-aliasing \
    250 	-Wall \
    251 	-Wno-unused-parameter \
    252 	-Wno-missing-field-initializers \
    253 	-fvisibility=hidden \
    254 	-pipe \
    255 	-fPIC \
    256 	-Wno-unknown-pragmas \
    257 	-EL \
    258 	-mhard-float \
    259 	-ffunction-sections \
    260 	-funwind-tables \
    261 	-g \
    262 	-fstack-protector \
    263 	-fno-short-enums \
    264 	-finline-limit=64 \
    265 	-Wa,--noexecstack \
    266 	-U_FORTIFY_SOURCE \
    267 	-Wno-extra \
    268 	-Wno-ignored-qualifiers \
    269 	-Wno-type-limits \
    270 	-Os \
    271 	-fno-ident \
    272 	-fdata-sections \
    273 	-ffunction-sections \
    274 	-fomit-frame-pointer
    275 
    276 MY_DEFS_Release := \
    277 	'-DV8_DEPRECATION_WARNINGS' \
    278 	'-D_FILE_OFFSET_BITS=64' \
    279 	'-DNO_TCMALLOC' \
    280 	'-DDISABLE_NACL' \
    281 	'-DCHROMIUM_BUILD' \
    282 	'-DUSE_LIBJPEG_TURBO=1' \
    283 	'-DUSE_PROPRIETARY_CODECS' \
    284 	'-DENABLE_CONFIGURATION_POLICY' \
    285 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    286 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    287 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    288 	'-DUSE_OPENSSL=1' \
    289 	'-DENABLE_EGLIMAGE=1' \
    290 	'-DCLD_VERSION=1' \
    291 	'-DENABLE_PRINTING=1' \
    292 	'-DENABLE_MANAGED_USERS=1' \
    293 	'-DGL_IMPLEMENTATION' \
    294 	'-DGL_GLEXT_PROTOTYPES' \
    295 	'-DEGL_EGLEXT_PROTOTYPES' \
    296 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    297 	'-DMESA_EGL_NO_X11_HEADERS' \
    298 	'-DU_USING_ICU_NAMESPACE=0' \
    299 	'-D__STDC_CONSTANT_MACROS' \
    300 	'-D__STDC_FORMAT_MACROS' \
    301 	'-DANDROID' \
    302 	'-D__GNU_SOURCE=1' \
    303 	'-DUSE_STLPORT=1' \
    304 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    305 	'-DCHROME_BUILD_ID=""' \
    306 	'-DNDEBUG' \
    307 	'-DNVALGRIND' \
    308 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    309 	'-D_FORTIFY_SOURCE=2'
    310 
    311 
    312 # Include paths placed before CFLAGS/CPPFLAGS
    313 LOCAL_C_INCLUDES_Release := \
    314 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    315 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    316 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    317 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    318 	$(LOCAL_PATH)/third_party/swiftshader/include \
    319 	$(LOCAL_PATH)/third_party/mesa/src/include \
    320 	$(gyp_shared_intermediate_dir)/ui/gl \
    321 	$(LOCAL_PATH)/third_party/khronos \
    322 	$(LOCAL_PATH)/gpu \
    323 	$(LOCAL_PATH) \
    324 	$(LOCAL_PATH)/skia/config \
    325 	$(PWD)/external/skia/include \
    326 	$(PWD)/external/skia/include/core \
    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-uninitialized \
    343 	-Wno-error=c++0x-compat \
    344 	-Wno-non-virtual-dtor \
    345 	-Wno-sign-promo
    346 
    347 
    348 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    349 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    350 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    351 ### Rules for final target.
    352 
    353 LOCAL_LDFLAGS_Debug := \
    354 	-Wl,-z,now \
    355 	-Wl,-z,relro \
    356 	-Wl,-z,noexecstack \
    357 	-fPIC \
    358 	-EL \
    359 	-Wl,--no-keep-memory \
    360 	-nostdlib \
    361 	-Wl,--no-undefined \
    362 	-Wl,--exclude-libs=ALL \
    363 	-Wl,--fatal-warnings \
    364 	-Wl,--gc-sections \
    365 	-Wl,--warn-shared-textrel \
    366 	-Wl,-O1 \
    367 	-Wl,--as-needed
    368 
    369 
    370 LOCAL_LDFLAGS_Release := \
    371 	-Wl,-z,now \
    372 	-Wl,-z,relro \
    373 	-Wl,-z,noexecstack \
    374 	-fPIC \
    375 	-EL \
    376 	-Wl,--no-keep-memory \
    377 	-nostdlib \
    378 	-Wl,--no-undefined \
    379 	-Wl,--exclude-libs=ALL \
    380 	-Wl,-O1 \
    381 	-Wl,--as-needed \
    382 	-Wl,--gc-sections \
    383 	-Wl,--fatal-warnings \
    384 	-Wl,--warn-shared-textrel
    385 
    386 
    387 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    388 
    389 LOCAL_STATIC_LIBRARIES :=
    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