Skip to content

Commit b57d396

Browse files
authored
Merge pull request #1 from ocielliottc/databases
Added base projects for various databases.
2 parents 1488042 + 5cdcb31 commit b57d396

File tree

6 files changed

+92
-2
lines changed

6 files changed

+92
-2
lines changed

config/mongodb.mpb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// -*- MPC -*-
2+
project: boost_base {
3+
includes += $(MONGODB_ROOT)/include/mongocxx/v_noabi \
4+
$(MONGODB_ROOT)/include/bsoncxx/v_noabi
5+
libpaths += $(MONGODB_ROOT)/lib
6+
lit_libs += mongocxx mongoc-1.0 bsoncxx bson-1.0
7+
}

config/msgpack.mpb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
project {
2+
includes += $(MSGPACK_ROOT)/include
3+
}

config/mysql.mpb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -*- MPC -*-
22
project {
3-
includes += $(MYSQL_ROOT)/include/mysql
4-
libpaths += $(MYSQL_ROOT)/lib/mysql
3+
includes += $(MYSQL_ROOT)/include $(MYSQL_ROOT)/include/mysql
4+
libpaths += $(MYSQL_ROOT)/lib $(MYSQL_ROOT)/lib/mysql
55
lit_libs += mysqlclient
66
}

config/objectbox.mpb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// -*- MPC -*-
2+
project {
3+
Define_Custom(objectbox) {
4+
command = $(OBJECTBOX_ROOT)/bin/objectbox-generator
5+
commandflags = -cpp
6+
pch_postrule = 1
7+
inputext = .fbs
8+
pre_extension = .obx
9+
source_outputext = .cpp
10+
header_outputext = .hpp
11+
}
12+
13+
includes += $(OBJECTBOX_ROOT)/include
14+
libpaths += $(OBJECTBOX_ROOT)/lib
15+
lit_libs += objectbox
16+
}

config/objectivity.mpb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// -*- MPC -*-
2+
project {
3+
// For some reason, Objectivity names things differently on Windows
4+
specific(prop:windows) {
5+
lit_libs += oodbi ooco
6+
ooddl = ooddlx
7+
} else {
8+
lit_libs += oo ooco
9+
ooddl = ooddl_int
10+
}
11+
12+
Define_Custom(ddl) {
13+
command = $(OBJECTIVITY_ROOT)/bin/$(OODDL)
14+
commandflags = -I$(OBJECTIVITY_ROOT)/include
15+
pch_postrule = 1
16+
inputext = .ddl
17+
source_pre_extension = _ddl
18+
header_pre_extension = , _ref
19+
source_outputext = .cpp
20+
header_outputext = .h
21+
}
22+
23+
includes += $(OBJECTIVITY_ROOT)/include
24+
libpaths += $(OBJECTIVITY_ROOT)/lib
25+
26+
specific(prop:microsoft) {
27+
// Including <objy/query/Query.h> causes this warning
28+
DisableSpecificWarnings += 4251
29+
}
30+
}

config/odb_mysql.mpb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// -*- MPC -*-
2+
project: mysql {
3+
Define_Custom(odb) {
4+
automatic_in = 0
5+
output_follows_input = 0
6+
command = $(ODB_ROOT)/bin/odb
7+
commandflags = -d mysql --generate-query --generate-schema \
8+
--odb-file-suffix .odb --sql-file-suffix .odb
9+
pch_postrule = 1
10+
inputext = .h, .hpp, .hxx, .hh
11+
pre_extension = .odb
12+
source_outputext = .cxx
13+
inline_outputext = .ixx
14+
header_outputext = .hxx
15+
documentation_outputext = .sql
16+
}
17+
18+
macros += DATABASE_MYSQL LIBODB_MYSQL_INCLUDE_SHORT
19+
includes += $(ODB_ROOT)
20+
libpaths += $(ODB_ROOT)/lib
21+
22+
specific(prop:windows) {
23+
macros += WIN32_LEAN_AND_MEAN
24+
Debug::lit_libs += odb-d odb-mysql-d
25+
Release::lit_libs += odb odb-mysql
26+
} else {
27+
lit_libs += odb odb-mysql
28+
}
29+
30+
specific(prop:microsoft) {
31+
// Ignore unrecognized pragma's and non-exported base class
32+
DisableSpecificWarnings += 4068 4275
33+
}
34+
}

0 commit comments

Comments
 (0)