Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull doc updates #16

Closed
wants to merge 233 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
64db193
Updated xcode project to always include debug info
Jan 2, 2012
bde586f
Made Array::m_capacity track how many items there are room for (rathe…
Jan 3, 2012
bb973c0
Added queries
rrrlasse Jan 5, 2012
22620ea
Queries: Replaced all the node types with just 1.
rrrlasse Jan 6, 2012
d36b34e
deleted superfluous cpp file
rrrlasse Jan 6, 2012
7d9527f
Added 'between' in queries
rrrlasse Jan 9, 2012
8e7aff3
added or operator
rrrlasse Jan 9, 2012
3a300de
Merge branch 'master' of github.com:rrrlasse/tightdb into merge_query
Jan 10, 2012
c7a894c
Fixed warnings, etc
rrrlasse Jan 10, 2012
7fd51d0
Fixed small warnings etc
rrrlasse Jan 10, 2012
478baf3
Merge branch 'master' of github.com:rrrlasse/tightdb into merge_query
Jan 10, 2012
f788dd8
Minor style fixes
Jan 10, 2012
1298348
Fix for missing 'Named Return Value Optimization'
Jan 10, 2012
0002c19
Fixed memory overwrite error related to virtual functions
Jan 10, 2012
a80a67b
Query destructor
rrrlasse Jan 11, 2012
1fbf920
Strings (char *) passed to query criterias are now saved internally s…
rrrlasse Jan 11, 2012
8a3f0b0
Merge branch 'merge_query' of github.com:astigsen/tightdb
rrrlasse Jan 11, 2012
fb9dfdf
Minor fixes to query code
Jan 11, 2012
a2db832
Fixed case
Jan 11, 2012
cd5939a
Added copy constructor to query
rrrlasse Jan 11, 2012
4cfe570
simplification
rrrlasse Jan 11, 2012
02884ab
Made queries work with Enums
rrrlasse Jan 11, 2012
fba6de4
queries now support bool
rrrlasse Jan 12, 2012
2bd063e
Added BeginsWith and Contains for string queries
rrrlasse Jan 12, 2012
da9ac19
Using native Column Find() for queries when possible
rrrlasse Jan 12, 2012
6583cde
Fixed bug in Column::FindAll
rrrlasse Jan 12, 2012
1369feb
Fixed bug in AdaptiveStringColumn::Find
rrrlasse Jan 12, 2012
f220b9e
Merge branch 'master' of github.com:rrrlasse/tightdb into merge_query
Jan 12, 2012
4e85889
Fixed const correctness in copy constructors
Jan 12, 2012
cd8bd09
Supports ColumnStringEnum
rrrlasse Jan 12, 2012
c58cf27
Merge branch 'merge_query' of github.com:astigsen/tightdb
rrrlasse Jan 12, 2012
5101369
Modification for Linux/PHP interface
rrrlasse Jan 12, 2012
b75a5ab
Added return of subtables from views
Jan 13, 2012
fb02b24
Prepared for case insensitive search
rrrlasse Jan 13, 2012
3e591f4
Queries support nicer syntax
rrrlasse Jan 17, 2012
9c03c48
Query simplifications
rrrlasse Jan 17, 2012
d63352e
Merge branch 'master' of github.com:rrrlasse/tightdb into merge_query
Jan 17, 2012
b0c6415
Now in UTF8
rrrlasse Jan 17, 2012
d95b3b3
Set defaults for case sensitivity (in queries)
Jan 17, 2012
20dd912
Merge branch 'merge_query' of github.com:astigsen/tightdb
Jan 17, 2012
6a3c61c
table.h -> Table.h
rrrlasse Jan 17, 2012
434af43
Minor style fixes
Jan 17, 2012
3133af7
Merge branch 'master' of github.com:rrrlasse/tightdb into merge_query
Jan 17, 2012
5c7dd5b
Fixed bug in queries
rrrlasse Jan 17, 2012
d2dd2b1
Merge branch 'merge_query' of github.com:astigsen/tightdb
rrrlasse Jan 17, 2012
ad26eae
...
rrrlasse Jan 17, 2012
3e9226d
queries support EndsWith
rrrlasse Jan 17, 2012
f68ddb9
Minor style fixes
Jan 17, 2012
30d3399
Fixed bug in Group destructor
Jan 19, 2012
9f311a6
Added method to check if Group is valid (after load from disk)
Jan 19, 2012
2b93563
Added validation when loading memory buffers in Group
Jan 19, 2012
9c27fc2
Removed superfluous return statements
Jan 19, 2012
a51f1b0
Added unit tests for invalid groups
Jan 20, 2012
bbb69d0
Added ColumnMixed (still need to be added to table)
Jan 20, 2012
9411dfb
Added support for mixed columns to Table
Jan 23, 2012
c95aca4
Fixed name collision of TypeString, TypeInum, etc, in windows.h
rrrlasse Jan 23, 2012
ce4c632
Case insensitive string queries on Windows
rrrlasse Jan 23, 2012
9e78a80
Forgot 2 files before
rrrlasse Jan 23, 2012
4bf4faa
Added support for sub-tables in mixed columns
Jan 24, 2012
a24331c
Wrapped time_t in class to avoid type conflicts when time_t is same s…
Jan 25, 2012
5b9b519
Fixed bug in Find() and FindAll() under some circumstances where star…
Jan 26, 2012
eef4385
Multithreaded queries
rrrlasse Jan 26, 2012
55ed5bb
Multithreaded queries, again. Forgot some files
rrrlasse Jan 26, 2012
f163313
Merge branch 'merge_query' of github.com:astigsen/tightdb
rrrlasse Jan 27, 2012
caf8795
Bug in serialization under windows
rrrlasse Jan 27, 2012
e5f546e
Simplified all serialization to one recursive function
Jan 27, 2012
85e3425
Added limit function to queries
rrrlasse Jan 27, 2012
e373638
Further simplified serializeation
Jan 27, 2012
769f4ba
Fixed memory overwrite bug in ColumnString
Jan 27, 2012
41dc6ff
Optimized queries - no longer traverses through entire tree for each …
rrrlasse Feb 7, 2012
ef99328
Forgot files in last commit...
rrrlasse Feb 7, 2012
4f5b0e2
Forgot a file
rrrlasse Feb 7, 2012
d689347
Bugfix
rrrlasse Feb 7, 2012
d47a532
Merge branch 'merge_query' of github.com:astigsen/tightdb
rrrlasse Feb 7, 2012
5403380
Queries supported for subtables
rrrlasse Feb 16, 2012
197e256
Merge branches 'master' and 'merge_query'
Feb 23, 2012
317d6b8
Builds and runs on Linux/gcc
rrrlasse Feb 24, 2012
d40be62
Fixed compile bug on the amazon server
rrrlasse Feb 24, 2012
8de4732
SSE on Linux
rrrlasse Feb 24, 2012
111bb88
More SSE on Linux
rrrlasse Feb 24, 2012
9febf20
Merge branch 'master' of github.com:rrrlasse/tightdb
rrrlasse Feb 24, 2012
6787385
Query object now kills its threads when it's destroyed
rrrlasse Feb 27, 2012
7cd5a8e
Made Array::FindAll use Array::Find to simplify, and made Array::Find…
rrrlasse Feb 27, 2012
9edcb56
Aggregate functions (max, min, sum, count, avg) on Query object so th…
rrrlasse Feb 27, 2012
ae373d4
Aggregate functions (sum, avg, max, min, count) on query object, so t…
rrrlasse Feb 27, 2012
ccc48ac
aggregate functions now const
rrrlasse Feb 27, 2012
6ffec77
More aggregate unit tests
rrrlasse Feb 27, 2012
524679f
Fixed warnings, size_t/int64_t things, const, etc
rrrlasse Feb 27, 2012
86f9892
Increased speed of PHP test "Total delay from airport" by avoiding ex…
rrrlasse Feb 27, 2012
bb33227
Test on subtable query
rrrlasse Feb 28, 2012
f933eb1
Subtable query test
rrrlasse Feb 28, 2012
cd34862
Now builds in 32 bit mode in VS again
rrrlasse Feb 28, 2012
057e3c1
Removed superfluous unittest timer
rrrlasse Feb 28, 2012
d1ad870
Automatic generation of 'tightdb.h'. This is done with a Python scrip…
Mar 2, 2012
88f128c
Fixes for: Automatic generation of 'tightdb.h'. This is done with a P…
Mar 2, 2012
74710a1
The maximum number of table columns can now be specified when regener…
Mar 2, 2012
2d5203e
Deprecated casts changed to static_cast<> in 'tightdb.h'
Mar 2, 2012
559b434
Fixed bug in Table::GetDate()
rrrlasse Mar 5, 2012
69c4b0e
Merge branch 'master' of github.com:rrrlasse/tightdb
rrrlasse Mar 5, 2012
7123dfc
Memory leak in test
rrrlasse Mar 5, 2012
577ad0f
sorting
rrrlasse Mar 6, 2012
e10f8ff
Automatic dependency tracking added to Makefile
Mar 7, 2012
9ccfa3b
Merge branch 'sort' of github.com:rrrlasse/tightdb
rrrlasse Mar 8, 2012
6f4e17d
Removed lots of warnings on VC / gcc
rrrlasse Mar 8, 2012
8542c4a
Now possible to build 32/64 bit static TightDB.lib in Visual Studio
rrrlasse Mar 8, 2012
b9205a7
Forgot debug modes of .libs
rrrlasse Mar 8, 2012
4d3ebb5
Removed a couple of more warnings, now warning free on gcc/VS with /W…
rrrlasse Mar 8, 2012
5d2ed99
Makefile improvements: Properly working automatic dependencies, and g…
Mar 12, 2012
b4854f8
Merge branch 'master' of github.com:rrrlasse/tightdb
Mar 13, 2012
c005fc4
Fixed crash in utf8.h under Windows in 32-bit mode (CharUpperW expect…
rrrlasse Mar 13, 2012
9735527
Fixed tons of 32-bit warnings and also added Get() -> size_t limit te…
rrrlasse Mar 14, 2012
1b8e016
Merge branch 'master' of github.com:rrrlasse/tightdb
rrrlasse Mar 14, 2012
90d55f6
Fixed cool/interesting 32-bit bugs
rrrlasse Mar 14, 2012
7406c50
Merge branch 'master' of github.com:rrrlasse/tightdb
Mar 14, 2012
1d8c5c6
More warnings
rrrlasse Mar 14, 2012
cfeefd0
Merge branch 'master' of github.com:rrrlasse/tightdb
Mar 14, 2012
588bbed
More warnings on 32-bit Linux/gcc
rrrlasse Mar 14, 2012
ac826c3
Merge branch 'master' of github.com:rrrlasse/tightdb
Mar 14, 2012
5a732f7
Last warnings on 32bit gcc if we're lucky
rrrlasse Mar 14, 2012
29702a8
Merge branch 'master' of github.com:rrrlasse/tightdb
Mar 14, 2012
63c9cab
I want to see the G++ commands while making
Mar 14, 2012
6dcd0bb
Source code documentation
rrrlasse Mar 14, 2012
611aea3
Fixed minor errors and warnings for xcode build
Mar 15, 2012
12ec385
Minor Makefile tweaks
bjchrist Mar 15, 2012
6fc8171
Refactored Group::GetTable
Mar 16, 2012
e96ce2f
Initial to_json implementation
Mar 16, 2012
c72be61
Merge branch 'merge_query'
Mar 16, 2012
de4730f
Table::to_json does not need to be a template
Mar 19, 2012
3d727e4
Merge branch 'master' of github.com:rrrlasse/tightdb
Mar 19, 2012
fd4621e
Merge branch 'master' of github.com:kspangsege/tightdb
Mar 19, 2012
865e9a9
First steps
Mar 19, 2012
3597285
Added support for Delete() and Clear() in TableView
Mar 20, 2012
6d19f2a
Just a snapshot
Mar 21, 2012
8f0090f
Just a snapshot
Mar 21, 2012
22208e3
Just a snapshot
Mar 22, 2012
6a388eb
Fixed bug in sorting
rrrlasse Mar 22, 2012
6139e12
Merge branch 'master' of github.com:astigsen/tightdb
rrrlasse Mar 22, 2012
3aafb34
Added unit test
rrrlasse Mar 22, 2012
1f22ec1
Just a snapshot
Mar 22, 2012
a33fa81
Initial implematation of dumping internal array structure in graphviz…
Mar 26, 2012
57ce5bc
Notes of how to most quickly get subtables to work
kspangsege Mar 26, 2012
4da5600
Fixed some bugs in Table::Delete() and Clear()
Mar 27, 2012
9adc449
Just a snapshot
Mar 27, 2012
7b19cc6
Merge branch 'master' of github.com:rrrlasse/tightdb
Mar 27, 2012
9904816
Merge branch 'master' of github.com:astigsen/tightdb
Mar 27, 2012
367a69a
Merge from master
Mar 27, 2012
088b5f5
Fixed Delete() and Clear() for ColumnStringEnum
Mar 27, 2012
04089c5
Support for .Delete() for queries
rrrlasse Mar 27, 2012
bd53744
Fix uninitialized flag
Mar 27, 2012
3afeae4
Just a snapshot
Mar 27, 2012
6650c33
Added project specific Emacs settings
kspangsege Mar 27, 2012
518b416
Just a snapshot - does not compile!
kspangsege Mar 27, 2012
009889a
Just a snapshot - does not compile!
kspangsege Mar 27, 2012
c4fe0a2
Make sure all leafs in column b-trees have same type (so the hasref p…
Mar 28, 2012
5f24adb
Fixed issue with ref drift in Table::m_columns on Optimize()
Mar 28, 2012
6bc6a49
Improved look of dot output
Mar 28, 2012
7989b6d
Compiles but runtime issues exist
Mar 28, 2012
15baf4c
Merge branch 'master' of github.com:astigsen/tightdb
Mar 28, 2012
24f57f6
Merge branch 'master' of github.com:kspangsege/tightdb into subtables
Mar 28, 2012
b619b41
Minor fixes: Compiles but runtime issues exist
Mar 28, 2012
970f63e
All unit tests pass
kspangsege Mar 28, 2012
094d888
All unit tests pass
kspangsege Mar 28, 2012
856428c
Thoroughly checked
kspangsege Mar 28, 2012
0bf31d0
Garbage files removed
Mar 29, 2012
5fb5435
Fixed problem in b-tree code when referring to composite arrays
Mar 29, 2012
313d429
Added long strings and subtable in mixed to graph output
Mar 29, 2012
b5d1298
Added verification for sub-table in table and mixed columns
Mar 29, 2012
9214307
Unit test added to test subtables
Mar 29, 2012
730ea84
Merge from astigsen
Mar 29, 2012
6dc055f
Merge branch 'subtables2'
Mar 29, 2012
99fd8d3
Make stuff private, and move Array::m_is_subtable_root to an existing…
Mar 29, 2012
e2efdab
make debug now adds -D_DEBUG
Mar 29, 2012
816cd87
Fixed 32/64-bit error. Fixed checking of array parent for subtable ro…
Mar 30, 2012
b122383
Extended tests to to add sub-tables to multible leafs (both in table …
Mar 30, 2012
eb52af5
Minor style fixes in query code
Mar 30, 2012
713fbf4
Added Short tutorial for C++ in /doc
Mar 30, 2012
1680dc2
fixed warning
rrrlasse Mar 30, 2012
67118cc
Previous commit didn't compile under windows - Fixed. REmoved warning…
Mar 30, 2012
129733b
SSE3 flag
rrrlasse Apr 2, 2012
c52807d
Removed obsolete Column::GetParentInfo()
Apr 2, 2012
2ff0a4f
Makefile
rrrlasse Apr 2, 2012
39ee44e
Do not have Git track test/test-stl/test-stl and test/test-tightdb/te…
Apr 2, 2012
04f6994
Merge branch 'master' of github.com:bmunkholm/tightdb
rrrlasse Apr 2, 2012
2caf0d9
Do not have Git track database files created during testing
Apr 2, 2012
8297e25
Reference counting in tables references: Compiles, but not complete
Apr 2, 2012
ee33868
Fixed bug in ColumnTable::GetTableSize() where it did no specify a pa…
Apr 3, 2012
aeb91d3
Merge from master
Apr 3, 2012
034cb69
Added Direct Access methods to get values from column without instant…
Apr 3, 2012
971fad9
Minor query perf improvement
Apr 3, 2012
9f1c3c3
Further improved direct get performance
Apr 4, 2012
a967d8c
Fixed minor bug in queries against stringenum columns (looking for no…
Apr 4, 2012
9da1374
Reference counting in tables references: Complete, but many leaks and…
Apr 4, 2012
472e207
Fixed several memory leaks: ColumnMixed::m_array and many in unit tests.
Apr 4, 2012
c694e47
Merge from master
Apr 4, 2012
fbed95c
Reference counting in tables references: Memory leaks and access erro…
Apr 4, 2012
ec315e5
Major Makefiles makeover:
kspangsege Apr 9, 2012
2e73fac
Merge branch 'master' into subtables2
kspangsege Apr 9, 2012
966b2dc
Changes in Makefile/CXXFLAGS were needed to make valgrind happy.
kspangsege Apr 9, 2012
79fedee
Merge branch 'master' into subtables2
kspangsege Apr 9, 2012
143f35f
Memory error identified when writing arrays to disc - no solution yet…
kspangsege Apr 10, 2012
8f12e9a
Merge branch 'master' into subtables2
kspangsege Apr 10, 2012
2dbdb12
No need for a shared library with debugging enabled
kspangsege Apr 10, 2012
5e34b5b
Merge branch 'master' into subtables2
kspangsege Apr 10, 2012
e3e6f40
Add 'gcovr' to Makefile
Apr 10, 2012
31829fd
Merge branch 'master' into subtables2
Apr 10, 2012
310d551
Added assertions in ~Table to check for correct reference count when …
Apr 10, 2012
3f40df7
More Makefile fixes: 'make test' will now no run valgrind. 'make memt…
Apr 10, 2012
8087901
Merge branch 'master' into subtables2
Apr 10, 2012
adcd970
More makefile changes: Use -DMAX_LIST_SIZE=4 in debug mode. Be able t…
kspangsege Apr 10, 2012
8d70376
More makefile changes: Use -DMAX_LIST_SIZE=4 in debug mode. Be able t…
kspangsege Apr 10, 2012
4879308
Introduction of /config.mk to hold the common CXXFLAGS for all Makefiles
kspangsege Apr 10, 2012
7d92bac
First steps in eliminating Array::m_is_subtable_root. Testing fails b…
kspangsege Apr 10, 2012
bbead0f
Revert "First steps in eliminating Array::m_is_subtable_root. Testing…
Apr 11, 2012
405c433
Merge branch 'master' into subtables2
Apr 11, 2012
e198dc7
Introduction of ArrayParent as a base class for all types of parents …
Apr 11, 2012
803c637
Elimination of Array::m_is_subtable_root. Instead the virtual method …
Apr 11, 2012
34ea565
A bit of cleanup
kspangsege Apr 11, 2012
113e77c
Merge branch 'master' of github.com:rrrlasse/tightdb
kspangsege Apr 11, 2012
e321c2c
Merge branch 'subtables2'
Apr 12, 2012
2753786
Add a proper Makefile to test/test-sqlite3 and include it when runnin…
Apr 12, 2012
8e0e0f5
Benchmark tests must return 0 and must not wait for key press.
Apr 12, 2012
fc3de69
Do not fail 'make gcovr' just because the unit tests fail
Apr 12, 2012
a5efb53
Do not fail 'valgrind' just because the unit tests fail
Apr 12, 2012
4ac3147
Fixed casting issue in array direct code
Apr 12, 2012
e527a70
Many warnings eliminated - also now compiling with -Werror
Apr 12, 2012
546e6c0
Merge branch 'master' of github.com:astigsen/tightdb
Apr 12, 2012
f0a4f18
New script to run valgrind from Jenkins
Apr 12, 2012
d6835ce
Unit tests added for multi-level subtables
Apr 13, 2012
65936ba
A bit of cleanup
Apr 13, 2012
2c00d4a
Added Table::GetTableRef() and functions to cast TableRef's.
Apr 13, 2012
947ddbc
Many more warnings eliminated. GCC warning level is now up to '-Wall …
Apr 13, 2012
65b9a4b
GCC warning level is now up to '-ansi -Wall -Wextra -pedantic -Wno-lo…
kspangsege Apr 13, 2012
0225b44
Changed struct to class to avoid compiler warning of mixing them for …
Apr 19, 2012
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
;; Project specific Emacs settings
((nil . ((c-basic-offset . 4)
(tab-width . 4)
(indent-tabs-mode . t))))
53 changes: 50 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,59 @@
*.vcproj.*.user
*.d
*.o
*.so
*.a
*.swp
*.gcno
*.gcda
*~
cscope.*
tags
tightdb-tests
TestUnitTest++

/cover_html
/gcovr.xml
/test/UnitTest++/TestUnitTest++
/test/tightdb-tests
/test/tightdb-tests-debug
/test/tightdb-tests-cover
/test/subtables*.tdb
/test/subtables.tightdb
/test/table_test.tbl
/test/test-tightdb/test-tightdb
/test/test-tightdb/test-tightdb-debug
/test/test-sqlite3/test-sqlite3
/test/test-stl/test-stl

/test/benchmark/x64
/test/benchmark
/test/benchmark

#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Bb]in
[Dd]ebug*/
*.lib
*.sbr
obj/
ipch/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult*
Static library*/
*.opensdf
*.sdf
95 changes: 46 additions & 49 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,68 +1,65 @@
# Note:
# $@ The name of the target file (the one before the colon)
# $< The name of the first (or only) prerequisite file
# $< The name of the first (or only) prerequisite file
# (the first one after the colon)
# $^ The names of all the prerequisite files (space separated)
# $* The stem (the bit which matches the % wildcard in the rule definition.
#

# Compiler and flags
# CXXFLAGS = -Wall -Weffc++ -std=c++0x
CXXFLAGS = -Wall -std=c++0x
#CXXFLAGS = -std=c++0x
CXXLIBS = -L./src
CXXINC = -I./src
CXX = g++
CXXCMD = $(CXX) $(CXXFLAGS) $(CXXINC)
SUBDIRS = src

# Files
#LIB_SHARED = libtightdb.so.1
LIB_SHARED = libtightdb.a
#LIB_STATIC = libtightdb.a

SOURCES = $(wildcard src/*.cpp)
OBJECTS = $(SOURCES:.cpp=.o)
OBJ_SHARED = $(SOURCES:.cpp=.so)
all: $(SUBDIRS)
.PHONY: all

# Targets
all: static
all: shared
install: SUBDIRS_MODE = install
install: all
.PHONY: install

static: CXXFLAGS += -DNDEBUG -O3
static: $(LIB_STATIC)
@echo "Created static library: $(LIB_STATIC)"
# @rm -f $(OBJECTS)
debug: SUBDIRS_MODE = debug
debug: all
.PHONY: debug

shared: CXXFLAGS += -DNDEBUG -O3
shared: $(LIB_SHARED)
@echo "Created shared library: $(LIB_SHARED)"
# @rm -f $(OBJ_SHARED)
cover: SUBDIRS_MODE = cover
cover: all
.PHONY: cover

test: all
@(cd test && make)
@(cd test && ./run_tests.sh)
clean: SUBDIRS_MODE = clean
clean: $(SUBDIRS) clean/test
clean/test:
@$(MAKE) -C test clean
.PHONY: clean clean/test

debug: CXXFLAGS += -DDEBUG -g3 -ggdb
debug: all
@(cd test && make debug)

clean:
@rm -f core *.o *.so *.1 *.a
@rm -f core src/*.o src/*.so src/*.1 src/*.a
@(cd test && make clean)
test: debug
@$(MAKE) -C test test
.PHONY: test

memtest: debug
@$(MAKE) -C test memtest
.PHONY: test

# Compiling
%.o: %.cpp
@$(CXXCMD) -o $@ -c $<
benchmark: all
@$(MAKE) -C test benchmark
.PHONY: benchmark

%.so: %.cpp
@$(CXXCMD) -fPIC -fno-strict-aliasing -o $@ -c $<
lcov: cover
@$(MAKE) -C test cover
find -name '*.gcda' -delete
cd test && ./tightdb-tests-cover --no-error-exit-staus
lcov --capture --directory . --output-file /tmp/tightdb.lcov
lcov --extract /tmp/tightdb.lcov '$(abspath .)/src/*' --output-file /tmp/tightdb-clean.lcov
rm -fr cover_html
genhtml --prefix $(abspath .) --output-directory cover_html /tmp/tightdb-clean.lcov
.PHONY: lcov

# Archive static object
$(LIB_STATIC): $(OBJECTS)
@ar crs $(LIB_STATIC) $^
gcovr: cover
@$(MAKE) -C test cover
find -name '*.gcda' -delete
cd test && ./tightdb-tests-cover --no-error-exit-staus
gcovr -r src -x >gcovr.xml
.PHONY: gcovr

# Linking
$(LIB_SHARED): $(OBJ_SHARED)
# @$(CXXCMD) -shared -fPIC -rdynamic -Wl,-export-dynamic,-soname,$@ $^ -o $@
@$(CXXCMD) -shared -fPIC -rdynamic -Wl,-export-dynamic $^ -o $@
$(SUBDIRS):
@$(MAKE) -C $@ $(SUBDIRS_MODE)
.PHONY: $(SUBDIRS)
68 changes: 68 additions & 0 deletions TightDB.sln
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Global
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
Static lib, debug|Win32 = Static lib, debug|Win32
Static lib, debug|x64 = Static lib, debug|x64
Static lib, release|Win32 = Static lib, release|Win32
Static lib, release|x64 = Static lib, release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Debug|Win32.ActiveCfg = Debug|Win32
Expand All @@ -45,6 +49,14 @@ Global
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Release|Win32.Build.0 = Release|Win32
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Release|x64.ActiveCfg = Release|x64
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Release|x64.Build.0 = Release|x64
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Static lib, debug|Win32.ActiveCfg = Static library, debug|Win32
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Static lib, debug|Win32.Build.0 = Static library, debug|Win32
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Static lib, debug|x64.ActiveCfg = Static library, debug|x64
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Static lib, debug|x64.Build.0 = Static library, debug|x64
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Static lib, release|Win32.ActiveCfg = Static library, release|Win32
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Static lib, release|Win32.Build.0 = Static library, release|Win32
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Static lib, release|x64.ActiveCfg = Static library, release|x64
{C18EDDC1-166A-49C4-B483-11458F48CF8E}.Static lib, release|x64.Build.0 = Static library, release|x64
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Debug|Win32.ActiveCfg = Debug|Win32
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Debug|Win32.Build.0 = Debug|Win32
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Debug|x64.ActiveCfg = Debug|x64
Expand All @@ -53,6 +65,14 @@ Global
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Release|Win32.Build.0 = Release|Win32
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Release|x64.ActiveCfg = Release|x64
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Release|x64.Build.0 = Release|x64
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Static lib, debug|Win32.ActiveCfg = Static library, debug|Win32
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Static lib, debug|Win32.Build.0 = Static library, debug|Win32
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Static lib, debug|x64.ActiveCfg = Static library, debug|x64
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Static lib, debug|x64.Build.0 = Static library, debug|x64
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Static lib, release|Win32.ActiveCfg = Static library, release|Win32
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Static lib, release|Win32.Build.0 = Static library, release|Win32
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Static lib, release|x64.ActiveCfg = Static library, release|x64
{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}.Static lib, release|x64.Build.0 = Static library, release|x64
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Debug|Win32.ActiveCfg = Debug|Win32
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Debug|Win32.Build.0 = Debug|Win32
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Debug|x64.ActiveCfg = Debug|x64
Expand All @@ -61,6 +81,14 @@ Global
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Release|Win32.Build.0 = Release|Win32
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Release|x64.ActiveCfg = Release|x64
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Release|x64.Build.0 = Release|x64
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Static lib, debug|Win32.ActiveCfg = Static library, debug|Win32
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Static lib, debug|Win32.Build.0 = Static library, debug|Win32
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Static lib, debug|x64.ActiveCfg = Static library, debug|x64
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Static lib, debug|x64.Build.0 = Static library, debug|x64
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Static lib, release|Win32.ActiveCfg = Static library, release|Win32
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Static lib, release|Win32.Build.0 = Static library, release|Win32
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Static lib, release|x64.ActiveCfg = Static library, release|x64
{6DF07480-ECC6-4116-860A-818B9D2BA7B3}.Static lib, release|x64.Build.0 = Static library, release|x64
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Debug|Win32.ActiveCfg = Debug|Win32
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Debug|Win32.Build.0 = Debug|Win32
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Debug|x64.ActiveCfg = Debug|x64
Expand All @@ -69,6 +97,14 @@ Global
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Release|Win32.Build.0 = Release|Win32
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Release|x64.ActiveCfg = Release|x64
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Release|x64.Build.0 = Release|x64
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Static lib, debug|Win32.ActiveCfg = Static library, debug|Win32
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Static lib, debug|Win32.Build.0 = Static library, debug|Win32
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Static lib, debug|x64.ActiveCfg = Static library, debug|x64
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Static lib, debug|x64.Build.0 = Static library, debug|x64
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Static lib, release|Win32.ActiveCfg = Static library, release|Win32
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Static lib, release|Win32.Build.0 = Static library, release|Win32
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Static lib, release|x64.ActiveCfg = Static library, release|x64
{9C49632F-A4C9-471E-B643-42472DBF13B9}.Static lib, release|x64.Build.0 = Static library, release|x64
{C485A179-016D-4A21-AA14-1970BA070154}.Debug|Win32.ActiveCfg = Debug|Win32
{C485A179-016D-4A21-AA14-1970BA070154}.Debug|Win32.Build.0 = Debug|Win32
{C485A179-016D-4A21-AA14-1970BA070154}.Debug|x64.ActiveCfg = Debug|x64
Expand All @@ -77,6 +113,14 @@ Global
{C485A179-016D-4A21-AA14-1970BA070154}.Release|Win32.Build.0 = Release|Win32
{C485A179-016D-4A21-AA14-1970BA070154}.Release|x64.ActiveCfg = Release|x64
{C485A179-016D-4A21-AA14-1970BA070154}.Release|x64.Build.0 = Release|x64
{C485A179-016D-4A21-AA14-1970BA070154}.Static lib, debug|Win32.ActiveCfg = Static library, debug|Win32
{C485A179-016D-4A21-AA14-1970BA070154}.Static lib, debug|Win32.Build.0 = Static library, debug|Win32
{C485A179-016D-4A21-AA14-1970BA070154}.Static lib, debug|x64.ActiveCfg = Static library, debug|x64
{C485A179-016D-4A21-AA14-1970BA070154}.Static lib, debug|x64.Build.0 = Static library, debug|x64
{C485A179-016D-4A21-AA14-1970BA070154}.Static lib, release|Win32.ActiveCfg = Static library, release|Win32
{C485A179-016D-4A21-AA14-1970BA070154}.Static lib, release|Win32.Build.0 = Static library, release|Win32
{C485A179-016D-4A21-AA14-1970BA070154}.Static lib, release|x64.ActiveCfg = Static library, release|x64
{C485A179-016D-4A21-AA14-1970BA070154}.Static lib, release|x64.Build.0 = Static library, release|x64
{54618B78-8356-44A7-8860-18A455509A86}.Debug|Win32.ActiveCfg = Debug|Win32
{54618B78-8356-44A7-8860-18A455509A86}.Debug|Win32.Build.0 = Debug|Win32
{54618B78-8356-44A7-8860-18A455509A86}.Debug|x64.ActiveCfg = Debug|x64
Expand All @@ -85,6 +129,14 @@ Global
{54618B78-8356-44A7-8860-18A455509A86}.Release|Win32.Build.0 = Release|Win32
{54618B78-8356-44A7-8860-18A455509A86}.Release|x64.ActiveCfg = Release|x64
{54618B78-8356-44A7-8860-18A455509A86}.Release|x64.Build.0 = Release|x64
{54618B78-8356-44A7-8860-18A455509A86}.Static lib, debug|Win32.ActiveCfg = Static library, debug|Win32
{54618B78-8356-44A7-8860-18A455509A86}.Static lib, debug|Win32.Build.0 = Static library, debug|Win32
{54618B78-8356-44A7-8860-18A455509A86}.Static lib, debug|x64.ActiveCfg = Static library, debug|x64
{54618B78-8356-44A7-8860-18A455509A86}.Static lib, debug|x64.Build.0 = Static library, debug|x64
{54618B78-8356-44A7-8860-18A455509A86}.Static lib, release|Win32.ActiveCfg = Static library, release|Win32
{54618B78-8356-44A7-8860-18A455509A86}.Static lib, release|Win32.Build.0 = Static library, release|Win32
{54618B78-8356-44A7-8860-18A455509A86}.Static lib, release|x64.ActiveCfg = Static library, release|x64
{54618B78-8356-44A7-8860-18A455509A86}.Static lib, release|x64.Build.0 = Static library, release|x64
{64D11991-F0F0-470D-B230-48410066090E}.Debug|Win32.ActiveCfg = Debug|Win32
{64D11991-F0F0-470D-B230-48410066090E}.Debug|Win32.Build.0 = Debug|Win32
{64D11991-F0F0-470D-B230-48410066090E}.Debug|x64.ActiveCfg = Debug|x64
Expand All @@ -93,6 +145,14 @@ Global
{64D11991-F0F0-470D-B230-48410066090E}.Release|Win32.Build.0 = Release|Win32
{64D11991-F0F0-470D-B230-48410066090E}.Release|x64.ActiveCfg = Release|x64
{64D11991-F0F0-470D-B230-48410066090E}.Release|x64.Build.0 = Release|x64
{64D11991-F0F0-470D-B230-48410066090E}.Static lib, debug|Win32.ActiveCfg = Static library, debug|Win32
{64D11991-F0F0-470D-B230-48410066090E}.Static lib, debug|Win32.Build.0 = Static library, debug|Win32
{64D11991-F0F0-470D-B230-48410066090E}.Static lib, debug|x64.ActiveCfg = Static library, debug|x64
{64D11991-F0F0-470D-B230-48410066090E}.Static lib, debug|x64.Build.0 = Static library, debug|x64
{64D11991-F0F0-470D-B230-48410066090E}.Static lib, release|Win32.ActiveCfg = Static library, release|Win32
{64D11991-F0F0-470D-B230-48410066090E}.Static lib, release|Win32.Build.0 = Static library, release|Win32
{64D11991-F0F0-470D-B230-48410066090E}.Static lib, release|x64.ActiveCfg = Static library, release|x64
{64D11991-F0F0-470D-B230-48410066090E}.Static lib, release|x64.Build.0 = Static library, release|x64
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Debug|Win32.ActiveCfg = Debug|Win32
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Debug|Win32.Build.0 = Debug|Win32
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Debug|x64.ActiveCfg = Debug|x64
Expand All @@ -101,6 +161,14 @@ Global
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Release|Win32.Build.0 = Release|Win32
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Release|x64.ActiveCfg = Release|x64
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Release|x64.Build.0 = Release|x64
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Static lib, debug|Win32.ActiveCfg = Static library, debug|Win32
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Static lib, debug|Win32.Build.0 = Static library, debug|Win32
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Static lib, debug|x64.ActiveCfg = Static library, debug|x64
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Static lib, debug|x64.Build.0 = Static library, debug|x64
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Static lib, release|Win32.ActiveCfg = Static library, release|Win32
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Static lib, release|Win32.Build.0 = Static library, release|Win32
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Static lib, release|x64.ActiveCfg = Static library, release|x64
{69AAE70E-B352-433B-B6E9-1AEEC438B49C}.Static lib, release|x64.Build.0 = Static library, release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Loading