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