Home | History | Annotate | Download | only in printing
      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 := printing_printing_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,skia_skia_gyp)/skia.stamp \
     15 	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
     16 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
     17 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_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 	printing/backend/print_backend.cc \
     31 	printing/backend/print_backend_consts.cc \
     32 	printing/backend/print_backend_dummy.cc \
     33 	printing/image.cc \
     34 	printing/image_android.cc \
     35 	printing/metafile_skia_wrapper.cc \
     36 	printing/page_number.cc \
     37 	printing/page_range.cc \
     38 	printing/page_setup.cc \
     39 	printing/page_size_margins.cc \
     40 	printing/pdf_metafile_skia.cc \
     41 	printing/print_destination_none.cc \
     42 	printing/printed_document.cc \
     43 	printing/printed_page.cc \
     44 	printing/printing_context.cc \
     45 	printing/print_job_constants.cc \
     46 	printing/print_settings.cc \
     47 	printing/print_settings_initializer.cc \
     48 	printing/units.cc
     49 
     50 
     51 # Flags passed to both C and C++ files.
     52 MY_CFLAGS_Debug := \
     53 	-fstack-protector \
     54 	--param=ssp-buffer-size=4 \
     55 	-Werror \
     56 	-fno-exceptions \
     57 	-fno-strict-aliasing \
     58 	-Wall \
     59 	-Wno-unused-parameter \
     60 	-Wno-missing-field-initializers \
     61 	-fvisibility=hidden \
     62 	-pipe \
     63 	-fPIC \
     64 	-fno-tree-sra \
     65 	-fuse-ld=gold \
     66 	-Wno-psabi \
     67 	-ffunction-sections \
     68 	-funwind-tables \
     69 	-g \
     70 	-fstack-protector \
     71 	-fno-short-enums \
     72 	-finline-limit=64 \
     73 	-Wa,--noexecstack \
     74 	-U_FORTIFY_SOURCE \
     75 	-Wno-extra \
     76 	-Wno-ignored-qualifiers \
     77 	-Wno-type-limits \
     78 	-Os \
     79 	-g \
     80 	-fomit-frame-pointer \
     81 	-fdata-sections \
     82 	-ffunction-sections
     83 
     84 MY_DEFS_Debug := \
     85 	'-DANGLE_DX11' \
     86 	'-D_FILE_OFFSET_BITS=64' \
     87 	'-DNO_TCMALLOC' \
     88 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     89 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     90 	'-DDISABLE_NACL' \
     91 	'-DCHROMIUM_BUILD' \
     92 	'-DUSE_LIBJPEG_TURBO=1' \
     93 	'-DUSE_PROPRIETARY_CODECS' \
     94 	'-DENABLE_CONFIGURATION_POLICY' \
     95 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     96 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     97 	'-DENABLE_GPU=1' \
     98 	'-DUSE_OPENSSL=1' \
     99 	'-DENABLE_EGLIMAGE=1' \
    100 	'-DENABLE_PRINTING=1' \
    101 	'-DPRINTING_IMPLEMENTATION' \
    102 	'-DU_USING_ICU_NAMESPACE=0' \
    103 	'-DPOSIX_AVOID_MMAP' \
    104 	'-D__STDC_CONSTANT_MACROS' \
    105 	'-D__STDC_FORMAT_MACROS' \
    106 	'-DANDROID' \
    107 	'-D__GNU_SOURCE=1' \
    108 	'-DUSE_STLPORT=1' \
    109 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    110 	'-DCHROME_BUILD_ID=""' \
    111 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    112 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    113 	'-D_DEBUG'
    114 
    115 
    116 # Include paths placed before CFLAGS/CPPFLAGS
    117 LOCAL_C_INCLUDES_Debug := \
    118 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    119 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    120 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    121 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    122 	$(LOCAL_PATH) \
    123 	$(LOCAL_PATH)/third_party/skia/src/core \
    124 	$(LOCAL_PATH)/skia/ext \
    125 	$(PWD)/external/icu4c/common \
    126 	$(PWD)/external/icu4c/i18n \
    127 	$(PWD)/frameworks/wilhelm/include \
    128 	$(PWD)/bionic \
    129 	$(PWD)/external/stlport/stlport
    130 
    131 
    132 # Flags passed to only C++ (and not C) files.
    133 LOCAL_CPPFLAGS_Debug := \
    134 	-fno-rtti \
    135 	-fno-threadsafe-statics \
    136 	-fvisibility-inlines-hidden \
    137 	-Wsign-compare \
    138 	-Wno-abi \
    139 	-Wno-error=c++0x-compat \
    140 	-Wno-non-virtual-dtor \
    141 	-Wno-sign-promo
    142 
    143 
    144 # Flags passed to both C and C++ files.
    145 MY_CFLAGS_Release := \
    146 	-fstack-protector \
    147 	--param=ssp-buffer-size=4 \
    148 	-Werror \
    149 	-fno-exceptions \
    150 	-fno-strict-aliasing \
    151 	-Wall \
    152 	-Wno-unused-parameter \
    153 	-Wno-missing-field-initializers \
    154 	-fvisibility=hidden \
    155 	-pipe \
    156 	-fPIC \
    157 	-fno-tree-sra \
    158 	-fuse-ld=gold \
    159 	-Wno-psabi \
    160 	-ffunction-sections \
    161 	-funwind-tables \
    162 	-g \
    163 	-fstack-protector \
    164 	-fno-short-enums \
    165 	-finline-limit=64 \
    166 	-Wa,--noexecstack \
    167 	-U_FORTIFY_SOURCE \
    168 	-Wno-extra \
    169 	-Wno-ignored-qualifiers \
    170 	-Wno-type-limits \
    171 	-Os \
    172 	-fno-ident \
    173 	-fdata-sections \
    174 	-ffunction-sections \
    175 	-fomit-frame-pointer
    176 
    177 MY_DEFS_Release := \
    178 	'-DANGLE_DX11' \
    179 	'-D_FILE_OFFSET_BITS=64' \
    180 	'-DNO_TCMALLOC' \
    181 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    182 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    183 	'-DDISABLE_NACL' \
    184 	'-DCHROMIUM_BUILD' \
    185 	'-DUSE_LIBJPEG_TURBO=1' \
    186 	'-DUSE_PROPRIETARY_CODECS' \
    187 	'-DENABLE_CONFIGURATION_POLICY' \
    188 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    189 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    190 	'-DENABLE_GPU=1' \
    191 	'-DUSE_OPENSSL=1' \
    192 	'-DENABLE_EGLIMAGE=1' \
    193 	'-DENABLE_PRINTING=1' \
    194 	'-DPRINTING_IMPLEMENTATION' \
    195 	'-DU_USING_ICU_NAMESPACE=0' \
    196 	'-DPOSIX_AVOID_MMAP' \
    197 	'-D__STDC_CONSTANT_MACROS' \
    198 	'-D__STDC_FORMAT_MACROS' \
    199 	'-DANDROID' \
    200 	'-D__GNU_SOURCE=1' \
    201 	'-DUSE_STLPORT=1' \
    202 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    203 	'-DCHROME_BUILD_ID=""' \
    204 	'-DNDEBUG' \
    205 	'-DNVALGRIND' \
    206 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    207 	'-D_FORTIFY_SOURCE=2'
    208 
    209 
    210 # Include paths placed before CFLAGS/CPPFLAGS
    211 LOCAL_C_INCLUDES_Release := \
    212 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    213 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    214 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    215 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    216 	$(LOCAL_PATH) \
    217 	$(LOCAL_PATH)/third_party/skia/src/core \
    218 	$(LOCAL_PATH)/skia/ext \
    219 	$(PWD)/external/icu4c/common \
    220 	$(PWD)/external/icu4c/i18n \
    221 	$(PWD)/frameworks/wilhelm/include \
    222 	$(PWD)/bionic \
    223 	$(PWD)/external/stlport/stlport
    224 
    225 
    226 # Flags passed to only C++ (and not C) files.
    227 LOCAL_CPPFLAGS_Release := \
    228 	-fno-rtti \
    229 	-fno-threadsafe-statics \
    230 	-fvisibility-inlines-hidden \
    231 	-Wsign-compare \
    232 	-Wno-abi \
    233 	-Wno-error=c++0x-compat \
    234 	-Wno-non-virtual-dtor \
    235 	-Wno-sign-promo
    236 
    237 
    238 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    239 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    240 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    241 ### Rules for final target.
    242 
    243 LOCAL_LDFLAGS_Debug := \
    244 	-Wl,-z,now \
    245 	-Wl,-z,relro \
    246 	-Wl,-z,noexecstack \
    247 	-fPIC \
    248 	-Wl,-z,relro \
    249 	-Wl,-z,now \
    250 	-fuse-ld=gold \
    251 	-nostdlib \
    252 	-Wl,--no-undefined \
    253 	-Wl,--exclude-libs=ALL \
    254 	-Wl,--icf=safe \
    255 	-Wl,--fatal-warnings \
    256 	-Wl,--gc-sections \
    257 	-Wl,--warn-shared-textrel \
    258 	-Wl,-O1 \
    259 	-Wl,--as-needed
    260 
    261 
    262 LOCAL_LDFLAGS_Release := \
    263 	-Wl,-z,now \
    264 	-Wl,-z,relro \
    265 	-Wl,-z,noexecstack \
    266 	-fPIC \
    267 	-Wl,-z,relro \
    268 	-Wl,-z,now \
    269 	-fuse-ld=gold \
    270 	-nostdlib \
    271 	-Wl,--no-undefined \
    272 	-Wl,--exclude-libs=ALL \
    273 	-Wl,--icf=safe \
    274 	-Wl,-O1 \
    275 	-Wl,--as-needed \
    276 	-Wl,--gc-sections \
    277 	-Wl,--fatal-warnings \
    278 	-Wl,--warn-shared-textrel
    279 
    280 
    281 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    282 
    283 LOCAL_STATIC_LIBRARIES := \
    284 	ui_ui_gyp
    285 
    286 # Enable grouping to fix circular references
    287 LOCAL_GROUP_STATIC_LIBRARIES := true
    288 
    289 LOCAL_SHARED_LIBRARIES := \
    290 	libskia \
    291 	libstlport \
    292 	libdl
    293 
    294 # Add target alias to "gyp_all_modules" target.
    295 .PHONY: gyp_all_modules
    296 gyp_all_modules: printing_printing_gyp
    297 
    298 # Alias gyp target name.
    299 .PHONY: printing
    300 printing: printing_printing_gyp
    301 
    302 include $(BUILD_STATIC_LIBRARY)
    303