Home | History | Annotate | Download | only in content
      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 := content_content_gpu_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,STATIC_LIBRARIES,mojo_mojo_application_bindings_gyp,,,$(GYP_VAR_PREFIX))/mojo_mojo_application_bindings_gyp.a \
     15 	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
     16 	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
     17 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a
     18 
     19 GYP_GENERATED_OUTPUTS :=
     20 
     21 # Make sure our deps and generated files are built first.
     22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     23 
     24 LOCAL_CPP_EXTENSION := .cc
     25 LOCAL_GENERATED_SOURCES :=
     26 
     27 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     28 
     29 LOCAL_SRC_FILES := \
     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 	content/gpu/in_process_gpu_thread.cc
     35 
     36 
     37 # Flags passed to both C and C++ files.
     38 MY_CFLAGS_Debug := \
     39 	-fstack-protector \
     40 	--param=ssp-buffer-size=4 \
     41 	-Werror \
     42 	-fno-strict-aliasing \
     43 	-Wall \
     44 	-Wno-unused-parameter \
     45 	-Wno-missing-field-initializers \
     46 	-fvisibility=hidden \
     47 	-pipe \
     48 	-fPIC \
     49 	-Wno-unused-local-typedefs \
     50 	-m64 \
     51 	-march=x86-64 \
     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 	-Wno-unused-but-set-variable \
     64 	-Os \
     65 	-g \
     66 	-gdwarf-4 \
     67 	-fdata-sections \
     68 	-ffunction-sections \
     69 	-fomit-frame-pointer \
     70 	-funwind-tables
     71 
     72 MY_DEFS_Debug := \
     73 	'-DCONTENT_IMPLEMENTATION' \
     74 	'-DV8_DEPRECATION_WARNINGS' \
     75 	'-D_FILE_OFFSET_BITS=64' \
     76 	'-DNO_TCMALLOC' \
     77 	'-DDISABLE_NACL' \
     78 	'-DCHROMIUM_BUILD' \
     79 	'-DUSE_LIBJPEG_TURBO=1' \
     80 	'-DENABLE_WEBRTC=1' \
     81 	'-DUSE_PROPRIETARY_CODECS' \
     82 	'-DENABLE_BROWSER_CDMS' \
     83 	'-DENABLE_CONFIGURATION_POLICY' \
     84 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     85 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     86 	'-DENABLE_EGLIMAGE=1' \
     87 	'-DCLD_VERSION=1' \
     88 	'-DENABLE_PRINTING=1' \
     89 	'-DENABLE_MANAGED_USERS=1' \
     90 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     91 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     92 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     93 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     94 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     95 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     96 	'-DVIDEO_HOLE=1' \
     97 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     98 	'-DMOJO_USE_SYSTEM_IMPL' \
     99 	'-DSK_ENABLE_INST_COUNT=0' \
    100 	'-DSK_SUPPORT_GPU=1' \
    101 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    102 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    103 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    104 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    105 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    106 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    107 	'-DSK_BUILD_FOR_ANDROID' \
    108 	'-DSK_USE_POSIX_THREADS' \
    109 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    110 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    111 	'-DMESA_EGL_NO_X11_HEADERS' \
    112 	'-DUSE_OPENSSL=1' \
    113 	'-DUSE_OPENSSL_CERTS=1' \
    114 	'-D__STDC_CONSTANT_MACROS' \
    115 	'-D__STDC_FORMAT_MACROS' \
    116 	'-DANDROID' \
    117 	'-D__GNU_SOURCE=1' \
    118 	'-DUSE_STLPORT=1' \
    119 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    120 	'-DCHROME_BUILD_ID=""' \
    121 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    122 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    123 	'-D_DEBUG'
    124 
    125 
    126 # Include paths placed before CFLAGS/CPPFLAGS
    127 LOCAL_C_INCLUDES_Debug := \
    128 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    129 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    130 	$(gyp_shared_intermediate_dir) \
    131 	$(LOCAL_PATH) \
    132 	$(LOCAL_PATH)/skia/config \
    133 	$(LOCAL_PATH)/third_party/WebKit/Source \
    134 	$(LOCAL_PATH)/third_party/khronos \
    135 	$(LOCAL_PATH)/gpu \
    136 	$(LOCAL_PATH)/third_party/WebKit \
    137 	$(LOCAL_PATH)/third_party/skia/src/core \
    138 	$(LOCAL_PATH)/third_party/skia/include/core \
    139 	$(LOCAL_PATH)/third_party/skia/include/effects \
    140 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    141 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    142 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    143 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    144 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    145 	$(LOCAL_PATH)/third_party/skia/include/ports \
    146 	$(LOCAL_PATH)/third_party/skia/include/utils \
    147 	$(LOCAL_PATH)/skia/ext \
    148 	$(gyp_shared_intermediate_dir)/ui/gl \
    149 	$(LOCAL_PATH)/third_party/mesa/src/include \
    150 	$(PWD)/frameworks/wilhelm/include \
    151 	$(PWD)/bionic \
    152 	$(PWD)/external/stlport/stlport
    153 
    154 
    155 # Flags passed to only C++ (and not C) files.
    156 LOCAL_CPPFLAGS_Debug := \
    157 	-fno-exceptions \
    158 	-fno-rtti \
    159 	-fno-threadsafe-statics \
    160 	-fvisibility-inlines-hidden \
    161 	-Wsign-compare \
    162 	-std=gnu++11 \
    163 	-Wno-narrowing \
    164 	-Wno-literal-suffix \
    165 	-Wno-non-virtual-dtor \
    166 	-Wno-sign-promo
    167 
    168 
    169 # Flags passed to both C and C++ files.
    170 MY_CFLAGS_Release := \
    171 	-fstack-protector \
    172 	--param=ssp-buffer-size=4 \
    173 	-Werror \
    174 	-fno-strict-aliasing \
    175 	-Wall \
    176 	-Wno-unused-parameter \
    177 	-Wno-missing-field-initializers \
    178 	-fvisibility=hidden \
    179 	-pipe \
    180 	-fPIC \
    181 	-Wno-unused-local-typedefs \
    182 	-m64 \
    183 	-march=x86-64 \
    184 	-ffunction-sections \
    185 	-funwind-tables \
    186 	-g \
    187 	-fstack-protector \
    188 	-fno-short-enums \
    189 	-finline-limit=64 \
    190 	-Wa,--noexecstack \
    191 	-U_FORTIFY_SOURCE \
    192 	-Wno-extra \
    193 	-Wno-ignored-qualifiers \
    194 	-Wno-type-limits \
    195 	-Wno-unused-but-set-variable \
    196 	-Os \
    197 	-fno-ident \
    198 	-fdata-sections \
    199 	-ffunction-sections \
    200 	-fomit-frame-pointer \
    201 	-funwind-tables
    202 
    203 MY_DEFS_Release := \
    204 	'-DCONTENT_IMPLEMENTATION' \
    205 	'-DV8_DEPRECATION_WARNINGS' \
    206 	'-D_FILE_OFFSET_BITS=64' \
    207 	'-DNO_TCMALLOC' \
    208 	'-DDISABLE_NACL' \
    209 	'-DCHROMIUM_BUILD' \
    210 	'-DUSE_LIBJPEG_TURBO=1' \
    211 	'-DENABLE_WEBRTC=1' \
    212 	'-DUSE_PROPRIETARY_CODECS' \
    213 	'-DENABLE_BROWSER_CDMS' \
    214 	'-DENABLE_CONFIGURATION_POLICY' \
    215 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    216 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    217 	'-DENABLE_EGLIMAGE=1' \
    218 	'-DCLD_VERSION=1' \
    219 	'-DENABLE_PRINTING=1' \
    220 	'-DENABLE_MANAGED_USERS=1' \
    221 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    222 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    223 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    224 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    225 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    226 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    227 	'-DVIDEO_HOLE=1' \
    228 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    229 	'-DMOJO_USE_SYSTEM_IMPL' \
    230 	'-DSK_ENABLE_INST_COUNT=0' \
    231 	'-DSK_SUPPORT_GPU=1' \
    232 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    233 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    234 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    235 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    236 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    237 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    238 	'-DSK_BUILD_FOR_ANDROID' \
    239 	'-DSK_USE_POSIX_THREADS' \
    240 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    241 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    242 	'-DMESA_EGL_NO_X11_HEADERS' \
    243 	'-DUSE_OPENSSL=1' \
    244 	'-DUSE_OPENSSL_CERTS=1' \
    245 	'-D__STDC_CONSTANT_MACROS' \
    246 	'-D__STDC_FORMAT_MACROS' \
    247 	'-DANDROID' \
    248 	'-D__GNU_SOURCE=1' \
    249 	'-DUSE_STLPORT=1' \
    250 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    251 	'-DCHROME_BUILD_ID=""' \
    252 	'-DNDEBUG' \
    253 	'-DNVALGRIND' \
    254 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    255 	'-D_FORTIFY_SOURCE=2'
    256 
    257 
    258 # Include paths placed before CFLAGS/CPPFLAGS
    259 LOCAL_C_INCLUDES_Release := \
    260 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    261 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    262 	$(gyp_shared_intermediate_dir) \
    263 	$(LOCAL_PATH) \
    264 	$(LOCAL_PATH)/skia/config \
    265 	$(LOCAL_PATH)/third_party/WebKit/Source \
    266 	$(LOCAL_PATH)/third_party/khronos \
    267 	$(LOCAL_PATH)/gpu \
    268 	$(LOCAL_PATH)/third_party/WebKit \
    269 	$(LOCAL_PATH)/third_party/skia/src/core \
    270 	$(LOCAL_PATH)/third_party/skia/include/core \
    271 	$(LOCAL_PATH)/third_party/skia/include/effects \
    272 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    273 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    274 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    275 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    276 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    277 	$(LOCAL_PATH)/third_party/skia/include/ports \
    278 	$(LOCAL_PATH)/third_party/skia/include/utils \
    279 	$(LOCAL_PATH)/skia/ext \
    280 	$(gyp_shared_intermediate_dir)/ui/gl \
    281 	$(LOCAL_PATH)/third_party/mesa/src/include \
    282 	$(PWD)/frameworks/wilhelm/include \
    283 	$(PWD)/bionic \
    284 	$(PWD)/external/stlport/stlport
    285 
    286 
    287 # Flags passed to only C++ (and not C) files.
    288 LOCAL_CPPFLAGS_Release := \
    289 	-fno-exceptions \
    290 	-fno-rtti \
    291 	-fno-threadsafe-statics \
    292 	-fvisibility-inlines-hidden \
    293 	-Wsign-compare \
    294 	-std=gnu++11 \
    295 	-Wno-narrowing \
    296 	-Wno-literal-suffix \
    297 	-Wno-non-virtual-dtor \
    298 	-Wno-sign-promo
    299 
    300 
    301 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    302 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    303 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    304 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    305 ### Rules for final target.
    306 
    307 LOCAL_SHARED_LIBRARIES := \
    308 	libstlport \
    309 	libdl
    310 
    311 # Add target alias to "gyp_all_modules" target.
    312 .PHONY: gyp_all_modules
    313 gyp_all_modules: content_content_gpu_gyp
    314 
    315 # Alias gyp target name.
    316 .PHONY: content_gpu
    317 content_gpu: content_content_gpu_gyp
    318 
    319 include $(BUILD_STATIC_LIBRARY)
    320