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