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