Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 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 := third_party_freetype_ft2_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 | |
| 15 | GYP_GENERATED_OUTPUTS := |
| 16 | |
| 17 | # Make sure our deps and generated files are built first. |
| 18 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 19 | |
| 20 | LOCAL_GENERATED_SOURCES := |
| 21 | |
| 22 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 23 | |
| 24 | LOCAL_SRC_FILES := \ |
| 25 | third_party/freetype/src/base/ftbbox.c \ |
| 26 | third_party/freetype/src/base/ftbitmap.c \ |
Torne (Richard Coles) | 9cf735d | 2012-11-19 13:42:58 +0000 | [diff] [blame] | 27 | third_party/freetype/src/base/ftfstype.c \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 28 | third_party/freetype/src/base/ftglyph.c \ |
| 29 | third_party/freetype/src/base/ftlcdfil.c \ |
| 30 | third_party/freetype/src/base/ftstroke.c \ |
| 31 | third_party/freetype/src/base/ftxf86.c \ |
| 32 | third_party/freetype/src/base/ftbase.c \ |
| 33 | third_party/freetype/src/base/ftsystem.c \ |
| 34 | third_party/freetype/src/base/ftinit.c \ |
| 35 | third_party/freetype/src/base/ftgasp.c \ |
Torne (Richard Coles) | 9cf735d | 2012-11-19 13:42:58 +0000 | [diff] [blame] | 36 | third_party/freetype/src/base/fttype1.c \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 37 | third_party/freetype/src/raster/raster.c \ |
| 38 | third_party/freetype/src/sfnt/sfnt.c \ |
| 39 | third_party/freetype/src/smooth/smooth.c \ |
| 40 | third_party/freetype/src/autofit/autofit.c \ |
| 41 | third_party/freetype/src/truetype/truetype.c \ |
| 42 | third_party/freetype/src/cff/cff.c \ |
| 43 | third_party/freetype/src/psnames/psnames.c \ |
| 44 | third_party/freetype/src/pshinter/pshinter.c |
| 45 | |
| 46 | |
| 47 | # Flags passed to both C and C++ files. |
| 48 | MY_CFLAGS := \ |
Torne (Richard Coles) | daff176 | 2012-11-21 16:04:45 +0000 | [diff] [blame] | 49 | -fstack-protector \ |
| 50 | --param=ssp-buffer-size=4 \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 51 | -fno-exceptions \ |
| 52 | -fno-strict-aliasing \ |
| 53 | -Wno-unused-parameter \ |
| 54 | -Wno-missing-field-initializers \ |
| 55 | -fvisibility=hidden \ |
| 56 | -pipe \ |
| 57 | -fPIC \ |
| 58 | -Wno-format \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 59 | -fno-tree-sra \ |
| 60 | -fuse-ld=gold \ |
| 61 | -Wno-psabi \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 62 | -ffunction-sections \ |
| 63 | -funwind-tables \ |
| 64 | -g \ |
| 65 | -fstack-protector \ |
| 66 | -fno-short-enums \ |
| 67 | -finline-limit=64 \ |
| 68 | -Wa,--noexecstack \ |
Torne (Richard Coles) | daff176 | 2012-11-21 16:04:45 +0000 | [diff] [blame] | 69 | -U_FORTIFY_SOURCE \ |
Android Chromium Automerger | ec65615 | 2013-01-04 19:20:26 +0000 | [diff] [blame] | 70 | -Wno-extra \ |
| 71 | -Wno-ignored-qualifiers \ |
| 72 | -Wno-type-limits \ |
Android Chromium Automerger | ec65615 | 2013-01-04 19:20:26 +0000 | [diff] [blame] | 73 | -Wno-address \ |
| 74 | -Wno-format-security \ |
Android Chromium Automerger | ec65615 | 2013-01-04 19:20:26 +0000 | [diff] [blame] | 75 | -Wno-return-type \ |
| 76 | -Wno-sequence-point \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 77 | -Os \ |
| 78 | -g \ |
| 79 | -fomit-frame-pointer \ |
| 80 | -fdata-sections \ |
| 81 | -ffunction-sections |
| 82 | |
| 83 | MY_CFLAGS_C := |
| 84 | |
| 85 | MY_DEFS := \ |
| 86 | '-D_FILE_OFFSET_BITS=64' \ |
Android Chromium Automerger | b4ba09c | 2013-01-23 01:09:29 +0000 | [diff] [blame] | 87 | '-DUSE_LINUX_BREAKPAD' \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 88 | '-DNO_TCMALLOC' \ |
| 89 | '-DDISABLE_NACL' \ |
| 90 | '-DCHROMIUM_BUILD' \ |
| 91 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 92 | '-DUSE_PROPRIETARY_CODECS' \ |
| 93 | '-DENABLE_GPU=1' \ |
| 94 | '-DUSE_OPENSSL=1' \ |
| 95 | '-DENABLE_EGLIMAGE=1' \ |
Android Chromium Automerger | 368ffb3 | 2013-02-20 15:11:02 +0000 | [diff] [blame] | 96 | '-DENABLE_LANGUAGE_DETECTION=1' \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 97 | '-DFT2_BUILD_LIBRARY' \ |
| 98 | '-DDARWIN_NO_CARBON' \ |
| 99 | '-DANDROID' \ |
| 100 | '-D__GNU_SOURCE=1' \ |
| 101 | '-DUSE_STLPORT=1' \ |
| 102 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
Torne (Richard Coles) | e0acda3 | 2012-12-11 12:57:46 +0000 | [diff] [blame] | 103 | '-DCHROME_BUILD_ID=""' \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 104 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 105 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 106 | '-D_DEBUG' |
| 107 | |
| 108 | LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) |
| 109 | |
| 110 | # Include paths placed before CFLAGS/CPPFLAGS |
| 111 | LOCAL_C_INCLUDES := \ |
| 112 | $(LOCAL_PATH)/third_party/freetype/build \ |
| 113 | $(LOCAL_PATH)/third_party/freetype/include \ |
Android Chromium Automerger | 9fec8b2 | 2013-05-28 11:16:38 +0000 | [diff] [blame^] | 114 | $(PWD)/frameworks/wilhelm/include \ |
| 115 | $(PWD)/bionic \ |
| 116 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 117 | |
| 118 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES) |
| 119 | |
| 120 | # Flags passed to only C++ (and not C) files. |
| 121 | LOCAL_CPPFLAGS := \ |
| 122 | -fno-rtti \ |
| 123 | -fno-threadsafe-statics \ |
| 124 | -fvisibility-inlines-hidden \ |
| 125 | -Wno-deprecated \ |
| 126 | -Wno-abi \ |
Android Chromium Automerger | 9710b66 | 2013-03-11 14:10:23 +0000 | [diff] [blame] | 127 | -Wno-error=c++0x-compat \ |
| 128 | -Wno-non-virtual-dtor \ |
| 129 | -Wno-sign-promo \ |
| 130 | -Wno-non-virtual-dtor |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 131 | |
| 132 | ### Rules for final target. |
| 133 | |
| 134 | LOCAL_LDFLAGS := \ |
Torne (Richard Coles) | daff176 | 2012-11-21 16:04:45 +0000 | [diff] [blame] | 135 | -Wl,-z,now \ |
| 136 | -Wl,-z,relro \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 137 | -Wl,-z,noexecstack \ |
| 138 | -fPIC \ |
| 139 | -Wl,-z,relro \ |
| 140 | -Wl,-z,now \ |
| 141 | -fuse-ld=gold \ |
| 142 | -nostdlib \ |
| 143 | -Wl,--no-undefined \ |
| 144 | -Wl,--exclude-libs=ALL \ |
| 145 | -Wl,--icf=safe \ |
Torne (Richard Coles) | 1c5b8dc | 2013-04-16 14:06:30 +0100 | [diff] [blame] | 146 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 147 | -Wl,-O1 \ |
Torne (Richard Coles) | 1c5b8dc | 2013-04-16 14:06:30 +0100 | [diff] [blame] | 148 | -Wl,--as-needed |
Torne (Richard Coles) | 7f5f373 | 2012-10-09 14:16:36 +0100 | [diff] [blame] | 149 | |
| 150 | |
| 151 | LOCAL_STATIC_LIBRARIES := |
| 152 | |
| 153 | # Enable grouping to fix circular references |
| 154 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 155 | |
| 156 | LOCAL_SHARED_LIBRARIES := \ |
| 157 | libstlport \ |
| 158 | libdl |
| 159 | |
| 160 | # Add target alias to "gyp_all_modules" target. |
| 161 | .PHONY: gyp_all_modules |
| 162 | gyp_all_modules: third_party_freetype_ft2_gyp |
| 163 | |
| 164 | # Alias gyp target name. |
| 165 | .PHONY: ft2 |
| 166 | ft2: third_party_freetype_ft2_gyp |
| 167 | |
| 168 | include $(BUILD_STATIC_LIBRARY) |