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