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