content_gpu.target.darwin-arm.mk revision a93a17c8d99d686bd4a1511e5504e5e6cc9fcadf
1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := content_content_gpu_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_gyp)/skia_skia_gyp.a \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a 16 17GYP_GENERATED_OUTPUTS := 18 19# Make sure our deps and generated files are built first. 20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22LOCAL_CPP_EXTENSION := .cc 23LOCAL_GENERATED_SOURCES := 24 25GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27LOCAL_SRC_FILES := \ 28 content/gpu/gpu_info_collector_android.cc \ 29 content/gpu/gpu_info_collector.cc \ 30 content/gpu/gpu_main.cc \ 31 content/gpu/gpu_process.cc \ 32 content/gpu/gpu_child_thread.cc \ 33 content/gpu/gpu_watchdog_thread.cc 34 35 36# Flags passed to both C and C++ files. 37MY_CFLAGS := \ 38 -fstack-protector \ 39 --param=ssp-buffer-size=4 \ 40 -Werror \ 41 -fno-exceptions \ 42 -fno-strict-aliasing \ 43 -Wall \ 44 -Wno-unused-parameter \ 45 -Wno-missing-field-initializers \ 46 -fvisibility=hidden \ 47 -pipe \ 48 -fPIC \ 49 -fno-tree-sra \ 50 -fuse-ld=gold \ 51 -Wno-psabi \ 52 -ffunction-sections \ 53 -funwind-tables \ 54 -g \ 55 -fstack-protector \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -Os \ 64 -g \ 65 -fomit-frame-pointer \ 66 -fdata-sections \ 67 -ffunction-sections 68 69MY_CFLAGS_C := 70 71MY_DEFS := \ 72 '-DCONTENT_IMPLEMENTATION' \ 73 '-D_FILE_OFFSET_BITS=64' \ 74 '-DUSE_LINUX_BREAKPAD' \ 75 '-DNO_TCMALLOC' \ 76 '-DDISABLE_NACL' \ 77 '-DCHROMIUM_BUILD' \ 78 '-DUSE_LIBJPEG_TURBO=1' \ 79 '-DUSE_PROPRIETARY_CODECS' \ 80 '-DENABLE_GPU=1' \ 81 '-DUSE_OPENSSL=1' \ 82 '-DENABLE_EGLIMAGE=1' \ 83 '-DENABLE_LANGUAGE_DETECTION=1' \ 84 '-DSK_BUILD_NO_IMAGE_ENCODE' \ 85 '-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \ 86 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 87 '-DGR_AGGRESSIVE_SHADER_OPTS=1' \ 88 '-DSK_ENABLE_INST_COUNT=0' \ 89 '-DSK_USE_POSIX_THREADS' \ 90 '-DSK_BUILD_FOR_ANDROID' \ 91 '-D__STDC_CONSTANT_MACROS' \ 92 '-D__STDC_FORMAT_MACROS' \ 93 '-DANDROID' \ 94 '-D__GNU_SOURCE=1' \ 95 '-DUSE_STLPORT=1' \ 96 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 97 '-DCHROME_BUILD_ID=""' \ 98 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 99 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 100 '-D_DEBUG' 101 102LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) 103 104# Include paths placed before CFLAGS/CPPFLAGS 105LOCAL_C_INCLUDES := \ 106 $(LOCAL_PATH) \ 107 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 108 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 109 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 110 $(LOCAL_PATH)/third_party/khronos \ 111 $(LOCAL_PATH)/gpu \ 112 $(LOCAL_PATH)/skia/config \ 113 $(LOCAL_PATH)/third_party/skia/src/core \ 114 $(LOCAL_PATH)/third_party/skia/include/config \ 115 $(LOCAL_PATH)/third_party/skia/include/core \ 116 $(LOCAL_PATH)/third_party/skia/include/effects \ 117 $(LOCAL_PATH)/third_party/skia/include/pdf \ 118 $(LOCAL_PATH)/third_party/skia/include/gpu \ 119 $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ 120 $(LOCAL_PATH)/third_party/skia/include/pathops \ 121 $(LOCAL_PATH)/third_party/skia/include/pipe \ 122 $(LOCAL_PATH)/third_party/skia/include/ports \ 123 $(LOCAL_PATH)/third_party/skia/include/utils \ 124 $(LOCAL_PATH)/skia/ext \ 125 $(LOCAL_PATH)/third_party/re2 \ 126 $(gyp_shared_intermediate_dir)/ui/gl \ 127 $(LOCAL_PATH)/third_party/mesa/MesaLib/include \ 128 $(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \ 129 $(GYP_ABS_ANDROID_TOP_DIR)/bionic \ 130 $(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport 131 132LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES) 133 134# Flags passed to only C++ (and not C) files. 135LOCAL_CPPFLAGS := \ 136 -fno-rtti \ 137 -fno-threadsafe-statics \ 138 -fvisibility-inlines-hidden \ 139 -Wsign-compare \ 140 -Wno-abi \ 141 -Wno-error=c++0x-compat \ 142 -Wno-non-virtual-dtor \ 143 -Wno-sign-promo 144 145### Rules for final target. 146 147LOCAL_LDFLAGS := \ 148 -Wl,-z,now \ 149 -Wl,-z,relro \ 150 -Wl,-z,noexecstack \ 151 -fPIC \ 152 -Wl,-z,relro \ 153 -Wl,-z,now \ 154 -fuse-ld=gold \ 155 -nostdlib \ 156 -Wl,--no-undefined \ 157 -Wl,--exclude-libs=ALL \ 158 -Wl,--icf=safe \ 159 -Wl,--gc-sections \ 160 -Wl,-O1 \ 161 -Wl,--as-needed 162 163 164LOCAL_STATIC_LIBRARIES := \ 165 skia_skia_gyp \ 166 ui_gl_gl_gyp 167 168# Enable grouping to fix circular references 169LOCAL_GROUP_STATIC_LIBRARIES := true 170 171LOCAL_SHARED_LIBRARIES := \ 172 libstlport \ 173 libdl 174 175# Add target alias to "gyp_all_modules" target. 176.PHONY: gyp_all_modules 177gyp_all_modules: content_content_gpu_gyp 178 179# Alias gyp target name. 180.PHONY: content_gpu 181content_gpu: content_content_gpu_gyp 182 183include $(BUILD_STATIC_LIBRARY) 184