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