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