| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [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_leveldatabase_leveldatabase_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_CPP_EXTENSION := .cc |
| 21 | LOCAL_GENERATED_SOURCES := |
| 22 | |
| 23 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 24 | |
| 25 | LOCAL_SRC_FILES := \ |
| 26 | third_party/leveldatabase/env_chromium.cc \ |
| 27 | third_party/leveldatabase/port/port_chromium.cc \ |
| 28 | third_party/leveldatabase/src/db/builder.cc \ |
| 29 | third_party/leveldatabase/src/db/db_impl.cc \ |
| 30 | third_party/leveldatabase/src/db/db_iter.cc \ |
| 31 | third_party/leveldatabase/src/db/filename.cc \ |
| 32 | third_party/leveldatabase/src/db/dbformat.cc \ |
| 33 | third_party/leveldatabase/src/db/log_reader.cc \ |
| 34 | third_party/leveldatabase/src/db/log_writer.cc \ |
| 35 | third_party/leveldatabase/src/db/memtable.cc \ |
| 36 | third_party/leveldatabase/src/db/repair.cc \ |
| 37 | third_party/leveldatabase/src/db/table_cache.cc \ |
| 38 | third_party/leveldatabase/src/db/version_edit.cc \ |
| 39 | third_party/leveldatabase/src/db/version_set.cc \ |
| 40 | third_party/leveldatabase/src/db/write_batch.cc \ |
| 41 | third_party/leveldatabase/src/helpers/memenv/memenv.cc \ |
| 42 | third_party/leveldatabase/src/table/block.cc \ |
| 43 | third_party/leveldatabase/src/table/block_builder.cc \ |
| 44 | third_party/leveldatabase/src/table/filter_block.cc \ |
| 45 | third_party/leveldatabase/src/table/format.cc \ |
| 46 | third_party/leveldatabase/src/table/iterator.cc \ |
| 47 | third_party/leveldatabase/src/table/merger.cc \ |
| 48 | third_party/leveldatabase/src/table/table.cc \ |
| 49 | third_party/leveldatabase/src/table/table_builder.cc \ |
| 50 | third_party/leveldatabase/src/table/two_level_iterator.cc \ |
| 51 | third_party/leveldatabase/src/util/arena.cc \ |
| 52 | third_party/leveldatabase/src/util/bloom.cc \ |
| 53 | third_party/leveldatabase/src/util/cache.cc \ |
| 54 | third_party/leveldatabase/src/util/coding.cc \ |
| 55 | third_party/leveldatabase/src/util/comparator.cc \ |
| 56 | third_party/leveldatabase/src/util/crc32c.cc \ |
| 57 | third_party/leveldatabase/src/util/env.cc \ |
| 58 | third_party/leveldatabase/src/util/filter_policy.cc \ |
| 59 | third_party/leveldatabase/src/util/hash.cc \ |
| 60 | third_party/leveldatabase/src/util/logging.cc \ |
| 61 | third_party/leveldatabase/src/util/options.cc \ |
| 62 | third_party/leveldatabase/src/util/status.cc |
| 63 | |
| 64 | |
| 65 | # Flags passed to both C and C++ files. |
| 66 | MY_CFLAGS := \ |
| 67 | --param=ssp-buffer-size=4 \ |
| 68 | -fno-exceptions \ |
| 69 | -fno-strict-aliasing \ |
| 70 | -Wno-unused-parameter \ |
| 71 | -Wno-missing-field-initializers \ |
| 72 | -fvisibility=hidden \ |
| 73 | -pipe \ |
| 74 | -fPIC \ |
| 75 | -Wno-format \ |
| 76 | -m32 \ |
| 77 | -mmmx \ |
| 78 | -march=pentium4 \ |
| 79 | -msse2 \ |
| 80 | -mfpmath=sse \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 81 | -fuse-ld=gold \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 82 | -ffunction-sections \ |
| 83 | -funwind-tables \ |
| 84 | -g \ |
| 85 | -fno-short-enums \ |
| 86 | -finline-limit=64 \ |
| 87 | -Wa,--noexecstack \ |
| 88 | -U_FORTIFY_SOURCE \ |
| 89 | -Wno-extra \ |
| 90 | -Wno-ignored-qualifiers \ |
| 91 | -Wno-type-limits \ |
| 92 | -Wno-address \ |
| 93 | -Wno-format-security \ |
| 94 | -Wno-return-type \ |
| 95 | -Wno-sequence-point \ |
| 96 | -fno-stack-protector \ |
| 97 | -Os \ |
| 98 | -g \ |
| 99 | -fomit-frame-pointer \ |
| 100 | -fdata-sections \ |
| 101 | -ffunction-sections |
| 102 | |
| 103 | MY_CFLAGS_C := |
| 104 | |
| 105 | MY_DEFS := \ |
| 106 | '-DLEVELDB_PLATFORM_CHROMIUM=1' \ |
| Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame^] | 107 | '-DANGLE_DX11' \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 108 | '-D_FILE_OFFSET_BITS=64' \ |
| 109 | '-DUSE_LINUX_BREAKPAD' \ |
| 110 | '-DNO_TCMALLOC' \ |
| 111 | '-DDISABLE_NACL' \ |
| 112 | '-DCHROMIUM_BUILD' \ |
| 113 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 114 | '-DUSE_PROPRIETARY_CODECS' \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 115 | '-DENABLE_GPU=1' \ |
| 116 | '-DUSE_OPENSSL=1' \ |
| 117 | '-DENABLE_EGLIMAGE=1' \ |
| 118 | '-DENABLE_LANGUAGE_DETECTION=1' \ |
| 119 | '-DANDROID' \ |
| 120 | '-D__GNU_SOURCE=1' \ |
| 121 | '-DUSE_STLPORT=1' \ |
| 122 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 123 | '-DCHROME_BUILD_ID=""' \ |
| 124 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 125 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 126 | '-D_DEBUG' |
| 127 | |
| 128 | LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) |
| 129 | |
| 130 | # Include paths placed before CFLAGS/CPPFLAGS |
| 131 | LOCAL_C_INCLUDES := \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 132 | $(LOCAL_PATH)/third_party/leveldatabase \ |
| 133 | $(LOCAL_PATH)/third_party/leveldatabase/src \ |
| 134 | $(LOCAL_PATH)/third_party/leveldatabase/src/include \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 135 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 136 | $(LOCAL_PATH) \ |
| Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 137 | $(LOCAL_PATH)/third_party/re2 \ |
| 138 | $(PWD)/frameworks/wilhelm/include \ |
| 139 | $(PWD)/bionic \ |
| 140 | $(PWD)/external/stlport/stlport |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 141 | |
| 142 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES) |
| 143 | |
| 144 | # Flags passed to only C++ (and not C) files. |
| 145 | LOCAL_CPPFLAGS := \ |
| 146 | -fno-rtti \ |
| 147 | -fno-threadsafe-statics \ |
| 148 | -fvisibility-inlines-hidden \ |
| 149 | -Wno-deprecated \ |
| 150 | -Wno-error=c++0x-compat \ |
| 151 | -Wno-non-virtual-dtor \ |
| 152 | -Wno-sign-promo \ |
| 153 | -Wno-non-virtual-dtor |
| 154 | |
| 155 | ### Rules for final target. |
| 156 | |
| 157 | LOCAL_LDFLAGS := \ |
| 158 | -Wl,-z,now \ |
| 159 | -Wl,-z,relro \ |
| 160 | -Wl,-z,noexecstack \ |
| 161 | -fPIC \ |
| 162 | -m32 \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 163 | -fuse-ld=gold \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 164 | -nostdlib \ |
| 165 | -Wl,--no-undefined \ |
| 166 | -Wl,--exclude-libs=ALL \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 167 | -Wl,--gc-sections \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 168 | -Wl,-O1 \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 169 | -Wl,--as-needed |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 170 | |
| 171 | |
| 172 | LOCAL_STATIC_LIBRARIES := |
| 173 | |
| 174 | # Enable grouping to fix circular references |
| 175 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 176 | |
| 177 | LOCAL_SHARED_LIBRARIES := \ |
| 178 | libstlport \ |
| 179 | libdl |
| 180 | |
| 181 | # Add target alias to "gyp_all_modules" target. |
| 182 | .PHONY: gyp_all_modules |
| 183 | gyp_all_modules: third_party_leveldatabase_leveldatabase_gyp |
| 184 | |
| 185 | # Alias gyp target name. |
| 186 | .PHONY: leveldatabase |
| 187 | leveldatabase: third_party_leveldatabase_leveldatabase_gyp |
| 188 | |
| 189 | include $(BUILD_STATIC_LIBRARY) |