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_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,third_party_khronos_khronos_headers_gyp)/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/atomicops.cc \
     28 	gpu/command_buffer/client/cmd_buffer_helper.cc \
     29 	gpu/command_buffer/client/fenced_allocator.cc \
     30 	gpu/command_buffer/client/mapped_memory.cc \
     31 	gpu/command_buffer/client/ring_buffer.cc \
     32 	gpu/command_buffer/client/transfer_buffer.cc
     33 
     34 
     35 # Flags passed to both C and C++ files.
     36 MY_CFLAGS_Debug := \
     37 	-fstack-protector \
     38 	--param=ssp-buffer-size=4 \
     39 	 \
     40 	-fno-exceptions \
     41 	-fno-strict-aliasing \
     42 	-Wall \
     43 	-Wno-unused-parameter \
     44 	-Wno-missing-field-initializers \
     45 	-fvisibility=hidden \
     46 	-pipe \
     47 	-fPIC \
     48 	-EL \
     49 	-mhard-float \
     50 	-ffunction-sections \
     51 	-funwind-tables \
     52 	-g \
     53 	-fstack-protector \
     54 	-fno-short-enums \
     55 	-finline-limit=64 \
     56 	-Wa,--noexecstack \
     57 	-U_FORTIFY_SOURCE \
     58 	-Wno-extra \
     59 	-Wno-ignored-qualifiers \
     60 	-Wno-type-limits \
     61 	-Os \
     62 	-g \
     63 	-fomit-frame-pointer \
     64 	-fdata-sections \
     65 	-ffunction-sections
     66 
     67 MY_DEFS_Debug := \
     68 	'-DANGLE_DX11' \
     69 	'-D_FILE_OFFSET_BITS=64' \
     70 	'-DNO_TCMALLOC' \
     71 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     72 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     73 	'-DDISABLE_NACL' \
     74 	'-DCHROMIUM_BUILD' \
     75 	'-DUSE_LIBJPEG_TURBO=1' \
     76 	'-DUSE_PROPRIETARY_CODECS' \
     77 	'-DENABLE_CONFIGURATION_POLICY' \
     78 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     79 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     80 	'-DENABLE_GPU=1' \
     81 	'-DUSE_OPENSSL=1' \
     82 	'-DENABLE_EGLIMAGE=1' \
     83 	'-DENABLE_PRINTING=1' \
     84 	'-D__STDC_CONSTANT_MACROS' \
     85 	'-D__STDC_FORMAT_MACROS' \
     86 	'-DANDROID' \
     87 	'-D__GNU_SOURCE=1' \
     88 	'-DUSE_STLPORT=1' \
     89 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     90 	'-DCHROME_BUILD_ID=""' \
     91 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     92 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     93 	'-D_DEBUG'
     94 
     95 
     96 # Include paths placed before CFLAGS/CPPFLAGS
     97 LOCAL_C_INCLUDES_Debug := \
     98 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
     99 	$(LOCAL_PATH) \
    100 	$(LOCAL_PATH)/third_party/khronos \
    101 	$(LOCAL_PATH)/gpu \
    102 	$(PWD)/frameworks/wilhelm/include \
    103 	$(PWD)/bionic \
    104 	$(PWD)/external/stlport/stlport
    105 
    106 
    107 # Flags passed to only C++ (and not C) files.
    108 LOCAL_CPPFLAGS_Debug := \
    109 	-fno-rtti \
    110 	-fno-threadsafe-statics \
    111 	-fvisibility-inlines-hidden \
    112 	-Wsign-compare \
    113 	-Wno-uninitialized \
    114 	-Wno-error=c++0x-compat \
    115 	-Wno-non-virtual-dtor \
    116 	-Wno-sign-promo
    117 
    118 
    119 # Flags passed to both C and C++ files.
    120 MY_CFLAGS_Release := \
    121 	-fstack-protector \
    122 	--param=ssp-buffer-size=4 \
    123 	 \
    124 	-fno-exceptions \
    125 	-fno-strict-aliasing \
    126 	-Wall \
    127 	-Wno-unused-parameter \
    128 	-Wno-missing-field-initializers \
    129 	-fvisibility=hidden \
    130 	-pipe \
    131 	-fPIC \
    132 	-EL \
    133 	-mhard-float \
    134 	-ffunction-sections \
    135 	-funwind-tables \
    136 	-g \
    137 	-fstack-protector \
    138 	-fno-short-enums \
    139 	-finline-limit=64 \
    140 	-Wa,--noexecstack \
    141 	-U_FORTIFY_SOURCE \
    142 	-Wno-extra \
    143 	-Wno-ignored-qualifiers \
    144 	-Wno-type-limits \
    145 	-Os \
    146 	-fno-ident \
    147 	-fdata-sections \
    148 	-ffunction-sections \
    149 	-fomit-frame-pointer
    150 
    151 MY_DEFS_Release := \
    152 	'-DANGLE_DX11' \
    153 	'-D_FILE_OFFSET_BITS=64' \
    154 	'-DNO_TCMALLOC' \
    155 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    156 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    157 	'-DDISABLE_NACL' \
    158 	'-DCHROMIUM_BUILD' \
    159 	'-DUSE_LIBJPEG_TURBO=1' \
    160 	'-DUSE_PROPRIETARY_CODECS' \
    161 	'-DENABLE_CONFIGURATION_POLICY' \
    162 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    163 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    164 	'-DENABLE_GPU=1' \
    165 	'-DUSE_OPENSSL=1' \
    166 	'-DENABLE_EGLIMAGE=1' \
    167 	'-DENABLE_PRINTING=1' \
    168 	'-D__STDC_CONSTANT_MACROS' \
    169 	'-D__STDC_FORMAT_MACROS' \
    170 	'-DANDROID' \
    171 	'-D__GNU_SOURCE=1' \
    172 	'-DUSE_STLPORT=1' \
    173 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    174 	'-DCHROME_BUILD_ID=""' \
    175 	'-DNDEBUG' \
    176 	'-DNVALGRIND' \
    177 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    178 	'-D_FORTIFY_SOURCE=2'
    179 
    180 
    181 # Include paths placed before CFLAGS/CPPFLAGS
    182 LOCAL_C_INCLUDES_Release := \
    183 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    184 	$(LOCAL_PATH) \
    185 	$(LOCAL_PATH)/third_party/khronos \
    186 	$(LOCAL_PATH)/gpu \
    187 	$(PWD)/frameworks/wilhelm/include \
    188 	$(PWD)/bionic \
    189 	$(PWD)/external/stlport/stlport
    190 
    191 
    192 # Flags passed to only C++ (and not C) files.
    193 LOCAL_CPPFLAGS_Release := \
    194 	-fno-rtti \
    195 	-fno-threadsafe-statics \
    196 	-fvisibility-inlines-hidden \
    197 	-Wsign-compare \
    198 	-Wno-uninitialized \
    199 	-Wno-error=c++0x-compat \
    200 	-Wno-non-virtual-dtor \
    201 	-Wno-sign-promo
    202 
    203 
    204 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    205 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    206 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    207 ### Rules for final target.
    208 
    209 LOCAL_LDFLAGS_Debug := \
    210 	-Wl,-z,now \
    211 	-Wl,-z,relro \
    212 	-Wl,-z,noexecstack \
    213 	-fPIC \
    214 	-EL \
    215 	-Wl,--no-keep-memory \
    216 	-nostdlib \
    217 	-Wl,--no-undefined \
    218 	-Wl,--exclude-libs=ALL \
    219 	-Wl,--fatal-warnings \
    220 	-Wl,--gc-sections \
    221 	-Wl,--warn-shared-textrel \
    222 	-Wl,-O1 \
    223 	-Wl,--as-needed
    224 
    225 
    226 LOCAL_LDFLAGS_Release := \
    227 	-Wl,-z,now \
    228 	-Wl,-z,relro \
    229 	-Wl,-z,noexecstack \
    230 	-fPIC \
    231 	-EL \
    232 	-Wl,--no-keep-memory \
    233 	-nostdlib \
    234 	-Wl,--no-undefined \
    235 	-Wl,--exclude-libs=ALL \
    236 	-Wl,-O1 \
    237 	-Wl,--as-needed \
    238 	-Wl,--gc-sections \
    239 	-Wl,--fatal-warnings \
    240 	-Wl,--warn-shared-textrel
    241 
    242 
    243 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    244 
    245 LOCAL_STATIC_LIBRARIES :=
    246 
    247 # Enable grouping to fix circular references
    248 LOCAL_GROUP_STATIC_LIBRARIES := true
    249 
    250 LOCAL_SHARED_LIBRARIES := \
    251 	libstlport \
    252 	libdl
    253 
    254 # Add target alias to "gyp_all_modules" target.
    255 .PHONY: gyp_all_modules
    256 gyp_all_modules: gpu_command_buffer_client_gyp
    257 
    258 # Alias gyp target name.
    259 .PHONY: command_buffer_client
    260 command_buffer_client: gpu_command_buffer_client_gyp
    261 
    262 include $(BUILD_STATIC_LIBRARY)
    263