4
4
5
5
LIBLEVELDB_INT = leveldb/libleveldb.a
6
6
LIBMEMENV_INT = leveldb/libmemenv.a
7
- LIBLEVELDB_SSE42_INT = leveldb/libleveldb_sse42.a
8
7
9
8
EXTRA_LIBRARIES += $(LIBLEVELDB_INT)
10
9
EXTRA_LIBRARIES += $(LIBMEMENV_INT)
11
- EXTRA_LIBRARIES += $(LIBLEVELDB_SSE42_INT)
12
10
13
11
LIBLEVELDB += $(LIBLEVELDB_INT)
14
12
LIBMEMENV += $(LIBMEMENV_INT)
15
- LIBLEVELDB_SSE42 = $(LIBLEVELDB_SSE42_INT)
16
13
17
14
LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/include
18
15
LEVELDB_CPPFLAGS += -I$(srcdir)/leveldb/helpers/memenv
19
16
20
17
LEVELDB_CPPFLAGS_INT =
21
18
LEVELDB_CPPFLAGS_INT += -I$(srcdir)/leveldb
22
- LEVELDB_CPPFLAGS_INT += $(LEVELDB_TARGET_FLAGS)
23
- LEVELDB_CPPFLAGS_INT += -DLEVELDB_ATOMIC_PRESENT
24
19
LEVELDB_CPPFLAGS_INT += -D__STDC_LIMIT_MACROS
20
+ LEVELDB_CPPFLAGS_INT += -DHAVE_SNAPPY=0 -DHAVE_CRC32C=0
21
+ LEVELDB_CPPFLAGS_INT += -DHAVE_FDATASYNC=@HAVE_FDATASYNC@
22
+ LEVELDB_CPPFLAGS_INT += -DHAVE_FULLFSYNC=@HAVE_FULLFSYNC@
23
+ LEVELDB_CPPFLAGS_INT += -DHAVE_O_CLOEXEC=@HAVE_O_CLOEXEC@
24
+
25
+ if WORDS_BIGENDIAN
26
+ LEVELDB_CPPFLAGS_INT += -DLEVELDB_IS_BIG_ENDIAN=1
27
+ else
28
+ LEVELDB_CPPFLAGS_INT += -DLEVELDB_IS_BIG_ENDIAN=0
29
+ endif
25
30
26
31
if TARGET_WINDOWS
27
- LEVELDB_CPPFLAGS_INT += -DLEVELDB_PLATFORM_WINDOWS -D__USE_MINGW_ANSI_STDIO=1
32
+ LEVELDB_CPPFLAGS_INT += -DLEVELDB_PLATFORM_WINDOWS -D_UNICODE -DUNICODE - D__USE_MINGW_ANSI_STDIO=1
28
33
else
29
34
LEVELDB_CPPFLAGS_INT += -DLEVELDB_PLATFORM_POSIX
30
35
endif
@@ -33,12 +38,8 @@ leveldb_libleveldb_a_CPPFLAGS = $(AM_CPPFLAGS) $(LEVELDB_CPPFLAGS_INT) $(LEVELDB
33
38
leveldb_libleveldb_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
34
39
35
40
leveldb_libleveldb_a_SOURCES=
36
- leveldb_libleveldb_a_SOURCES += leveldb/port/atomic_pointer.h
37
- leveldb_libleveldb_a_SOURCES += leveldb/port/port_example.h
38
- leveldb_libleveldb_a_SOURCES += leveldb/port/port_posix.h
39
- leveldb_libleveldb_a_SOURCES += leveldb/port/win/stdint.h
41
+ leveldb_libleveldb_a_SOURCES += leveldb/port/port_stdcxx.h
40
42
leveldb_libleveldb_a_SOURCES += leveldb/port/port.h
41
- leveldb_libleveldb_a_SOURCES += leveldb/port/port_win.h
42
43
leveldb_libleveldb_a_SOURCES += leveldb/port/thread_annotations.h
43
44
leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/db.h
44
45
leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/options.h
@@ -47,6 +48,7 @@ leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/filter_policy.h
47
48
leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/slice.h
48
49
leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/table_builder.h
49
50
leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/env.h
51
+ leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/export.h
50
52
leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/c.h
51
53
leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/iterator.h
52
54
leveldb_libleveldb_a_SOURCES += leveldb/include/leveldb/cache.h
@@ -78,6 +80,7 @@ leveldb_libleveldb_a_SOURCES += leveldb/table/format.h
78
80
leveldb_libleveldb_a_SOURCES += leveldb/table/iterator_wrapper.h
79
81
leveldb_libleveldb_a_SOURCES += leveldb/util/crc32c.h
80
82
leveldb_libleveldb_a_SOURCES += leveldb/util/env_posix_test_helper.h
83
+ leveldb_libleveldb_a_SOURCES += leveldb/util/env_windows_test_helper.h
81
84
leveldb_libleveldb_a_SOURCES += leveldb/util/arena.h
82
85
leveldb_libleveldb_a_SOURCES += leveldb/util/random.h
83
86
leveldb_libleveldb_a_SOURCES += leveldb/util/posix_logger.h
@@ -87,7 +90,9 @@ leveldb_libleveldb_a_SOURCES += leveldb/util/coding.h
87
90
leveldb_libleveldb_a_SOURCES += leveldb/util/testutil.h
88
91
leveldb_libleveldb_a_SOURCES += leveldb/util/mutexlock.h
89
92
leveldb_libleveldb_a_SOURCES += leveldb/util/logging.h
93
+ leveldb_libleveldb_a_SOURCES += leveldb/util/no_destructor.h
90
94
leveldb_libleveldb_a_SOURCES += leveldb/util/testharness.h
95
+ leveldb_libleveldb_a_SOURCES += leveldb/util/windows_logger.h
91
96
92
97
leveldb_libleveldb_a_SOURCES += leveldb/db/builder.cc
93
98
leveldb_libleveldb_a_SOURCES += leveldb/db/c.cc
@@ -120,7 +125,6 @@ leveldb_libleveldb_a_SOURCES += leveldb/util/coding.cc
120
125
leveldb_libleveldb_a_SOURCES += leveldb/util/comparator.cc
121
126
leveldb_libleveldb_a_SOURCES += leveldb/util/crc32c.cc
122
127
leveldb_libleveldb_a_SOURCES += leveldb/util/env.cc
123
- leveldb_libleveldb_a_SOURCES += leveldb/util/env_posix.cc
124
128
leveldb_libleveldb_a_SOURCES += leveldb/util/filter_policy.cc
125
129
leveldb_libleveldb_a_SOURCES += leveldb/util/hash.cc
126
130
leveldb_libleveldb_a_SOURCES += leveldb/util/histogram.cc
@@ -129,21 +133,12 @@ leveldb_libleveldb_a_SOURCES += leveldb/util/options.cc
129
133
leveldb_libleveldb_a_SOURCES += leveldb/util/status.cc
130
134
131
135
if TARGET_WINDOWS
132
- leveldb_libleveldb_a_SOURCES += leveldb/util/env_win.cc
133
- leveldb_libleveldb_a_SOURCES += leveldb/port/port_win.cc
136
+ leveldb_libleveldb_a_SOURCES += leveldb/util/env_windows.cc
134
137
else
135
- leveldb_libleveldb_a_SOURCES += leveldb/port/port_posix .cc
138
+ leveldb_libleveldb_a_SOURCES += leveldb/util/env_posix .cc
136
139
endif
137
140
138
141
leveldb_libmemenv_a_CPPFLAGS = $(leveldb_libleveldb_a_CPPFLAGS)
139
142
leveldb_libmemenv_a_CXXFLAGS = $(leveldb_libleveldb_a_CXXFLAGS)
140
143
leveldb_libmemenv_a_SOURCES = leveldb/helpers/memenv/memenv.cc
141
144
leveldb_libmemenv_a_SOURCES += leveldb/helpers/memenv/memenv.h
142
-
143
- leveldb_libleveldb_sse42_a_CPPFLAGS = $(leveldb_libleveldb_a_CPPFLAGS)
144
- leveldb_libleveldb_sse42_a_CXXFLAGS = $(leveldb_libleveldb_a_CXXFLAGS)
145
- if ENABLE_HWCRC32
146
- leveldb_libleveldb_sse42_a_CPPFLAGS += -DLEVELDB_PLATFORM_POSIX_SSE
147
- leveldb_libleveldb_sse42_a_CXXFLAGS += $(SSE42_CXXFLAGS)
148
- endif
149
- leveldb_libleveldb_sse42_a_SOURCES = leveldb/port/port_posix_sse.cc
0 commit comments