Initial commit

This commit is contained in:
Matthias
2017-04-11 15:49:21 +02:00
commit ec80b339e2
2081 changed files with 968992 additions and 0 deletions
+340
View File
@@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
+116
View File
@@ -0,0 +1,116 @@
Prerequisites
=============
- libodb http://www.codesynthesis.com/products/odb/
- libsqlite3 http://www.sqlite.org
If you plan to access an SQLite database from multiple threads, then
you will need SQLite version 3.5.0 or later built with the unlock
notify feature (SQLITE_ENABLE_UNLOCK_NOTIFY) enabled.
Building on UNIX
================
The following build instructions are for the Linux/UNIX/Mac OS X
operating systems as well as for Cygwin and MinGW on Windows.
The standard autotools-based build system is used on these platforms.
After unpacking the source code archive, change to the libodb-sqlite
package directory (referred to as libodb-sqlite/ from now on) and run
the configure script:
./configure
To see the available configuration options run configure with --help:
./configure --help
The configure script expects the libodb and libsqlite3 headers and
libraries to be installed in a directory where the C++ compiler
and linker will search for them by default (normally /usr and
/usr/local). If these libraries are installed in other directories,
you can use the CPPFLAGS and LDFLAGS configure variables to specify
their locations, for example:
./configure CPPFLAGS=-I/opt/libodb/include LDFLAGS=-L/opt/libodb/lib
If libodb is not installed and you would like to use its build
directory instead, you can use the --with-libodb configure option
to specify its location, for example:
./configure --with-libodb=/tmp/libodb
As another example, the following configure command only builds shared
libraries, uses the specified C++ compiler, and compiles with optimization
and without debug information:
./configure --disable-static CXX=g++-4.5 CXXFLAGS=-O3
Once configuration is complete, run make to build libodb-sqlite:
make
Once the build is completed successfully, you can install the libodb-sqlite
headers and libraries using the install target (you may need to do this
step as root depending on the installation directory):
make install
Building on Windows
===================
The following build instructions are for Windows using Microsoft Visual
Studio. If you would like to build libodb-sqlite with GCC either using
Cygwin or MinGW, refer to the "Building on UNIX" section above.
The standard Visual Studio project and solution files are used on this
platform. The provided project files expect the libodb and sqlite
header and import library directories to be in the VC++ Directories
Include and Library search lists. For libodb, see the INSTALL file in
the package directory for more information on how to setup the VC++
Directories.
The SQLite binary distribution for Windows contains only a 32-bit DLL
and it is built without unlock notify support. The provided libodb-
sqlite project files assume the unlock notify feature is available (you
can change this by manually removing the LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
macro from the project's "Preprocessor Definitions" settings). The SQLite
source distribution for Windows lacks Visual Studio project/solution files.
To rectify this situation, the libodb-sqlite distribution includes, in the
etc\sqlite\ directory, Visual Studio 8, 9, 10, and 11 project/solution files
for building 32 and 64-bit SQLite libraries with unlock notify support.
Refer to the accompanying README file for information on how to build the
libraries and configure VC++ Directories to automatically locate them.
To build libodb-sqlite, unpack the source code archive and open the
libodb-sqlite-vc<N>.sln file located in the libodb-sqlite package
directory (referred to as libodb-sqlite\ from now on). Here <N> is the
version of Visual Studio that you are using. Once the solution is open,
select the desired build configuration (Debug or Release) and platform
(Win32 or x64) and build the solution.
The resulting 32-bit DLLs and import libraries are placed into the
libodb-sqlite\bin\ and libodb-sqlite\lib\ directories, respectively.
Similarly, the 64-bit DLLs and import libraries are placed into
libodb-sqlite\bin64\ and libodb-sqlite\lib64\. The Release versions of
the import libraries are named odb-sqlite.lib and the Debug versions
are named odb-sqlite-d.lib.
To configure Visual Studio to automatically locate the libodb-sqlite
headers, DLLs, and import libraries, add the following paths to your
VC++ Directories:
Win32:
Include: ...\libodb-sqlite
Library: ...\libodb-sqlite\lib
Executable: ...\libodb-sqlite\bin
x64:
Include: ...\libodb-sqlite
Library: ...\libodb-sqlite\lib64
Executable: ...\libodb-sqlite\bin64
+18
View File
@@ -0,0 +1,18 @@
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
For more information on ODB licensing as well as for answers to
some of the common licensing questions, visit the ODB License
page:
http://www.codesynthesis.com/products/odb/license.xhtml
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+11
View File
@@ -0,0 +1,11 @@
# file : Makefile.am
# copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
# license : GNU GPL v2; see accompanying LICENSE file
SUBDIRS = odb/sqlite
dist_doc_DATA = GPLv2 LICENSE README NEWS version
EXTRA_DIST = INSTALL libodb-sqlite-vc8.sln libodb-sqlite-vc9.sln libodb-sqlite-vc10.sln libodb-sqlite-vc11.sln libodb-sqlite-vc12.sln etc/sqlite/sqlite3-vc9.sln etc/sqlite/sqlite3-vc9.vcproj etc/sqlite/sqlite3-vc8.sln etc/sqlite/sqlite3-vc11.vcxproj.filters etc/sqlite/sqlite3-vc8.vcproj etc/sqlite/sqlite3-vc12.vcxproj.filters etc/sqlite/sqlite3-vc11.vcxproj etc/sqlite/sqlite3-vc10.vcxproj.filters etc/sqlite/sqlite3-vc12.vcxproj etc/sqlite/sqlite3-vc10.sln etc/sqlite/sqlite3-vc10.vcxproj etc/sqlite/sqlite3-vc12.sln etc/sqlite/sqlite3-vc11.sln etc/sqlite/README bootstrap
ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA= libodb-sqlite.pc
+860
View File
@@ -0,0 +1,860 @@
# Makefile.in generated by automake 1.12.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2012 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
# file : Makefile.am
# copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
# license : GNU GPL v2; see accompanying LICENSE file
VPATH = @srcdir@
am__make_dryrun = \
{ \
am__dry=no; \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
*) \
for am__flg in $$MAKEFLAGS; do \
case $$am__flg in \
*=*|--*) ;; \
*n*) am__dry=yes; break;; \
esac; \
done;; \
esac; \
test $$am__dry = yes; \
}
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = .
DIST_COMMON = README $(am__configure_deps) $(dist_doc_DATA) \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(srcdir)/libodb-sqlite.pc.in $(top_srcdir)/config/ar-lib \
$(top_srcdir)/config/config.guess \
$(top_srcdir)/config/config.sub \
$(top_srcdir)/config/install-sh $(top_srcdir)/config/ltmain.sh \
$(top_srcdir)/config/missing $(top_srcdir)/configure \
$(top_srcdir)/odb/sqlite/details/config.h.in INSTALL NEWS \
config/ar-lib config/config.guess config/config.sub \
config/install-sh config/ltmain.sh config/missing
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx-pthread.m4 \
$(top_srcdir)/m4/disable-rpath.m4 $(top_srcdir)/m4/libodb.m4 \
$(top_srcdir)/m4/libsqlite.m4 $(top_srcdir)/m4/libtool-link.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/pkgconfig.m4 \
$(top_srcdir)/m4/static-lib.m4 $(top_srcdir)/m4/threads.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/odb/sqlite/config.h \
$(top_builddir)/odb/sqlite/details/config.h
CONFIG_CLEAN_FILES = libodb-sqlite.pc
CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-dvi-recursive install-exec-recursive \
install-html-recursive install-info-recursive \
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(docdir)" "$(DESTDIR)$(pkgconfigdir)"
DATA = $(dist_doc_DATA) $(pkgconfig_DATA)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
cscope distdir dist dist-all distcheck
ETAGS = etags
CTAGS = ctags
CSCOPE = cscope
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
am__remove_distdir = \
if test -d "$(distdir)"; then \
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -rf "$(distdir)" \
|| { sleep 5 && rm -rf "$(distdir)"; }; \
else :; fi
am__post_remove_distdir = $(am__remove_distdir)
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 $(distdir).zip
GZIP_ENV = --best
DIST_TARGETS = dist-bzip2 dist-gzip dist-zip
distuninstallcheck_listfiles = find . -type f -print
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
distcleancheck_listfiles = find . -type f -print
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PTHREAD_CXX = @PTHREAD_CXX@
PTHREAD_CXXFLAGS = @PTHREAD_CXXFLAGS@
PTHREAD_LIBS = @PTHREAD_LIBS@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
acx_pthread_config = @acx_pthread_config@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
pkgconfigdir = @pkgconfigdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = odb/sqlite
dist_doc_DATA = GPLv2 LICENSE README NEWS version
EXTRA_DIST = INSTALL libodb-sqlite-vc8.sln libodb-sqlite-vc9.sln libodb-sqlite-vc10.sln libodb-sqlite-vc11.sln libodb-sqlite-vc12.sln etc/sqlite/sqlite3-vc9.sln etc/sqlite/sqlite3-vc9.vcproj etc/sqlite/sqlite3-vc8.sln etc/sqlite/sqlite3-vc11.vcxproj.filters etc/sqlite/sqlite3-vc8.vcproj etc/sqlite/sqlite3-vc12.vcxproj.filters etc/sqlite/sqlite3-vc11.vcxproj etc/sqlite/sqlite3-vc10.vcxproj.filters etc/sqlite/sqlite3-vc12.vcxproj etc/sqlite/sqlite3-vc10.sln etc/sqlite/sqlite3-vc10.vcxproj etc/sqlite/sqlite3-vc12.sln etc/sqlite/sqlite3-vc11.sln etc/sqlite/README bootstrap
ACLOCAL_AMFLAGS = -I m4
pkgconfig_DATA = libodb-sqlite.pc
all: all-recursive
.SUFFIXES:
am--refresh: Makefile
@:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
$(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --foreign Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(top_srcdir)/configure: $(am__configure_deps)
$(am__cd) $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
$(am__aclocal_m4_deps):
odb/sqlite/details/config.h: odb/sqlite/details/stamp-h2
@if test ! -f $@; then rm -f odb/sqlite/details/stamp-h2; else :; fi
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) odb/sqlite/details/stamp-h2; else :; fi
odb/sqlite/details/stamp-h2: $(top_srcdir)/odb/sqlite/details/config.h.in $(top_builddir)/config.status
@rm -f odb/sqlite/details/stamp-h2
cd $(top_builddir) && $(SHELL) ./config.status odb/sqlite/details/config.h
distclean-hdr:
-rm -f odb/sqlite/details/config.h odb/sqlite/details/stamp-h2
libodb-sqlite.pc: $(top_builddir)/config.status $(srcdir)/libodb-sqlite.pc.in
cd $(top_builddir) && $(SHELL) ./config.status $@
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool config.lt
install-dist_docDATA: $(dist_doc_DATA)
@$(NORMAL_INSTALL)
@list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \
$(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \
fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
$(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
done
uninstall-dist_docDATA:
@$(NORMAL_UNINSTALL)
@list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
install-pkgconfigDATA: $(pkgconfig_DATA)
@$(NORMAL_INSTALL)
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
$(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
done
uninstall-pkgconfigDATA:
@$(NORMAL_UNINSTALL)
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
# This directory's subdirectories are mostly independent; you can cd
# into them and run 'make' without going through this Makefile.
# To change the values of 'make' variables: instead of editing Makefiles,
# (1) if the variable is set in 'config.status', edit 'config.status'
# (which will cause the Makefiles to be regenerated when you run 'make');
# (2) otherwise, pass the desired values on the 'make' command line.
$(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS):
@fail= failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
cscopelist-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
set x; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscope: cscope.files
test ! -s cscope.files \
|| $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
clean-cscope:
-rm -f cscope.files
cscope.files: clean-cscope cscopelist-recursive cscopelist
cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS) $(LISP)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
distdir: $(DISTFILES)
$(am__remove_distdir)
test -d "$(distdir)" || mkdir "$(distdir)"
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
$(am__make_dryrun) \
|| test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
-test -n "$(am__skip_mode_fix)" \
|| find "$(distdir)" -type d ! -perm -755 \
-exec chmod u+rwx,go+rx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r "$(distdir)"
dist-gzip: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__post_remove_distdir)
dist-bzip2: distdir
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
$(am__post_remove_distdir)
dist-lzip: distdir
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
$(am__post_remove_distdir)
dist-xz: distdir
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
$(am__post_remove_distdir)
dist-tarZ: distdir
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
$(am__post_remove_distdir)
dist-shar: distdir
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
$(am__post_remove_distdir)
dist-zip: distdir
-rm -f $(distdir).zip
zip -rq $(distdir).zip $(distdir)
$(am__post_remove_distdir)
dist dist-all:
$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
$(am__post_remove_distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
case '$(DIST_ARCHIVES)' in \
*.tar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
*.tar.bz2*) \
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
*.tar.lz*) \
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
*.tar.xz*) \
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
*.tar.Z*) \
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
*.shar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
esac
chmod -R a-w $(distdir)
chmod u+w $(distdir)
mkdir $(distdir)/_build $(distdir)/_inst
chmod a-w $(distdir)
test -d $(distdir)/_build || exit 0; \
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& am__cwd=`pwd` \
&& $(am__cd) $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
$(DISTCHECK_CONFIGURE_FLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
distuninstallcheck \
&& chmod -R a-w "$$dc_install_base" \
&& ({ \
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
} || { rm -rf "$$dc_destdir"; exit 1; }) \
&& rm -rf "$$dc_destdir" \
&& $(MAKE) $(AM_MAKEFLAGS) dist \
&& rm -rf $(DIST_ARCHIVES) \
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
&& cd "$$am__cwd" \
|| exit 1
$(am__post_remove_distdir)
@(echo "$(distdir) archives ready for distribution: "; \
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
distuninstallcheck:
@test -n '$(distuninstallcheck_dir)' || { \
echo 'ERROR: trying to run $@ with an empty' \
'$$(distuninstallcheck_dir)' >&2; \
exit 1; \
}; \
$(am__cd) '$(distuninstallcheck_dir)' || { \
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
exit 1; \
}; \
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left after uninstall:" ; \
if test -n "$(DESTDIR)"; then \
echo " (check DESTDIR support)"; \
fi ; \
$(distuninstallcheck_listfiles) ; \
exit 1; } >&2
distcleancheck: distclean
@if test '$(srcdir)' = . ; then \
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
exit 1 ; \
fi
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left in build directory after distclean:" ; \
$(distcleancheck_listfiles) ; \
exit 1; } >&2
check-am: all-am
check: check-recursive
all-am: Makefile $(DATA)
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(docdir)" "$(DESTDIR)$(pkgconfigdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-hdr \
distclean-libtool distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
html-am:
info: info-recursive
info-am:
install-data-am: install-dist_docDATA install-pkgconfigDATA
install-dvi: install-dvi-recursive
install-dvi-am:
install-exec-am:
install-html: install-html-recursive
install-html-am:
install-info: install-info-recursive
install-info-am:
install-man:
install-pdf: install-pdf-recursive
install-pdf-am:
install-ps: install-ps-recursive
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf $(top_srcdir)/autom4te.cache
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-dist_docDATA uninstall-pkgconfigDATA
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \
cscopelist-recursive ctags-recursive install-am install-strip \
tags-recursive
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
all all-am am--refresh check check-am clean clean-cscope \
clean-generic clean-libtool cscope cscopelist \
cscopelist-recursive ctags ctags-recursive dist dist-all \
dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz \
dist-zip distcheck distclean distclean-generic distclean-hdr \
distclean-libtool distclean-tags distcleancheck distdir \
distuninstallcheck dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am \
install-dist_docDATA install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-pkgconfigDATA install-ps install-ps-am install-strip \
installcheck installcheck-am installdirs installdirs-am \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-recursive uninstall uninstall-am \
uninstall-dist_docDATA uninstall-pkgconfigDATA
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
+1
View File
@@ -0,0 +1 @@
See the common NEWS file in the ODB compiler package.
+20
View File
@@ -0,0 +1,20 @@
ODB is an object-relational mapping (ORM) system for C++. It provides
tools, APIs, and library support that allow you to persist C++ objects
to a relational database (RDBMS) without having to deal with tables,
columns, or SQL and without manually writing any of the mapping code.
For more information see:
http://www.codesynthesis.com/products/odb/
This package contains the SQLite ODB runtime library. Every application
that includes code generated for the SQLite database will need to link
to this library.
See the NEWS file for the user-visible changes from the previous release.
See the LICENSE file for distribution conditions.
See the INSTALL file for prerequisites and installation instructions.
Send questions, bug reports, or any other feedback to the
odb-users@codesynthesis.com mailing list.
+1033
View File
File diff suppressed because it is too large Load Diff
+17
View File
@@ -0,0 +1,17 @@
#! /bin/sh
# file : bootstrap
# copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
# license : GNU GPL v2; see accompanying LICENSE file
#
# Bootstrap the automake build system.
#
rm -f config.cache
if test ! -d m4; then
mkdir m4
fi
autoreconf --install
+994
View File
@@ -0,0 +1,994 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libodb-sqlite configure 2.4.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = matthiasPC
uname -m = x86_64
uname -r = 3.17.1-52.g5c4d099-desktop
uname -s = Linux
uname -v = #1 SMP PREEMPT Sat Oct 18 23:36:23 UTC 2014 (5c4d099)
/usr/bin/uname -p = x86_64
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /sbin/
PATH: /home/matthias/bin/
PATH: /opt/globus/bin/
PATH: /home/matthias/bin/ec2-api-tools/bin/
PATH: /home/matthias/Development/Android/android-sdk-linux/tools
PATH: /home/matthias/Development/Android/android-sdk-linux/platform-tools
PATH: /sbin/
PATH: /home/matthias/bin/
PATH: /opt/globus/bin/
PATH: /home/matthias/bin/ec2-api-tools/bin/
PATH: /home/matthias/Development/Android/android-sdk-linux/tools
PATH: /home/matthias/Development/Android/android-sdk-linux/platform-tools
PATH: /usr/lib64/mpi/gcc/openmpi/bin
PATH: /home/matthias/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/kde3/bin
PATH: /usr/lib/mit/bin
PATH: .
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2161: loading site script /usr/share/site/x86_64-unknown-linux-gnu
| #!/bin/sh
| # Site script for configure. It is resourced via $CONFIG_SITE environment varaible.
|
| # If user did not specify libdir, guess the correct target:
| # Use lib64 for 64 bit bi-arch targets, keep the default for the rest.
| if test "$libdir" = '${exec_prefix}/lib' ; then
|
| ac_config_site_64bit_host=NONE
|
| case "$host" in
| "" )
| # User did not specify host target.
| # The native platform x86_64 is a bi-arch platform.
| # Try to detect cross-compilation to inferior architecture.
|
| # We are trying to guess 32-bit target compilation. It's not as easy as
| # it sounds, as there is possible several intermediate combinations.
| ac_config_site_cross_to_32bit_host=NONE
|
| # User defined -m32 in CFLAGS or CXXFLAGS:
| # (It's sufficient for 32-bit, but alone may cause mis-behavior of some checks.)
| case "$CFLAGS" in
| *-m32*)
| ac_config_site_cross_to_32bit_host=YES
| ;;
| esac
| case "$CXXFLAGS" in
| *-m32*)
| ac_config_site_cross_to_32bit_host=YES
| ;;
| esac
|
| # Running with linux32:
| # (Changes detected platform, but not the toolchain target.)
| case "`/bin/uname -i`" in
| x86_64 | ppc64 | s390x )
| ;;
| * )
| ac_config_site_cross_to_32bit_host=YES
| ;;
| esac
|
| if test "x$ac_config_site_cross_to_32bit_host" = xNONE; then
| ac_config_site_64bit_host=YES
| fi
|
| ;;
| *x86_64* | *ppc64* | *s390x* )
| ac_config_site_64bit_host=YES
| ;;
| esac
|
| if test "x$ac_config_site_64bit_host" = xYES; then
| libdir='${exec_prefix}/lib64'
| fi
| fi
|
| # If user did not specify libexecdir, set the correct target:
| # Nor FHS nor openSUSE allow prefix/libexec. Let's default to prefix/lib.
|
| if test "$libexecdir" = '${exec_prefix}/libexec' ; then
| libexecdir='${exec_prefix}/lib'
| fi
|
| # Continue with the standard behavior of configure defined in AC_SITE_LOAD:
| if test "x$prefix" != xNONE; then
| ac_site_file1=$prefix/share/config.site
| ac_site_file2=$prefix/etc/config.site
| else
| ac_site_file1=$ac_default_prefix/share/config.site
| ac_site_file2=$ac_default_prefix/etc/config.site
| fi
| for ac_site_file in "$ac_site_file1" "$ac_site_file2"
| do
| test "x$ac_site_file" = xNONE && continue
| if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
| { $as_echo "/usr/share/site/x86_64-unknown-linux-gnu:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
| $as_echo "/usr/share/site/x86_64-unknown-linux-gnu: loading site script $ac_site_file" >&6;}
| sed 's/^/| /' "$ac_site_file" >&5
| . "$ac_site_file" \
| || { { $as_echo "/usr/share/site/x86_64-unknown-linux-gnu:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
| $as_echo "/usr/share/site/x86_64-unknown-linux-gnu: error: in \`$ac_pwd':" >&2;}
| as_fn_error $? "failed to load site script $ac_site_file
| See \`config.log' for more details" "$LINENO" 5; }
| fi
| done
configure:2305: checking for a BSD-compatible install
configure:2373: result: /usr/bin/install -c
configure:2384: checking whether build environment is sane
configure:2439: result: yes
configure:2590: checking for a thread-safe mkdir -p
configure:2629: result: /usr/bin/mkdir -p
configure:2636: checking for gawk
configure:2652: found /usr/bin/gawk
configure:2663: result: gawk
configure:2674: checking whether make sets $(MAKE)
configure:2696: result: yes
configure:2777: checking how to create a ustar tar archive
configure:2790: tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
configure:2793: $? = 0
configure:2833: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:2836: $? = 0
configure:2840: tar -xf - <conftest.tar
configure:2843: $? = 0
configure:2856: result: gnutar
configure:2875: checking for style of include used by make
configure:2903: result: GNU
configure:2974: checking for gcc
configure:2990: found /usr/bin/gcc
configure:3001: result: gcc
configure:3230: checking for C compiler version
configure:3239: gcc --version >&5
gcc (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388]
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3250: $? = 0
configure:3239: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.8 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --program-suffix=-4.8 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.8.1 20130909 [gcc-4_8-branch revision 202388] (SUSE Linux)
configure:3250: $? = 0
configure:3239: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3250: $? = 1
configure:3239: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3250: $? = 1
configure:3270: checking whether the C compiler works
configure:3292: gcc -I/home/matthias/tmp/libodb/sqlite3/include -L/home/matthias/tmp/libodb/build/sqlite3 -ldl conftest.c >&5
configure:3296: $? = 0
configure:3344: result: yes
configure:3347: checking for C compiler default output file name
configure:3349: result: a.out
configure:3355: checking for suffix of executables
configure:3362: gcc -o conftest -I/home/matthias/tmp/libodb/sqlite3/include -L/home/matthias/tmp/libodb/build/sqlite3 -ldl conftest.c >&5
configure:3366: $? = 0
configure:3388: result:
configure:3410: checking whether we are cross compiling
configure:3418: gcc -o conftest -I/home/matthias/tmp/libodb/sqlite3/include -L/home/matthias/tmp/libodb/build/sqlite3 -ldl conftest.c >&5
configure:3422: $? = 0
configure:3429: ./conftest
configure:3433: $? = 0
configure:3448: result: no
configure:3453: checking for suffix of object files
configure:3475: gcc -c -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:3479: $? = 0
configure:3500: result: o
configure:3504: checking whether we are using the GNU C compiler
configure:3523: gcc -c -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:3523: $? = 0
configure:3532: result: yes
configure:3541: checking whether gcc accepts -g
configure:3561: gcc -c -g -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:3561: $? = 0
configure:3602: result: yes
configure:3619: checking for gcc option to accept ISO C89
configure:3682: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:3682: $? = 0
configure:3695: result: none needed
configure:3717: checking dependency style of gcc
configure:3828: result: gcc3
configure:3893: checking for ar
configure:3909: found /usr/bin/ar
configure:3920: result: ar
configure:3946: checking the archiver (ar) interface
configure:3956: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:3956: $? = 0
configure:3958: ar cru libconftest.a conftest.o >&5
configure:3961: $? = 0
configure:3984: result: ar
configure:4034: checking build system type
configure:4048: result: x86_64-unknown-linux-gnu
configure:4068: checking host system type
configure:4081: result: x86_64-unknown-linux-gnu
configure:4122: checking how to print strings
configure:4149: result: printf
configure:4170: checking for a sed that does not truncate output
configure:4234: result: /usr/bin/sed
configure:4252: checking for grep that handles long lines and -e
configure:4310: result: /usr/bin/grep
configure:4315: checking for egrep
configure:4377: result: /usr/bin/grep -E
configure:4382: checking for fgrep
configure:4444: result: /usr/bin/grep -F
configure:4479: checking for ld used by gcc
configure:4546: result: /usr/x86_64-suse-linux/bin/ld
configure:4553: checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld
configure:4568: result: yes
configure:4580: checking for BSD- or MS-compatible name lister (nm)
configure:4629: result: /usr/bin/nm -B
configure:4759: checking the name lister (/usr/bin/nm -B) interface
configure:4766: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:4769: /usr/bin/nm -B "conftest.o"
configure:4772: output
0000000000000000 B some_variable
configure:4779: result: BSD nm
configure:4782: checking whether ln -s works
configure:4786: result: yes
configure:4794: checking the maximum length of command line arguments
configure:4925: result: 1572864
configure:4942: checking whether the shell understands some XSI constructs
configure:4952: result: yes
configure:4956: checking whether the shell understands "+="
configure:4962: result: yes
configure:4997: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format
configure:5037: result: func_convert_file_noop
configure:5044: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format
configure:5064: result: func_convert_file_noop
configure:5071: checking for /usr/x86_64-suse-linux/bin/ld option to reload object files
configure:5078: result: -r
configure:5152: checking for objdump
configure:5168: found /usr/bin/objdump
configure:5179: result: objdump
configure:5208: checking how to recognize dependent libraries
configure:5406: result: pass_all
configure:5491: checking for dlltool
configure:5521: result: no
configure:5548: checking how to associate runtime and link libraries
configure:5575: result: printf %s\n
configure:5699: checking for archiver @FILE support
configure:5716: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:5716: $? = 0
configure:5719: ar cru libconftest.a @conftest.lst >&5
configure:5722: $? = 0
configure:5727: ar cru libconftest.a @conftest.lst >&5
ar: conftest.o: No such file or directory
configure:5730: $? = 1
configure:5742: result: @
configure:5800: checking for strip
configure:5816: found /usr/bin/strip
configure:5827: result: strip
configure:5899: checking for ranlib
configure:5915: found /usr/bin/ranlib
configure:5926: result: ranlib
configure:6028: checking command to parse /usr/bin/nm -B output from gcc object
configure:6148: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:6151: $? = 0
configure:6155: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:6158: $? = 0
configure:6224: gcc -o conftest -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -L/home/matthias/tmp/libodb/build/sqlite3 -ldl conftest.c conftstm.o >&5
configure:6227: $? = 0
configure:6265: result: ok
configure:6302: checking for sysroot
configure:6332: result: no
configure:6409: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:6412: $? = 0
configure:6595: checking for mt
configure:6611: found /usr/bin/mt
configure:6622: result: mt
configure:6645: checking if mt is a manifest tool
configure:6651: mt '-?'
configure:6659: result: no
configure:7301: checking how to run the C preprocessor
configure:7332: gcc -E -I/home/matthias/tmp/libodb/sqlite3/include conftest.c
configure:7332: $? = 0
configure:7346: gcc -E -I/home/matthias/tmp/libodb/sqlite3/include conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:7346: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libodb-sqlite"
| #define PACKAGE_TARNAME "libodb-sqlite"
| #define PACKAGE_VERSION "2.4.0"
| #define PACKAGE_STRING "libodb-sqlite 2.4.0"
| #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libodb-sqlite"
| #define VERSION "2.4.0"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:7371: result: gcc -E
configure:7391: gcc -E -I/home/matthias/tmp/libodb/sqlite3/include conftest.c
configure:7391: $? = 0
configure:7405: gcc -E -I/home/matthias/tmp/libodb/sqlite3/include conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:7405: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libodb-sqlite"
| #define PACKAGE_TARNAME "libodb-sqlite"
| #define PACKAGE_VERSION "2.4.0"
| #define PACKAGE_STRING "libodb-sqlite 2.4.0"
| #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libodb-sqlite"
| #define VERSION "2.4.0"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:7434: checking for ANSI C header files
configure:7454: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7454: $? = 0
configure:7527: gcc -o conftest -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -L/home/matthias/tmp/libodb/build/sqlite3 -ldl conftest.c >&5
configure:7527: $? = 0
configure:7527: ./conftest
configure:7527: $? = 0
configure:7538: result: yes
configure:7551: checking for sys/types.h
configure:7551: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7551: $? = 0
configure:7551: result: yes
configure:7551: checking for sys/stat.h
configure:7551: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7551: $? = 0
configure:7551: result: yes
configure:7551: checking for stdlib.h
configure:7551: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7551: $? = 0
configure:7551: result: yes
configure:7551: checking for string.h
configure:7551: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7551: $? = 0
configure:7551: result: yes
configure:7551: checking for memory.h
configure:7551: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7551: $? = 0
configure:7551: result: yes
configure:7551: checking for strings.h
configure:7551: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7551: $? = 0
configure:7551: result: yes
configure:7551: checking for inttypes.h
configure:7551: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7551: $? = 0
configure:7551: result: yes
configure:7551: checking for stdint.h
configure:7551: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7551: $? = 0
configure:7551: result: yes
configure:7551: checking for unistd.h
configure:7551: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7551: $? = 0
configure:7551: result: yes
configure:7565: checking for dlfcn.h
configure:7565: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:7565: $? = 0
configure:7565: result: yes
configure:8069: checking for objdir
configure:8084: result: .libs
configure:8355: checking if gcc supports -fno-rtti -fno-exceptions
configure:8373: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
configure:8377: $? = 0
configure:8390: result: no
configure:8717: checking for gcc option to produce PIC
configure:8724: result: -fPIC -DPIC
configure:8732: checking if gcc PIC flag -fPIC -DPIC works
configure:8750: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -fPIC -DPIC -DPIC conftest.c >&5
configure:8754: $? = 0
configure:8767: result: yes
configure:8796: checking if gcc static flag -static works
configure:8824: result: no
configure:8839: checking if gcc supports -c -o file.o
configure:8860: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -o out/conftest2.o conftest.c >&5
configure:8864: $? = 0
configure:8886: result: yes
configure:8894: checking if gcc supports -c -o file.o
configure:8941: result: yes
configure:8974: checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries
configure:10131: result: yes
configure:10168: checking whether -lc should be explicitly linked in
configure:10176: gcc -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.c >&5
configure:10179: $? = 0
configure:10194: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /usr/bin/grep -lc \>/dev/null 2\>\&1
configure:10197: $? = 0
configure:10211: result: no
configure:10371: checking dynamic linker characteristics
configure:10871: gcc -o conftest -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -L/home/matthias/tmp/libodb/build/sqlite3 -ldl -Wl,-rpath -Wl,/foo conftest.c >&5
configure:10871: $? = 0
configure:11105: result: GNU/Linux ld.so
configure:11212: checking how to hardcode library paths into programs
configure:11237: result: immediate
configure:11777: checking whether stripping libraries is possible
configure:11782: result: yes
configure:11817: checking if libtool supports shared libraries
configure:11819: result: yes
configure:11822: checking whether to build shared libraries
configure:11843: result: yes
configure:11846: checking whether to build static libraries
configure:11850: result: yes
configure:11950: checking for g++
configure:11966: found /usr/bin/g++
configure:11977: result: g++
configure:12004: checking for C++ compiler version
configure:12013: g++ --version >&5
g++ (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388]
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:12024: $? = 0
configure:12013: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.8 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --program-suffix=-4.8 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.8.1 20130909 [gcc-4_8-branch revision 202388] (SUSE Linux)
configure:12024: $? = 0
configure:12013: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:12024: $? = 1
configure:12013: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:12024: $? = 1
configure:12028: checking whether we are using the GNU C++ compiler
configure:12047: g++ -c -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp >&5
configure:12047: $? = 0
configure:12056: result: yes
configure:12065: checking whether g++ accepts -g
configure:12085: g++ -c -g -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp >&5
configure:12085: $? = 0
configure:12126: result: yes
configure:12151: checking dependency style of g++
configure:12262: result: gcc3
configure:12295: checking how to run the C++ preprocessor
configure:12322: g++ -E -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp
configure:12322: $? = 0
configure:12336: g++ -E -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp
conftest.cpp:23:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:12336: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libodb-sqlite"
| #define PACKAGE_TARNAME "libodb-sqlite"
| #define PACKAGE_VERSION "2.4.0"
| #define PACKAGE_STRING "libodb-sqlite 2.4.0"
| #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libodb-sqlite"
| #define VERSION "2.4.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:12361: result: g++ -E
configure:12381: g++ -E -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp
configure:12381: $? = 0
configure:12395: g++ -E -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp
conftest.cpp:23:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:12395: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libodb-sqlite"
| #define PACKAGE_TARNAME "libodb-sqlite"
| #define PACKAGE_VERSION "2.4.0"
| #define PACKAGE_STRING "libodb-sqlite 2.4.0"
| #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libodb-sqlite"
| #define VERSION "2.4.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:12564: checking for ld used by g++
configure:12631: result: /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
configure:12638: checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld
configure:12653: result: yes
configure:12708: checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries
configure:13710: result: yes
configure:13746: g++ -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp >&5
configure:13749: $? = 0
configure:14269: checking for g++ option to produce PIC
configure:14276: result: -fPIC -DPIC
configure:14284: checking if g++ PIC flag -fPIC -DPIC works
configure:14302: g++ -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -fPIC -DPIC -DPIC conftest.cpp >&5
configure:14306: $? = 0
configure:14319: result: yes
configure:14342: checking if g++ static flag -static works
configure:14370: result: no
configure:14382: checking if g++ supports -c -o file.o
configure:14403: g++ -c -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -o out/conftest2.o conftest.cpp >&5
configure:14407: $? = 0
configure:14429: result: yes
configure:14434: checking if g++ supports -c -o file.o
configure:14481: result: yes
configure:14511: checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries
configure:14550: result: yes
configure:14691: checking dynamic linker characteristics
configure:15359: result: GNU/Linux ld.so
configure:15412: checking how to hardcode library paths into programs
configure:15437: result: immediate
configure:15487: creating ./config.lt
## ------------------ ##
## Running config.lt. ##
## ------------------ ##
config.lt:682: creating libtool
configure:17352: checking for the pthreads library -lpthreads
configure:17386: g++ -o conftest -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -L/home/matthias/tmp/libodb/build/sqlite3 -ldl conftest.cpp -lpthreads >&5
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
configure:17386: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libodb-sqlite"
| #define PACKAGE_TARNAME "libodb-sqlite"
| #define PACKAGE_VERSION "2.4.0"
| #define PACKAGE_STRING "libodb-sqlite 2.4.0"
| #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libodb-sqlite"
| #define VERSION "2.4.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th; pthread_join(th, 0);
| pthread_attr_init(0); pthread_cleanup_push(0, 0);
| pthread_create(0,0,0,0); pthread_cleanup_pop(0);
| ;
| return 0;
| }
configure:17395: result: no
configure:17352: checking for the pthreads library -lpthread
configure:17386: g++ -o conftest -g -O2 -I/home/matthias/tmp/libodb/sqlite3/include -L/home/matthias/tmp/libodb/build/sqlite3 -ldl conftest.cpp -lpthread >&5
configure:17386: $? = 0
configure:17395: result: yes
configure:17414: checking if more special flags are required for pthreads
configure:17423: result: -D_REENTRANT
configure:17466: checking for __thread keyword
configure:17497: g++ -c -g -O2 -D_REENTRANT -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp >&5
configure:17497: $? = 0
configure:17504: ./libtool --tag=CXX --mode=link g++ -no-install -g -O2 -D_REENTRANT -L/home/matthias/tmp/libodb/build/sqlite3 -ldl -o conftest conftest.o -lpthread >&5
libtool: link: g++ -g -O2 -D_REENTRANT -o conftest conftest.o -L/home/matthias/tmp/libodb/build/sqlite3 -ldl -lpthread
configure:17508: $? = 0
configure:17541: result: yes
configure:17559: checking for libsqlite3
configure:17598: g++ -c -g -O2 -D_REENTRANT -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp >&5
configure:17598: $? = 0
configure:17605: ./libtool --tag=CXX --mode=link g++ -no-install -g -O2 -D_REENTRANT -L/home/matthias/tmp/libodb/build/sqlite3 -ldl -o conftest conftest.o -lsqlite3 -lpthread >&5
libtool: link: g++ -g -O2 -D_REENTRANT -o conftest conftest.o -L/home/matthias/tmp/libodb/build/sqlite3 -ldl -lsqlite3 -lpthread
configure:17609: $? = 0
configure:17680: g++ -c -g -O2 -D_REENTRANT -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp >&5
configure:17680: $? = 0
configure:17687: ./libtool --tag=CXX --mode=link g++ -no-install -g -O2 -D_REENTRANT -L/home/matthias/tmp/libodb/build/sqlite3 -ldl -o conftest conftest.o -lsqlite3 -lpthread >&5
libtool: link: g++ -g -O2 -D_REENTRANT -o conftest conftest.o -L/home/matthias/tmp/libodb/build/sqlite3 -ldl -lsqlite3 -lpthread
conftest.o: In function `main':
/home/matthias/tmp/libodb/libodb-sqlite-2.4.0/conftest.cpp:32: undefined reference to `sqlite3_unlock_notify'
collect2: error: ld returned 1 exit status
configure:17691: $? = 1
configure:17728: result: yes
configure:17745: WARNING: libsqlite3 is built without sqlite3_unlock_notify support; multi-threaded support will be limited
configure:17763: checking for libodb
configure:17837: g++ -c -g -O2 -D_REENTRANT -I/home/matthias/tmp/libodb/sqlite3/include conftest.cpp >&5
conftest.cpp:26:29: fatal error: odb/exception.hxx: No such file or directory
#include <odb/exception.hxx>
^
compilation terminated.
configure:17837: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libodb-sqlite"
| #define PACKAGE_TARNAME "libodb-sqlite"
| #define PACKAGE_VERSION "2.4.0"
| #define PACKAGE_STRING "libodb-sqlite 2.4.0"
| #define PACKAGE_BUGREPORT "odb-users@codesynthesis.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libodb-sqlite"
| #define VERSION "2.4.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PTHREAD 1
| /* end confdefs.h. */
|
|
| #include <odb/exception.hxx>
|
| void
| f ()
| {
| }
|
| const char*
| g ()
| {
| try
| {
| f ();
| }
| catch (const odb::exception& e)
| {
| return e.what ();
| }
| return 0;
| }
|
| int
| main ()
| {
| const char* m (g ());
| return m != 0;
| }
|
configure:17895: result: no
configure:17897: error: libodb is not found; consider using --with-libodb=DIR
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-I/home/matthias/tmp/libodb/sqlite3/include
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/home/matthias/tmp/libodb/build/sqlite3 -ldl'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_FGREP='/usr/bin/grep -F'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_MANIFEST_TOOL=mt
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_ar_interface=ar
am_cv_prog_tar_ustar=gnutar
lt_cv_ar_at_file=@
lt_cv_archive_cmds_need_lc=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/x86_64-suse-linux/bin/ld
lt_cv_path_LDCXX='/usr/x86_64-suse-linux/bin/ld -m elf_x86_64'
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_pic='-fPIC -DPIC'
lt_cv_prog_compiler_pic_CXX='-fPIC -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_pic_works_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=no
lt_cv_prog_compiler_static_works_CXX=no
lt_cv_prog_gnu_ld=yes
lt_cv_prog_gnu_ldcxx=yes
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_shlibpath_overrides_runpath=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_max_cmd_len=1572864
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/matthias/tmp/libodb/libodb-sqlite-2.4.0/config/missing --run aclocal-1.12'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR='ar'
AS='as'
AUTOCONF='${SHELL} /home/matthias/tmp/libodb/libodb-sqlite-2.4.0/config/missing --run autoconf'
AUTOHEADER='${SHELL} /home/matthias/tmp/libodb/libodb-sqlite-2.4.0/config/missing --run autoheader'
AUTOMAKE='${SHELL} /home/matthias/tmp/libodb/libodb-sqlite-2.4.0/config/missing --run automake-1.12'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS='-I/home/matthias/tmp/libodb/sqlite3/include'
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2 -D_REENTRANT '
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL='false'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
FGREP='/usr/bin/grep -F'
GREP='/usr/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/usr/x86_64-suse-linux/bin/ld -m elf_x86_64'
LDFLAGS='-L/home/matthias/tmp/libodb/build/sqlite3 -ldl'
LIBOBJS=''
LIBS='-lsqlite3 -lpthread'
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/matthias/tmp/libodb/libodb-sqlite-2.4.0/config/missing --run makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='/usr/bin/mkdir -p'
NM='/usr/bin/nm -B'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='libodb-sqlite'
PACKAGE_BUGREPORT='odb-users@codesynthesis.com'
PACKAGE_NAME='libodb-sqlite'
PACKAGE_STRING='libodb-sqlite 2.4.0'
PACKAGE_TARNAME='libodb-sqlite'
PACKAGE_URL=''
PACKAGE_VERSION='2.4.0'
PATH_SEPARATOR=':'
PTHREAD_CXX=''
PTHREAD_CXXFLAGS='-D_REENTRANT '
PTHREAD_LIBS='-lpthread'
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='2.4.0'
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_DUMPBIN=''
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='tar --format=ustar -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/matthias/tmp/libodb/libodb-sqlite-2.4.0/config/install-sh'
libdir='${exec_prefix}/lib64'
libexecdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfigdir=''
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "libodb-sqlite"
#define PACKAGE_TARNAME "libodb-sqlite"
#define PACKAGE_VERSION "2.4.0"
#define PACKAGE_STRING "libodb-sqlite 2.4.0"
#define PACKAGE_BUGREPORT "odb-users@codesynthesis.com"
#define PACKAGE_URL ""
#define PACKAGE "libodb-sqlite"
#define VERSION "2.4.0"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define HAVE_PTHREAD 1
configure: exit 1
+1484
View File
File diff suppressed because it is too large Load Diff
+270
View File
@@ -0,0 +1,270 @@
#! /bin/sh
# Wrapper for Microsoft lib.exe
me=ar-lib
scriptversion=2012-03-01.08; # UTC
# Copyright (C) 2010-2012 Free Software Foundation, Inc.
# Written by Peter Rosin <peda@lysator.liu.se>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
# func_error message
func_error ()
{
echo "$me: $1" 1>&2
exit 1
}
file_conv=
# func_file_conv build_file
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv in
mingw)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin)
file=`cygpath -m "$file" || echo "$file"`
;;
wine)
file=`winepath -w "$file" || echo "$file"`
;;
esac
;;
esac
}
# func_at_file at_file operation archive
# Iterate over all members in AT_FILE performing OPERATION on ARCHIVE
# for each of them.
# When interpreting the content of the @FILE, do NOT use func_file_conv,
# since the user would need to supply preconverted file names to
# binutils ar, at least for MinGW.
func_at_file ()
{
operation=$2
archive=$3
at_file_contents=`cat "$1"`
eval set x "$at_file_contents"
shift
for member
do
$AR -NOLOGO $operation:"$member" "$archive" || exit $?
done
}
case $1 in
'')
func_error "no command. Try '$0 --help' for more information."
;;
-h | --h*)
cat <<EOF
Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...]
Members may be specified in a file named with @FILE.
EOF
exit $?
;;
-v | --v*)
echo "$me, version $scriptversion"
exit $?
;;
esac
if test $# -lt 3; then
func_error "you must specify a program, an action and an archive"
fi
AR=$1
shift
while :
do
if test $# -lt 2; then
func_error "you must specify a program, an action and an archive"
fi
case $1 in
-lib | -LIB \
| -ltcg | -LTCG \
| -machine* | -MACHINE* \
| -subsystem* | -SUBSYSTEM* \
| -verbose | -VERBOSE \
| -wx* | -WX* )
AR="$AR $1"
shift
;;
*)
action=$1
shift
break
;;
esac
done
orig_archive=$1
shift
func_file_conv "$orig_archive"
archive=$file
# strip leading dash in $action
action=${action#-}
delete=
extract=
list=
quick=
replace=
index=
create=
while test -n "$action"
do
case $action in
d*) delete=yes ;;
x*) extract=yes ;;
t*) list=yes ;;
q*) quick=yes ;;
r*) replace=yes ;;
s*) index=yes ;;
S*) ;; # the index is always updated implicitly
c*) create=yes ;;
u*) ;; # TODO: don't ignore the update modifier
v*) ;; # TODO: don't ignore the verbose modifier
*)
func_error "unknown action specified"
;;
esac
action=${action#?}
done
case $delete$extract$list$quick$replace,$index in
yes,* | ,yes)
;;
yesyes*)
func_error "more than one action specified"
;;
*)
func_error "no action specified"
;;
esac
if test -n "$delete"; then
if test ! -f "$orig_archive"; then
func_error "archive not found"
fi
for member
do
case $1 in
@*)
func_at_file "${1#@}" -REMOVE "$archive"
;;
*)
func_file_conv "$1"
$AR -NOLOGO -REMOVE:"$file" "$archive" || exit $?
;;
esac
done
elif test -n "$extract"; then
if test ! -f "$orig_archive"; then
func_error "archive not found"
fi
if test $# -gt 0; then
for member
do
case $1 in
@*)
func_at_file "${1#@}" -EXTRACT "$archive"
;;
*)
func_file_conv "$1"
$AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $?
;;
esac
done
else
$AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member
do
$AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
done
fi
elif test -n "$quick$replace"; then
if test ! -f "$orig_archive"; then
if test -z "$create"; then
echo "$me: creating $orig_archive"
fi
orig_archive=
else
orig_archive=$archive
fi
for member
do
case $1 in
@*)
func_file_conv "${1#@}"
set x "$@" "@$file"
;;
*)
func_file_conv "$1"
set x "$@" "$file"
;;
esac
shift
shift
done
if test -n "$orig_archive"; then
$AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $?
else
$AR -NOLOGO -OUT:"$archive" "$@" || exit $?
fi
elif test -n "$list"; then
if test ! -f "$orig_archive"; then
func_error "archive not found"
fi
$AR -NOLOGO -LIST "$archive" || exit $?
fi
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+787
View File
@@ -0,0 +1,787 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2012-07-12.20; # UTC
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
case $1 in
'')
echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
Run PROGRAMS ARGS to compile a file, generating dependencies
as side-effects.
Environment variables:
depmode Dependency tracking mode.
source Source file read by 'PROGRAMS ARGS'.
object Object file output by 'PROGRAMS ARGS'.
DEPDIR directory where to store dependencies.
depfile Dependency file to output.
tmpdepfile Temporary file to use when outputting dependencies.
libtool Whether libtool is used (yes/no).
Report bugs to <bug-automake@gnu.org>.
EOF
exit $?
;;
-v | --v*)
echo "depcomp $scriptversion"
exit $?
;;
esac
# A tabulation character.
tab=' '
# A newline character.
nl='
'
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
echo "depcomp: Variables source, object and depmode must be set" 1>&2
exit 1
fi
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
depfile=${depfile-`echo "$object" |
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
rm -f "$tmpdepfile"
# Avoid interferences from the environment.
gccflag= dashmflag=
# Some modes work just like other modes, but use different flags. We
# parameterize here, but still list the modes in the big case below,
# to make depend.m4 easier to write. Note that we *cannot* use a case
# here, because this file can only contain one case statement.
if test "$depmode" = hp; then
# HP compiler uses -M and no extra arg.
gccflag=-M
depmode=gcc
fi
if test "$depmode" = dashXmstdout; then
# This is just like dashmstdout with a different argument.
dashmflag=-xM
depmode=dashmstdout
fi
cygpath_u="cygpath -u -f -"
if test "$depmode" = msvcmsys; then
# This is just like msvisualcpp but w/o cygpath translation.
# Just convert the backslash-escaped backslashes to single forward
# slashes to satisfy depend.m4
cygpath_u='sed s,\\\\,/,g'
depmode=msvisualcpp
fi
if test "$depmode" = msvc7msys; then
# This is just like msvc7 but w/o cygpath translation.
# Just convert the backslash-escaped backslashes to single forward
# slashes to satisfy depend.m4
cygpath_u='sed s,\\\\,/,g'
depmode=msvc7
fi
if test "$depmode" = xlc; then
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
gccflag=-qmakedep=gcc,-MF
depmode=gcc
fi
case "$depmode" in
gcc3)
## gcc 3 implements dependency tracking that does exactly what
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
## it if -MD -MP comes after the -MF stuff. Hmm.
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
## the command line argument order; so add the flags where they
## appear in depend2.am. Note that the slowdown incurred here
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
for arg
do
case $arg in
-c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
*) set fnord "$@" "$arg" ;;
esac
shift # fnord
shift # $arg
done
"$@"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
mv "$tmpdepfile" "$depfile"
;;
gcc)
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
## (see the conditional assignment to $gccflag above).
## There are various ways to get dependency output from gcc. Here's
## why we pick this rather obscure method:
## - Don't want to use -MD because we'd like the dependencies to end
## up in a subdir. Having to rename by hand is ugly.
## (We might end up doing this anyway to support other compilers.)
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
## -MM, not -M (despite what the docs say). Also, it might not be
## supported by the other compilers which use the 'gcc' depmode.
## - Using -M directly means running the compiler twice (even worse
## than renaming).
if test -z "$gccflag"; then
gccflag=-MD,
fi
"$@" -Wp,"$gccflag$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
## The second -e expression handles DOS-style file names with drive letters.
sed -e 's/^[^:]*: / /' \
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
## This next piece of magic avoids the "deleted header file" problem.
## The problem is that when a header file which appears in a .P file
## is deleted, the dependency causes make to die (because there is
## typically no way to rebuild the header). We avoid this by adding
## dummy dependencies for each header file. Too bad gcc doesn't do
## this for us directly.
tr ' ' "$nl" < "$tmpdepfile" |
## Some versions of gcc put a space before the ':'. On the theory
## that the space means something, we add a space to the output as
## well. hp depmode also adds that space, but also prefixes the VPATH
## to the object. Take care to not repeat it in the output.
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
| sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
sgi)
if test "$libtool" = yes; then
"$@" "-Wp,-MDupdate,$tmpdepfile"
else
"$@" -MDupdate "$tmpdepfile"
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
echo "$object : \\" > "$depfile"
# Clip off the initial element (the dependent). Don't try to be
# clever and replace this with sed code, as IRIX sed won't handle
# lines with more than a fixed number of characters (4096 in
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
# the IRIX cc adds comments like '#:fec' to the end of the
# dependency line.
tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
tr "$nl" ' ' >> "$depfile"
echo >> "$depfile"
# The second pass generates a dummy entry for each header file.
tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
>> "$depfile"
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
xlc)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
aix)
# The C for AIX Compiler uses -M and outputs the dependencies
# in a .u file. In older versions, this file always lives in the
# current directory. Also, the AIX compiler puts '$object:' at the
# start of each line; $object doesn't have directory information.
# Version 6 uses the directory in both cases.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
tmpdepfile1=$dir$base.u
tmpdepfile2=$base.u
tmpdepfile3=$dir.libs/$base.u
"$@" -Wc,-M
else
tmpdepfile1=$dir$base.u
tmpdepfile2=$dir$base.u
tmpdepfile3=$dir$base.u
"$@" -M
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
# Each line is of the form 'foo.o: dependent.h'.
# Do two passes, one to just change these to
# '$object: dependent.h' and one to simply 'dependent.h:'.
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
icc)
# Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
# However on
# $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
# ICC 7.0 will fill foo.d with something like
# foo.o: sub/foo.c
# foo.o: sub/foo.h
# which is wrong. We want
# sub/foo.o: sub/foo.c
# sub/foo.o: sub/foo.h
# sub/foo.c:
# sub/foo.h:
# ICC 7.1 will output
# foo.o: sub/foo.c sub/foo.h
# and will wrap long lines using '\':
# foo.o: sub/foo.c ... \
# sub/foo.h ... \
# ...
# tcc 0.9.26 (FIXME still under development at the moment of writing)
# will emit a similar output, but also prepend the continuation lines
# with horizontal tabulation characters.
"$@" -MD -MF "$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
# Each line is of the form 'foo.o: dependent.h',
# or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
# Do two passes, one to just change these to
# '$object: dependent.h' and one to simply 'dependent.h:'.
sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
< "$tmpdepfile" > "$depfile"
sed '
s/[ '"$tab"'][ '"$tab"']*/ /g
s/^ *//
s/ *\\*$//
s/^[^:]*: *//
/^$/d
/:$/d
s/$/ :/
' < "$tmpdepfile" >> "$depfile"
rm -f "$tmpdepfile"
;;
## The order of this option in the case statement is important, since the
## shell code in configure will try each of these formats in the order
## listed in this file. A plain '-MD' option would be understood by many
## compilers, so we must ensure this comes after the gcc and icc options.
pgcc)
# Portland's C compiler understands '-MD'.
# Will always output deps to 'file.d' where file is the root name of the
# source file under compilation, even if file resides in a subdirectory.
# The object file name does not affect the name of the '.d' file.
# pgcc 10.2 will output
# foo.o: sub/foo.c sub/foo.h
# and will wrap long lines using '\' :
# foo.o: sub/foo.c ... \
# sub/foo.h ... \
# ...
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
# Use the source, not the object, to determine the base name, since
# that's sadly what pgcc will do too.
base=`echo "$source" | sed -e 's|^.*/||' -e 's/\.[-_a-zA-Z0-9]*$//'`
tmpdepfile="$base.d"
# For projects that build the same source file twice into different object
# files, the pgcc approach of using the *source* file root name can cause
# problems in parallel builds. Use a locking strategy to avoid stomping on
# the same $tmpdepfile.
lockdir="$base.d-lock"
trap "echo '$0: caught signal, cleaning up...' >&2; rm -rf $lockdir" 1 2 13 15
numtries=100
i=$numtries
while test $i -gt 0 ; do
# mkdir is a portable test-and-set.
if mkdir $lockdir 2>/dev/null; then
# This process acquired the lock.
"$@" -MD
stat=$?
# Release the lock.
rm -rf $lockdir
break
else
## the lock is being held by a different process,
## wait until the winning process is done or we timeout
while test -d $lockdir && test $i -gt 0; do
sleep 1
i=`expr $i - 1`
done
fi
i=`expr $i - 1`
done
trap - 1 2 13 15
if test $i -le 0; then
echo "$0: failed to acquire lock after $numtries attempts" >&2
echo "$0: check lockdir '$lockdir'" >&2
exit 1
fi
if test $stat -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
# Each line is of the form `foo.o: dependent.h',
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
# Do two passes, one to just change these to
# `$object: dependent.h' and one to simply `dependent.h:'.
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
# Some versions of the HPUX 10.20 sed can't process this invocation
# correctly. Breaking it into two sed invocations is a workaround.
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp2)
# The "hp" stanza above does not work with aCC (C++) and HP's ia64
# compilers, which have integrated preprocessors. The correct option
# to use with these is +Maked; it writes dependencies to a file named
# 'foo.d', which lands next to the object file, wherever that
# happens to be.
# Much of this is similar to the tru64 case; see comments there.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir.libs/$base.d
"$@" -Wc,+Maked
else
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir$base.d
"$@" +Maked
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
# Add 'dependent.h:' lines.
sed -ne '2,${
s/^ *//
s/ \\*$//
s/$/:/
p
}' "$tmpdepfile" >> "$depfile"
else
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile" "$tmpdepfile2"
;;
tru64)
# The Tru64 compiler uses -MD to generate dependencies as a side
# effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
# dependencies in 'foo.d' instead, so we check for that too.
# Subdirectories are respected.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
# With Tru64 cc, shared objects can also be used to make a
# static library. This mechanism is used in libtool 1.4 series to
# handle both shared and static libraries in a single compilation.
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
#
# With libtool 1.5 this exception was removed, and libtool now
# generates 2 separate objects for the 2 libraries. These two
# compilations output dependencies in $dir.libs/$base.o.d and
# in $dir$base.o.d. We have to check for both files, because
# one of the two compilations can be disabled. We should prefer
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
# automatically cleaned when .libs/ is deleted, while ignoring
# the former would cause a distcleancheck panic.
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
tmpdepfile2=$dir$base.o.d # libtool 1.5
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
"$@" -Wc,-MD
else
tmpdepfile1=$dir$base.o.d
tmpdepfile2=$dir$base.d
tmpdepfile3=$dir$base.d
tmpdepfile4=$dir$base.d
"$@" -MD
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
msvc7)
if test "$libtool" = yes; then
showIncludes=-Wc,-showIncludes
else
showIncludes=-showIncludes
fi
"$@" $showIncludes > "$tmpdepfile"
stat=$?
grep -v '^Note: including file: ' "$tmpdepfile"
if test "$stat" = 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
# The first sed program below extracts the file names and escapes
# backslashes for cygpath. The second sed program outputs the file
# name when reading, but also accumulates all include files in the
# hold buffer in order to output them again at the end. This only
# works with sed implementations that can handle large buffers.
sed < "$tmpdepfile" -n '
/^Note: including file: *\(.*\)/ {
s//\1/
s/\\/\\\\/g
p
}' | $cygpath_u | sort -u | sed -n '
s/ /\\ /g
s/\(.*\)/'"$tab"'\1 \\/p
s/.\(.*\) \\/\1:/
H
$ {
s/.*/'"$tab"'/
G
p
}' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvc7msys)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
#nosideeffect)
# This comment above is used by automake to tell side-effect
# dependency tracking mechanisms from slower ones.
dashmstdout)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout, regardless of -o.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# Remove '-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
test -z "$dashmflag" && dashmflag=-M
# Require at least two characters before searching for ':'
# in the target name. This is to cope with DOS-style filenames:
# a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
"$@" $dashmflag |
sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
tr ' ' "$nl" < "$tmpdepfile" | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
dashXmstdout)
# This case only exists to satisfy depend.m4. It is never actually
# run, as this mode is specially recognized in the preamble.
exit 1
;;
makedepend)
"$@" || exit $?
# Remove any Libtool call
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# X makedepend
shift
cleared=no eat=no
for arg
do
case $cleared in
no)
set ""; shift
cleared=yes ;;
esac
if test $eat = yes; then
eat=no
continue
fi
case "$arg" in
-D*|-I*)
set fnord "$@" "$arg"; shift ;;
# Strip any option that makedepend may not understand. Remove
# the object too, otherwise makedepend will parse it as a source file.
-arch)
eat=yes ;;
-*|$object)
;;
*)
set fnord "$@" "$arg"; shift ;;
esac
done
obj_suffix=`echo "$object" | sed 's/^.*\././'`
touch "$tmpdepfile"
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
rm -f "$depfile"
# makedepend may prepend the VPATH from the source file name to the object.
# No need to regex-escape $object, excess matching of '.' is harmless.
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile" "$tmpdepfile".bak
;;
cpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
# Remove '-o $object'.
IFS=" "
for arg
do
case $arg in
-o)
shift
;;
$object)
shift
;;
*)
set fnord "$@" "$arg"
shift # fnord
shift # $arg
;;
esac
done
"$@" -E |
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
sed '$ s: \\$::' > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
cat < "$tmpdepfile" >> "$depfile"
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvisualcpp)
# Important note: in order to support this mode, a compiler *must*
# always write the preprocessed file to stdout.
"$@" || exit $?
# Remove the call to Libtool.
if test "$libtool" = yes; then
while test "X$1" != 'X--mode=compile'; do
shift
done
shift
fi
IFS=" "
for arg
do
case "$arg" in
-o)
shift
;;
$object)
shift
;;
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
set fnord "$@"
shift
shift
;;
*)
set fnord "$@" "$arg"
shift
shift
;;
esac
done
"$@" -E 2>/dev/null |
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
echo "$tab" >> "$depfile"
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvcmsys)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
none)
exec "$@"
;;
*)
echo "Unknown depmode $depmode" 1>&2
exit 1
;;
esac
exit 0
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
+527
View File
@@ -0,0 +1,527 @@
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2011-11-20.07; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# 'make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
nl='
'
IFS=" "" $nl"
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit=${DOITPROG-}
if test -z "$doit"; then
doit_exec=exec
else
doit_exec=$doit
fi
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
stripprog=${STRIPPROG-strip}
posix_glob='?'
initialize_posix_glob='
test "$posix_glob" != "?" || {
if (set -f) 2>/dev/null; then
posix_glob=
else
posix_glob=:
fi
}
'
posix_mkdir=
# Desired mode of installed file.
mode=0755
chgrpcmd=
chmodcmd=$chmodprog
chowncmd=
mvcmd=$mvprog
rmcmd="$rmprog -f"
stripcmd=
src=
dst=
dir_arg=
dst_arg=
copy_on_change=false
no_target_directory=
usage="\
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
or: $0 [OPTION]... SRCFILES... DIRECTORY
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
or: $0 [OPTION]... -d DIRECTORIES...
In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.
Options:
--help display this help and exit.
--version display version info and exit.
-c (ignored)
-C install only if different (preserve the last data modification time)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
-m MODE $chmodprog installed files to MODE.
-o USER $chownprog installed files to USER.
-s $stripprog installed files.
-t DIRECTORY install into DIRECTORY.
-T report an error if DSTFILE is a directory.
Environment variables override the default commands:
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
RMPROG STRIPPROG
"
while test $# -ne 0; do
case $1 in
-c) ;;
-C) copy_on_change=true;;
-d) dir_arg=true;;
-g) chgrpcmd="$chgrpprog $2"
shift;;
--help) echo "$usage"; exit $?;;
-m) mode=$2
case $mode in
*' '* | *' '* | *'
'* | *'*'* | *'?'* | *'['*)
echo "$0: invalid mode: $mode" >&2
exit 1;;
esac
shift;;
-o) chowncmd="$chownprog $2"
shift;;
-s) stripcmd=$stripprog;;
-t) dst_arg=$2
# Protect names problematic for 'test' and other utilities.
case $dst_arg in
-* | [=\(\)!]) dst_arg=./$dst_arg;;
esac
shift;;
-T) no_target_directory=true;;
--version) echo "$0 $scriptversion"; exit $?;;
--) shift
break;;
-*) echo "$0: invalid option: $1" >&2
exit 1;;
*) break;;
esac
shift
done
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
# When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
# Otherwise, the last argument is the destination. Remove it from $@.
for arg
do
if test -n "$dst_arg"; then
# $@ is not empty: it contains at least $arg.
set fnord "$@" "$dst_arg"
shift # fnord
fi
shift # arg
dst_arg=$arg
# Protect names problematic for 'test' and other utilities.
case $dst_arg in
-* | [=\(\)!]) dst_arg=./$dst_arg;;
esac
done
fi
if test $# -eq 0; then
if test -z "$dir_arg"; then
echo "$0: no input file specified." >&2
exit 1
fi
# It's OK to call 'install-sh -d' without argument.
# This can happen when creating conditional directories.
exit 0
fi
if test -z "$dir_arg"; then
do_exit='(exit $ret); exit $ret'
trap "ret=129; $do_exit" 1
trap "ret=130; $do_exit" 2
trap "ret=141; $do_exit" 13
trap "ret=143; $do_exit" 15
# Set umask so as not to create temps with too-generous modes.
# However, 'strip' requires both read and write access to temps.
case $mode in
# Optimize common cases.
*644) cp_umask=133;;
*755) cp_umask=22;;
*[0-7])
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw='% 200'
fi
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
*)
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw=,u+rw
fi
cp_umask=$mode$u_plus_rw;;
esac
fi
for src
do
# Protect names problematic for 'test' and other utilities.
case $src in
-* | [=\(\)!]) src=./$src;;
esac
if test -n "$dir_arg"; then
dst=$src
dstdir=$dst
test -d "$dstdir"
dstdir_status=$?
else
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if test ! -f "$src" && test ! -d "$src"; then
echo "$0: $src does not exist." >&2
exit 1
fi
if test -z "$dst_arg"; then
echo "$0: no destination specified." >&2
exit 1
fi
dst=$dst_arg
# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
if test -d "$dst"; then
if test -n "$no_target_directory"; then
echo "$0: $dst_arg: Is a directory" >&2
exit 1
fi
dstdir=$dst
dst=$dstdir/`basename "$src"`
dstdir_status=0
else
# Prefer dirname, but fall back on a substitute if dirname fails.
dstdir=`
(dirname "$dst") 2>/dev/null ||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$dst" : 'X\(//\)[^/]' \| \
X"$dst" : 'X\(//\)$' \| \
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$dst" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'
`
test -d "$dstdir"
dstdir_status=$?
fi
fi
obsolete_mkdir_used=false
if test $dstdir_status != 0; then
case $posix_mkdir in
'')
# Create intermediate dirs using mode 755 as modified by the umask.
# This is like FreeBSD 'install' as of 1997-10-28.
umask=`umask`
case $stripcmd.$umask in
# Optimize common cases.
*[2367][2367]) mkdir_umask=$umask;;
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
*[0-7])
mkdir_umask=`expr $umask + 22 \
- $umask % 100 % 40 + $umask % 20 \
- $umask % 10 % 4 + $umask % 2
`;;
*) mkdir_umask=$umask,go-w;;
esac
# With -d, create the new directory with the user-specified mode.
# Otherwise, rely on $mkdir_umask.
if test -n "$dir_arg"; then
mkdir_mode=-m$mode
else
mkdir_mode=
fi
posix_mkdir=false
case $umask in
*[123567][0-7][0-7])
# POSIX mkdir -p sets u+wx bits regardless of umask, which
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
;;
*)
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
if (umask $mkdir_umask &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
then
if test -z "$dir_arg" || {
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
ls_ld_tmpdir=`ls -ld "$tmpdir"`
case $ls_ld_tmpdir in
d????-?r-*) different_mode=700;;
d????-?--*) different_mode=755;;
*) false;;
esac &&
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
}
}
then posix_mkdir=:
fi
rmdir "$tmpdir/d" "$tmpdir"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
fi
trap '' 0;;
esac;;
esac
if
$posix_mkdir && (
umask $mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
)
then :
else
# The umask is ridiculous, or mkdir does not conform to POSIX,
# or it failed possibly due to a race condition. Create the
# directory the slow way, step by step, checking for races as we go.
case $dstdir in
/*) prefix='/';;
[-=\(\)!]*) prefix='./';;
*) prefix='';;
esac
eval "$initialize_posix_glob"
oIFS=$IFS
IFS=/
$posix_glob set -f
set fnord $dstdir
shift
$posix_glob set +f
IFS=$oIFS
prefixes=
for d
do
test X"$d" = X && continue
prefix=$prefix$d
if test -d "$prefix"; then
prefixes=
else
if $posix_mkdir; then
(umask=$mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
# Don't fail if two instances are running concurrently.
test -d "$prefix" || exit 1
else
case $prefix in
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
*) qprefix=$prefix;;
esac
prefixes="$prefixes '$qprefix'"
fi
fi
prefix=$prefix/
done
if test -n "$prefixes"; then
# Don't fail if two instances are running concurrently.
(umask $mkdir_umask &&
eval "\$doit_exec \$mkdirprog $prefixes") ||
test -d "$dstdir" || exit 1
obsolete_mkdir_used=true
fi
fi
fi
if test -n "$dir_arg"; then
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
else
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
rmtmp=$dstdir/_rm.$$_
# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
# Copy the file name to the temp name.
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
# and set any options; do chmod last to preserve setuid bits.
#
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $cpprog $src $dsttmp" command.
#
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
# If -C, don't bother to copy if it wouldn't change the file.
if $copy_on_change &&
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
eval "$initialize_posix_glob" &&
$posix_glob set -f &&
set X $old && old=:$2:$4:$5:$6 &&
set X $new && new=:$2:$4:$5:$6 &&
$posix_glob set +f &&
test "$old" = "$new" &&
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
then
rm -f "$dsttmp"
else
# Rename the file to the real destination.
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
# The rename failed, perhaps because mv can't rename something else
# to itself, or perhaps because mv is so ancient that it does not
# support -f.
{
# Now remove or move aside any old file at destination location.
# We try this two ways since rm can't unlink itself on some
# systems and the destination file might be busy for other
# reasons. In this case, the final cleanup might fail but the new
# file should still install successfully.
{
test ! -f "$dst" ||
$doit $rmcmd -f "$dst" 2>/dev/null ||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
} ||
{ echo "$0: cannot unlink or rename $dst" >&2
(exit 1); exit 1
}
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dst"
}
fi || exit 1
trap '' 0
fi
done
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
File diff suppressed because it is too large Load Diff
+330
View File
@@ -0,0 +1,330 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2012-01-06.18; # UTC
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
if test $# -eq 0; then
echo 1>&2 "Try '$0 --help' for more information"
exit 1
fi
run=:
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
# In the cases where this matters, 'missing' is being run in the
# srcdir already.
if test -f configure.ac; then
configure_ac=configure.ac
else
configure_ac=configure.in
fi
msg="missing on your system"
case $1 in
--run)
# Try to run requested program, and just exit if it succeeds.
run=
shift
"$@" && exit 0
# Exit code 63 means version mismatch. This often happens
# when the user try to use an ancient version of a tool on
# a file that requires a minimum version. In this case we
# we should proceed has if the program had been absent, or
# if --run hadn't been passed.
if test $? = 63; then
run=:
msg="probably too old"
fi
;;
-h|--h|--he|--hel|--help)
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
error status if there is no known handling for PROGRAM.
Options:
-h, --help display this help and exit
-v, --version output version information and exit
--run try to run the given command, and emulate it if it fails
Supported PROGRAM values:
aclocal touch file 'aclocal.m4'
autoconf touch file 'configure'
autoheader touch file 'config.h.in'
autom4te touch the output file, or create a stub one
automake touch all 'Makefile.in' files
bison create 'y.tab.[ch]', if possible, from existing .[ch]
flex create 'lex.yy.c', if possible, from existing .c
help2man touch the output file
lex create 'lex.yy.c', if possible, from existing .c
makeinfo touch the output file
yacc create 'y.tab.[ch]', if possible, from existing .[ch]
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
'g' are ignored when checking the name.
Send bug reports to <bug-automake@gnu.org>."
exit $?
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
echo "missing $scriptversion (GNU Automake)"
exit $?
;;
-*)
echo 1>&2 "$0: Unknown '$1' option"
echo 1>&2 "Try '$0 --help' for more information"
exit 1
;;
esac
# normalize program name to check for.
program=`echo "$1" | sed '
s/^gnu-//; t
s/^gnu//; t
s/^g//; t'`
# Now exit if we have it, but it failed. Also exit now if we
# don't have it and --version was passed (most likely to detect
# the program). This is about non-GNU programs, so use $1 not
# $program.
case $1 in
lex*|yacc*)
# Not GNU programs, they don't have --version.
;;
*)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
# Could not run --version or --help. This is probably someone
# running '$TOOL --version' or '$TOOL --help' to check whether
# $TOOL exists and not knowing $TOOL uses missing.
exit 1
fi
;;
esac
# If it does not exist, or fails to run (possibly an outdated version),
# try to emulate it.
case $program in
aclocal*)
echo 1>&2 "\
WARNING: '$1' is $msg. You should only need it if
you modified 'acinclude.m4' or '${configure_ac}'. You might want
to install the Automake and Perl packages. Grab them from
any GNU archive site."
touch aclocal.m4
;;
autoconf*)
echo 1>&2 "\
WARNING: '$1' is $msg. You should only need it if
you modified '${configure_ac}'. You might want to install the
Autoconf and GNU m4 packages. Grab them from any GNU
archive site."
touch configure
;;
autoheader*)
echo 1>&2 "\
WARNING: '$1' is $msg. You should only need it if
you modified 'acconfig.h' or '${configure_ac}'. You might want
to install the Autoconf and GNU m4 packages. Grab them
from any GNU archive site."
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
case $f in
*:*) touch_files="$touch_files "`echo "$f" |
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
*) touch_files="$touch_files $f.in";;
esac
done
touch $touch_files
;;
automake*)
echo 1>&2 "\
WARNING: '$1' is $msg. You should only need it if
you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'.
You might want to install the Automake and Perl packages.
Grab them from any GNU archive site."
find . -type f -name Makefile.am -print |
sed 's/\.am$/.in/' |
while read f; do touch "$f"; done
;;
autom4te*)
echo 1>&2 "\
WARNING: '$1' is needed, but is $msg.
You might have modified some files without having the
proper tools for further handling them.
You can get '$1' as part of Autoconf from any GNU
archive site."
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
if test -f "$file"; then
touch $file
else
test -z "$file" || exec >$file
echo "#! /bin/sh"
echo "# Created by GNU Automake missing as a replacement of"
echo "# $ $@"
echo "exit 0"
chmod +x $file
exit 1
fi
;;
bison*|yacc*)
echo 1>&2 "\
WARNING: '$1' $msg. You should only need it if
you modified a '.y' file. You may need the Bison package
in order for those modifications to take effect. You can get
Bison from any GNU archive site."
rm -f y.tab.c y.tab.h
if test $# -ne 1; then
eval LASTARG=\${$#}
case $LASTARG in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
if test -f "$SRCFILE"; then
cp "$SRCFILE" y.tab.c
fi
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
if test -f "$SRCFILE"; then
cp "$SRCFILE" y.tab.h
fi
;;
esac
fi
if test ! -f y.tab.h; then
echo >y.tab.h
fi
if test ! -f y.tab.c; then
echo 'main() { return 0; }' >y.tab.c
fi
;;
lex*|flex*)
echo 1>&2 "\
WARNING: '$1' is $msg. You should only need it if
you modified a '.l' file. You may need the Flex package
in order for those modifications to take effect. You can get
Flex from any GNU archive site."
rm -f lex.yy.c
if test $# -ne 1; then
eval LASTARG=\${$#}
case $LASTARG in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
if test -f "$SRCFILE"; then
cp "$SRCFILE" lex.yy.c
fi
;;
esac
fi
if test ! -f lex.yy.c; then
echo 'main() { return 0; }' >lex.yy.c
fi
;;
help2man*)
echo 1>&2 "\
WARNING: '$1' is $msg. You should only need it if
you modified a dependency of a manual page. You may need the
Help2man package in order for those modifications to take
effect. You can get Help2man from any GNU archive site."
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
if test -f "$file"; then
touch $file
else
test -z "$file" || exec >$file
echo ".ab help2man is required to generate this page"
exit $?
fi
;;
makeinfo*)
echo 1>&2 "\
WARNING: '$1' is $msg. You should only need it if
you modified a '.texi' or '.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy 'make' (AIX,
DU, IRIX). You might want to install the Texinfo package or
the GNU make package. Grab either from any GNU archive site."
# The file to touch is that specified with -o ...
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
if test -z "$file"; then
# ... or it is the one specified with @setfilename ...
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '
/^@setfilename/{
s/.* \([^ ]*\) *$/\1/
p
q
}' $infile`
# ... or it is derived from the source name (dir/f.texi becomes f.info)
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
fi
# If the file does not exist, the user really needs makeinfo;
# let's fail without touching anything.
test -f $file || exit 1
touch $file
;;
*)
echo 1>&2 "\
WARNING: '$1' is needed, and is $msg.
You might have modified some files without having the
proper tools for further handling them. Check the 'README' file,
it often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing '$1' program."
exit 1
;;
esac
exit 0
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
+20604
View File
File diff suppressed because it is too large Load Diff
+64
View File
@@ -0,0 +1,64 @@
# file : configure.ac
# copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
# license : GNU GPL v2; see accompanying LICENSE file
AC_PREREQ(2.60)
AC_INIT([libodb-sqlite], [2.4.0], [odb-users@codesynthesis.com])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([odb/sqlite/version.hxx])
AM_INIT_AUTOMAKE([-Wall -Werror foreign nostdinc subdir-objects dist-bzip2 dist-zip tar-ustar])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) # Required by automake 1.12.
LT_INIT([win32-dll])
AC_CANONICAL_HOST
# Check for C++ compiler and use it to compile the tests.
#
AC_PROG_CXX
AC_LANG(C++)
# Create the libtool executable so that we can use it in further tests.
#
LT_OUTPUT
# Check for threads.
#
THREADS
# Check for libsqlite.
#
LIBSQLITE(
[],
[AC_MSG_ERROR([libsqlite3 is not found; consider using CPPFLAGS/LDFLAGS to specify its location])])
AS_IF([test x$libsqlite_unlock_notify = xyes],
AC_DEFINE([LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY], [1], [Have sqlite3_unlock_notify.]))
AS_IF([test x$threads != xnone -a x$libsqlite_unlock_notify = xno],
AC_MSG_WARN([libsqlite3 is built without sqlite3_unlock_notify support; multi-threaded support will be limited]))
# Check for libodb.
#
LIBODB([],[AC_MSG_ERROR([libodb is not found; consider using --with-libodb=DIR])])
# Define LIBODB_SQLITE_STATIC_LIB if we are build static library on certain
# platforms.
#
STATIC_LIB([LIBODB_SQLITE_STATIC_LIB], [Static library interface.])
# Allow the user to specify the pkgconfig directory.
#
PKGCONFIG
# Check if we should disable rpath.
#
DISABLE_RPATH
# Output.
#
AC_CONFIG_HEADERS([odb/sqlite/config.h odb/sqlite/details/config.h])
AC_CONFIG_FILES([libodb-sqlite.pc Makefile odb/sqlite/Makefile])
AC_OUTPUT
+30
View File
@@ -0,0 +1,30 @@
This directory contains project/solution files for building SQLite libraries
with Microsoft Visual Studio versions 8, 9, 10, 11, and 12.
To build SQLite, you will need to download two SQLite packages: sqlite-
amalgamation and sqlite-dll. Copy the sqlite3.c and sqlite3.h files from the
first package and the sqlite3.def file from the second package into the
directory with the project/solution files. Then open the solution and build
the desired configurations (Debug/Release) and platforms (Win32/x64).
The resulting 32-bit DLLs and import libraries are placed into the bin\ and
lib\ sub-directories, respectively. Similarly, the 64-bit DLLs and import
libraries are placed into bin64\ and lib64\. The Release versions of the
import libraries are named sqlite3.lib and the Debug versions are named
sqlite3-d.lib.
To configure Visual Studio to automatically locate the SQLite header, DLLs,
and import libraries, add the following paths to your VC++ Directories (below
sqlite refers to the build directory):
Win32:
Include: ...\sqlite
Library: ...\sqlite\lib
Executable: ...\sqlite\bin
x64:
Include: ...\sqlite
Library: ...\sqlite\lib64
Executable: ...\sqlite\bin64
+26
View File
@@ -0,0 +1,26 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3-vc10.vcxproj", "{3409C5BB-974C-44FC-A9DB-2176837E9035}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|Win32.ActiveCfg = Debug|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|Win32.Build.0 = Debug|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|x64.ActiveCfg = Debug|x64
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|x64.Build.0 = Debug|x64
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|Win32.ActiveCfg = Release|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|Win32.Build.0 = Release|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|x64.ActiveCfg = Release|x64
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+170
View File
@@ -0,0 +1,170 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{3409C5BB-974C-44FC-A9DB-2176837E9035}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>sqlite3</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>bin\</OutDir>
<TargetName>sqlite3-d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>bin64\</OutDir>
<TargetName>sqlite3-d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>bin\</OutDir>
<TargetName>sqlite3</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>bin64\</OutDir>
<TargetName>sqlite3</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib\sqlite3-d.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib64\sqlite3-d.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib\sqlite3.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib64\sqlite3.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="sqlite3.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="sqlite3.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="sqlite3.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="sqlite3.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
+26
View File
@@ -0,0 +1,26 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3-vc11.vcxproj", "{3409C5BB-974C-44FC-A9DB-2176837E9035}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|Win32.ActiveCfg = Debug|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|Win32.Build.0 = Debug|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|x64.ActiveCfg = Debug|x64
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|x64.Build.0 = Debug|x64
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|Win32.ActiveCfg = Release|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|Win32.Build.0 = Release|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|x64.ActiveCfg = Release|x64
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+174
View File
@@ -0,0 +1,174 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{3409C5BB-974C-44FC-A9DB-2176837E9035}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>sqlite3</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>bin\</OutDir>
<TargetName>sqlite3-d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>bin64\</OutDir>
<TargetName>sqlite3-d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>bin\</OutDir>
<TargetName>sqlite3</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>bin64\</OutDir>
<TargetName>sqlite3</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib\sqlite3-d.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib64\sqlite3-d.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib\sqlite3.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib64\sqlite3.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="sqlite3.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="sqlite3.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="sqlite3.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="sqlite3.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
+28
View File
@@ -0,0 +1,28 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3-vc12.vcxproj", "{3409C5BB-974C-44FC-A9DB-2176837E9035}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|Win32.ActiveCfg = Debug|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|Win32.Build.0 = Debug|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|x64.ActiveCfg = Debug|x64
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Debug|x64.Build.0 = Debug|x64
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|Win32.ActiveCfg = Release|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|Win32.Build.0 = Release|Win32
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|x64.ActiveCfg = Release|x64
{3409C5BB-974C-44FC-A9DB-2176837E9035}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+178
View File
@@ -0,0 +1,178 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{3409C5BB-974C-44FC-A9DB-2176837E9035}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>sqlite3</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>bin\</OutDir>
<TargetName>sqlite3-d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>bin64\</OutDir>
<TargetName>sqlite3-d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>bin\</OutDir>
<TargetName>sqlite3</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>bin64\</OutDir>
<TargetName>sqlite3</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib\sqlite3-d.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib64\sqlite3-d.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib\sqlite3.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>lib64\sqlite3.lib</ImportLibrary>
<ModuleDefinitionFile>sqlite3.def</ModuleDefinitionFile>
<AdditionalOptions>/EXPORT:sqlite3_unlock_notify %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="sqlite3.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="sqlite3.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="sqlite3.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="sqlite3.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
+26
View File
@@ -0,0 +1,26 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3-vc8.vcproj", "{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|Win32.ActiveCfg = Debug|Win32
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|Win32.Build.0 = Debug|Win32
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|x64.ActiveCfg = Debug|x64
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|x64.Build.0 = Debug|x64
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|Win32.ActiveCfg = Release|Win32
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|Win32.Build.0 = Release|Win32
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|x64.ActiveCfg = Release|x64
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+360
View File
@@ -0,0 +1,360 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="sqlite3"
ProjectGUID="{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}"
RootNamespace="sqlite3"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="."
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4251"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist lib mkdir lib"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/EXPORT:sqlite3_unlock_notify"
OutputFile="$(OutDir)\bin\sqlite3-d.dll"
LinkIncremental="2"
ModuleDefinitionFile="sqlite3.def"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)\lib\sqlite3-d.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="."
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4251"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist lib64 mkdir lib64"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/EXPORT:sqlite3_unlock_notify"
OutputFile="$(OutDir)\bin64\sqlite3-d.dll"
LinkIncremental="2"
ModuleDefinitionFile="sqlite3.def"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)\lib64\sqlite3-d.lib"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="."
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4251"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist lib mkdir lib"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/EXPORT:sqlite3_unlock_notify"
OutputFile="$(OutDir)\bin\sqlite3.dll"
LinkIncremental="1"
ModuleDefinitionFile="sqlite3.def"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)\lib\sqlite3.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="."
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4251"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist lib64 mkdir lib64"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/EXPORT:sqlite3_unlock_notify"
OutputFile="$(OutDir)\bin64\sqlite3.dll"
LinkIncremental="1"
ModuleDefinitionFile="sqlite3.def"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)\lib64\sqlite3.lib"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="c"
UniqueIdentifier="{C409DEBB-2841-4FC1-AF70-C5BB14A3BBD5}"
>
<File
RelativePath=".\sqlite3.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h"
UniqueIdentifier="{C55F9DC5-9ACE-4994-9C65-ADFEAE102837}"
>
<File
RelativePath=".\sqlite3.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
+26
View File
@@ -0,0 +1,26 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3-vc9.vcproj", "{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|Win32.ActiveCfg = Debug|Win32
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|Win32.Build.0 = Debug|Win32
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|x64.ActiveCfg = Debug|x64
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Debug|x64.Build.0 = Debug|x64
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|Win32.ActiveCfg = Release|Win32
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|Win32.Build.0 = Release|Win32
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|x64.ActiveCfg = Release|x64
{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+367
View File
@@ -0,0 +1,367 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="sqlite3"
ProjectGUID="{6AAE1E22-4BE0-4CB4-A94E-B908167D88C2}"
RootNamespace="sqlite3"
Keyword="Win32Proj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="."
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4251"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist lib mkdir lib"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/EXPORT:sqlite3_unlock_notify"
OutputFile="$(OutDir)\bin\sqlite3-d.dll"
LinkIncremental="2"
ModuleDefinitionFile="sqlite3.def"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)\lib\sqlite3-d.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="."
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4251"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist lib64 mkdir lib64"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/EXPORT:sqlite3_unlock_notify"
OutputFile="$(OutDir)\bin64\sqlite3-d.dll"
LinkIncremental="2"
ModuleDefinitionFile="sqlite3.def"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)\lib64\sqlite3-d.lib"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="."
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4251"
Optimization="2"
EnableIntrinsicFunctions="true"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist lib mkdir lib"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/EXPORT:sqlite3_unlock_notify"
OutputFile="$(OutDir)\bin\sqlite3.dll"
LinkIncremental="1"
ModuleDefinitionFile="sqlite3.def"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)\lib\sqlite3.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="."
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4251"
Optimization="2"
EnableIntrinsicFunctions="true"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SQLITE_OS_WIN=1;SQLITE_THREADSAFE=1;SQLITE_ENABLE_FTS3=1;SQLITE_ENABLE_RTREE=1;SQLITE_ENABLE_COLUMN_METADATA=1;SQLITE_ENABLE_UNLOCK_NOTIFY=1"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist lib64 mkdir lib64"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/EXPORT:sqlite3_unlock_notify"
OutputFile="$(OutDir)\bin64\sqlite3.dll"
LinkIncremental="1"
ModuleDefinitionFile="sqlite3.def"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)\lib64\sqlite3.lib"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="c"
UniqueIdentifier="{C409DEBB-2841-4FC1-AF70-C5BB14A3BBD5}"
>
<File
RelativePath=".\sqlite3.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h"
UniqueIdentifier="{C55F9DC5-9ACE-4994-9C65-ADFEAE102837}"
>
<File
RelativePath=".\sqlite3.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
+26
View File
@@ -0,0 +1,26 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libodb-sqlite", "odb\sqlite\libodb-sqlite-vc10.vcxproj", "{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|Win32.ActiveCfg = Debug|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|Win32.Build.0 = Debug|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|x64.ActiveCfg = Debug|x64
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|x64.Build.0 = Debug|x64
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|Win32.ActiveCfg = Release|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|Win32.Build.0 = Release|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|x64.ActiveCfg = Release|x64
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+26
View File
@@ -0,0 +1,26 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libodb-sqlite", "odb\sqlite\libodb-sqlite-vc11.vcxproj", "{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|Win32.ActiveCfg = Debug|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|Win32.Build.0 = Debug|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|x64.ActiveCfg = Debug|x64
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|x64.Build.0 = Debug|x64
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|Win32.ActiveCfg = Release|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|Win32.Build.0 = Release|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|x64.ActiveCfg = Release|x64
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+28
View File
@@ -0,0 +1,28 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libodb-sqlite", "odb\sqlite\libodb-sqlite-vc12.vcxproj", "{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|Win32.ActiveCfg = Debug|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|Win32.Build.0 = Debug|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|x64.ActiveCfg = Debug|x64
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Debug|x64.Build.0 = Debug|x64
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|Win32.ActiveCfg = Release|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|Win32.Build.0 = Release|Win32
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|x64.ActiveCfg = Release|x64
{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+26
View File
@@ -0,0 +1,26 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libodb-sqlite", "odb\sqlite\libodb-sqlite-vc8.vcproj", "{E4055842-E6F1-4305-9FD2-EF70A92290C9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Debug|Win32.ActiveCfg = Debug|Win32
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Debug|Win32.Build.0 = Debug|Win32
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Debug|x64.ActiveCfg = Debug|x64
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Debug|x64.Build.0 = Debug|x64
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Release|Win32.ActiveCfg = Release|Win32
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Release|Win32.Build.0 = Release|Win32
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Release|x64.ActiveCfg = Release|x64
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+26
View File
@@ -0,0 +1,26 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libodb-sqlite", "odb\sqlite\libodb-sqlite-vc9.vcproj", "{E4055842-E6F1-4305-9FD2-EF70A92290C9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Debug|Win32.ActiveCfg = Debug|Win32
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Debug|Win32.Build.0 = Debug|Win32
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Debug|x64.ActiveCfg = Debug|x64
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Debug|x64.Build.0 = Debug|x64
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Release|Win32.ActiveCfg = Release|Win32
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Release|Win32.Build.0 = Release|Win32
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Release|x64.ActiveCfg = Release|x64
{E4055842-E6F1-4305-9FD2-EF70A92290C9}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
+15
View File
@@ -0,0 +1,15 @@
# file : libodb-sqlite.pc.in
# copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
# license : GNU GPL v2; see accompanying LICENSE file
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libodb-sqlite
Description: Object-relational mapping (ORM) system for C++, SQLite runtime library
URL: http://www.codesynthesis.com/products/odb/
Version: @VERSION@
Libs: -L${libdir} -lodb-sqlite
Cflags: -I${includedir}
+10249
View File
File diff suppressed because it is too large Load Diff
+259
View File
@@ -0,0 +1,259 @@
dnl
dnl NOTE: This file was modified. See the comments starting with 'CS:'
dnl for more information. In particular, it was changed to use C++
dnl instead of C.
dnl
dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
dnl
dnl @summary figure out how to build C++ programs using POSIX threads
dnl
dnl This macro figures out how to build C++ programs using POSIX threads.
dnl It sets the PTHREAD_LIBS output variable to the threads library and
dnl linker flags, and the PTHREAD_CXXFLAGS output variable to any special
dnl C++ compiler flags that are needed. (The user can also force certain
dnl compiler flags/libs to be tested by setting these environment
dnl variables.)
dnl
dnl Also sets PTHREAD_CXX to any special C++ compiler that is needed for
dnl multi-threaded programs (defaults to the value of CXX otherwise).
dnl (This is necessary on AIX to use the special xlC_r compiler alias.)
dnl
dnl NOTE: You are assumed to not only compile your program with these
dnl flags, but also link it with them as well. e.g. you should link
dnl with $PTHREAD_CXX $CXXFLAGS $PTHREAD_CXXFLAGS $LDFLAGS ... $PTHREAD_LIBS
dnl $LIBS
dnl
dnl If you are only building threads programs, you may wish to use
dnl these variables in your default LIBS, CXXFLAGS, and CXX:
dnl
dnl LIBS="$PTHREAD_LIBS $LIBS"
dnl CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
dnl CXX="$PTHREAD_CXX"
dnl
dnl In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
dnl constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
dnl that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
dnl
dnl ACTION-IF-FOUND is a list of shell commands to run if a threads
dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands to
dnl run it if it is not found. If ACTION-IF-FOUND is not specified, the
dnl default action will define HAVE_PTHREAD.
dnl
dnl Please let the authors know if this macro fails on any platform, or
dnl if you have any other suggestions or comments. This macro was based
dnl on work by SGJ on autoconf scripts for FFTW (www.fftw.org) (with
dnl help from M. Frigo), as well as ac_pthread and hb_pthread macros
dnl posted by Alejandro Forero Cuervo to the autoconf macro repository.
dnl We are also grateful for the helpful feedback of numerous users.
dnl
dnl @category InstalledPackages
dnl @author Steven G. Johnson <stevenj@alum.mit.edu>
dnl @version 2006-05-29
dnl @license GPLWithACException
AC_DEFUN([ACX_PTHREAD], [
AC_REQUIRE([AC_CANONICAL_HOST])
AC_LANG_SAVE
AC_LANG(C++)
acx_pthread_ok=no
# We used to check for pthread.h first, but this fails if pthread.h
# requires special compiler flags (e.g. on True64 or Sequent).
# It gets checked for in the link test anyway.
# First of all, check if the user has set any of the PTHREAD_LIBS,
# etcetera environment variables, and if threads linking works using
# them:
if test x"$PTHREAD_LIBS$PTHREAD_CXXFLAGS" != x; then
save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
save_LIBS="$LIBS"
LIBS="$PTHREAD_LIBS $LIBS"
AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS])
AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
AC_MSG_RESULT($acx_pthread_ok)
if test x"$acx_pthread_ok" = xno; then
PTHREAD_LIBS=""
PTHREAD_CXXFLAGS=""
fi
LIBS="$save_LIBS"
CXXFLAGS="$save_CXXFLAGS"
fi
# We must check for the threads library under a number of different
# names; the ordering is very important because some systems
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
# libraries is broken (non-POSIX).
# Create a list of thread flags to try. Items starting with a "-" are
# C compiler flags, and other items are library names, except for "none"
# which indicates that we try without any flags at all, and "pthread-config"
# which is a program returning the flags for the Pth emulation library.
# CS: On GNU/Linux with gcc both -pthread and -lpthread are valid.
# However, libtool links libraries with -nostdlib which results in
# -pthread being stripped from the linker command line. To resolve
# this we move pthread from after -mthreads to after pthreads.
#
acx_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
# The ordering *is* (sometimes) important. Some notes on the
# individual items follow:
# pthreads: AIX (must check this before -lpthread)
# none: in case threads are in libc; should be tried before -Kthread and
# other compiler flags to prevent continual compiler warnings
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
# -pthreads: Solaris/gcc
# -mthreads: Mingw32/gcc, Lynx/gcc
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
# doesn't hurt to check since this sometimes defines pthreads too;
# also defines -D_REENTRANT)
# ... -mt is also the pthreads flag for HP/aCC
# pthread: Linux, etcetera
# --thread-safe: KAI C++
# pthread-config: use pthread-config program (for GNU Pth library)
case "${host_cpu}-${host_os}" in
*solaris*)
# On Solaris (at least, for some versions), libc contains stubbed
# (non-functional) versions of the pthreads routines, so link-based
# tests will erroneously succeed. (We need to link with -pthreads/-mt/
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
# a function called by this macro, so we could check for that, but
# who knows whether they'll stub that too in a future libc.) So,
# we'll just look for -pthreads and -lpthread first:
# CS: Move -mt to the front of the list; Sun CC will use -mt,
# gcc will use -pthreads.
#
acx_pthread_flags="-mt -pthreads pthread -pthread $acx_pthread_flags"
;;
esac
if test x"$acx_pthread_ok" = xno; then
for flag in $acx_pthread_flags; do
case $flag in
none)
AC_MSG_CHECKING([whether pthreads work without any flags])
;;
-*)
AC_MSG_CHECKING([whether pthreads work with $flag])
PTHREAD_CXXFLAGS="$flag"
;;
pthread-config)
AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
if test x"$acx_pthread_config" = xno; then continue; fi
PTHREAD_CXXFLAGS="`pthread-config --cflags`"
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
;;
*)
AC_MSG_CHECKING([for the pthreads library -l$flag])
PTHREAD_LIBS="-l$flag"
;;
esac
save_LIBS="$LIBS"
save_CXXFLAGS="$CXXFLAGS"
LIBS="$PTHREAD_LIBS $LIBS"
CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
# Check for various functions. We must include pthread.h,
# since some functions may be macros. (On the Sequent, we
# need a special flag -Kthread to make this header compile.)
# We check for pthread_join because it is in -lpthread on IRIX
# while pthread_create is in libc. We check for pthread_attr_init
# due to DEC craziness with -lpthreads. We check for
# pthread_cleanup_push because it is one of the few pthread
# functions on Solaris that doesn't have a non-functional libc stub.
# We try pthread_create on general principles.
#
AC_TRY_LINK([#include <pthread.h>],
[pthread_t th; pthread_join(th, 0);
pthread_attr_init(0); pthread_cleanup_push(0, 0);
pthread_create(0,0,0,0); pthread_cleanup_pop(0);],
[acx_pthread_ok=yes])
LIBS="$save_LIBS"
CXXFLAGS="$save_CXXFLAGS"
AC_MSG_RESULT($acx_pthread_ok)
if test "x$acx_pthread_ok" = xyes; then
break;
fi
PTHREAD_LIBS=""
PTHREAD_CXXFLAGS=""
done
fi
# Various other checks:
if test "x$acx_pthread_ok" = xyes; then
save_LIBS="$LIBS"
LIBS="$PTHREAD_LIBS $LIBS"
save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
dnl # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
dnl AC_MSG_CHECKING([for joinable pthread attribute])
dnl attr_name=unknown
dnl for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
dnl AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
dnl [attr_name=$attr; break])
dnl done
dnl AC_MSG_RESULT($attr_name)
dnl if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
dnl AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
dnl [Define to necessary symbol if this constant
dnl uses a non-standard name on your system.])
dnl fi
AC_MSG_CHECKING([if more special flags are required for pthreads])
flag=no
case "${host_cpu}-${host_os}" in
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
# CS: Add _REENTRANT in Linux to emulate -pthread.
#
*-linux* | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
esac
AC_MSG_RESULT(${flag})
if test "x$flag" != xno; then
PTHREAD_CXXFLAGS="$flag $PTHREAD_CXXFLAGS"
fi
LIBS="$save_LIBS"
CXXFLAGS="$save_CXXFLAGS"
dnl # More AIX lossage: must compile with xlC_r
dnl if test x"$GXX" != xyes; then
dnl AC_CHECK_PROGS(PTHREAD_CXX, xlC_r, ${CXX})
dnl else
dnl PTHREAD_CXX=$CXX
dnl fi
else
PTHREAD_CXX="$CXX"
fi
AC_SUBST(PTHREAD_LIBS)
AC_SUBST(PTHREAD_CXXFLAGS)
AC_SUBST(PTHREAD_CXX)
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
if test x"$acx_pthread_ok" = xyes; then
ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
:
else
acx_pthread_ok=no
$2
fi
AC_LANG_RESTORE
])dnl ACX_PTHREAD
+25
View File
@@ -0,0 +1,25 @@
dnl file : m4/disable-rpath.m4
dnl copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
dnl license : GNU GPL v2; see accompanying LICENSE file
dnl
AC_DEFUN([DISABLE_RPATH],[
AC_MSG_CHECKING([whether to use rpath])
AC_ARG_ENABLE(
[rpath],
[AC_HELP_STRING([--disable-rpath], [patch libtool to not use rpath])],
[libtool_rpath="$enable_rpath"],
[libtool_rpath="yes"])
AC_MSG_RESULT($libtool_rpath)
# Patch libtool to not use rpath if requested.
#
AC_CONFIG_COMMANDS(
[libtool-rpath-patch],
[if test "$libtool_use_rpath" = "no"; then
sed < libtool > libtool-2 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_NO_RPATH__ "/'
mv libtool-2 libtool
chmod 755 libtool
fi],
[libtool_use_rpath=$libtool_rpath])
])dnl
+82
View File
@@ -0,0 +1,82 @@
dnl file : m4/libodb.m4
dnl copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
dnl license : GNU GPL v2; see accompanying LICENSE file
dnl
dnl LIBODB([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
dnl
dnl
AC_DEFUN([LIBODB], [
libodb_found=no
AC_ARG_WITH(
[libodb],
[AC_HELP_STRING([--with-libodb=DIR],[location of libodb build directory])],
[libodb_dir=${withval}],
[libodb_dir=])
AC_MSG_CHECKING([for libodb])
# If libodb_dir was given, add the necessary preprocessor and linker flags.
#
if test x"$libodb_dir" != x; then
save_CPPFLAGS="$CPPFLAGS"
save_LDFLAGS="$LDFLAGS"
AS_SET_CATFILE([abs_libodb_dir], [$ac_pwd], [$libodb_dir])
CPPFLAGS="$CPPFLAGS -I$abs_libodb_dir"
LDFLAGS="$LDFLAGS -L$abs_libodb_dir/odb"
fi
save_LIBS="$LIBS"
LIBS="-lodb $LIBS"
CXX_LIBTOOL_LINK_IFELSE([
AC_LANG_SOURCE([
#include <odb/exception.hxx>
void
f ()
{
}
const char*
g ()
{
try
{
f ();
}
catch (const odb::exception& e)
{
return e.what ();
}
return 0;
}
int
main ()
{
const char* m (g ());
return m != 0;
}
])],
[libodb_found=yes])
if test x"$libodb_found" = xno; then
LIBS="$save_LIBS"
if test x"$libodb_dir" != x; then
CPPFLAGS="$save_CPPFLAGS"
LDFLAGS="$save_LDFLAGS"
fi
fi
if test x"$libodb_found" = xyes; then
AC_MSG_RESULT([yes])
$1
else
AC_MSG_RESULT([no])
$2
fi
])dnl
+68
View File
@@ -0,0 +1,68 @@
dnl file : m4/libsqlite.m4
dnl copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
dnl license : GNU GPL v2; see accompanying LICENSE file
dnl
dnl LIBSQLITE([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
dnl
dnl Also sets libsqlite_unlock_notify to yes if sqlite3_unlock_notify()
dnl functionality is available.
dnl
AC_DEFUN([LIBSQLITE], [
libsqlite_found=no
libsqlite_unlock_notify=no
AC_MSG_CHECKING([for libsqlite3])
save_LIBS="$LIBS"
LIBS="-lsqlite3 $LIBS"
CXX_LIBTOOL_LINK_IFELSE([
AC_LANG_SOURCE([
#include <sqlite3.h>
int
main ()
{
sqlite3* handle;
sqlite3_open ("", &handle);
sqlite3_stmt* stmt;
sqlite3_prepare (handle, "", 0, &stmt, 0);
sqlite3_finalize (stmt);
sqlite3_close (handle);
}
])],
[
libsqlite_found=yes
])
if test x"$libsqlite_found" = xno; then
LIBS="$save_LIBS"
fi
# Check for unlock_notify.
#
if test x"$libsqlite_found" = xyes; then
CXX_LIBTOOL_LINK_IFELSE([
AC_LANG_SOURCE([
#include <sqlite3.h>
int
main ()
{
sqlite3* handle (0);
sqlite3_unlock_notify (handle, 0, 0);
}
])],
[
libsqlite_unlock_notify=yes
])
fi
if test x"$libsqlite_found" = xyes; then
AC_MSG_RESULT([yes])
$1
else
AC_MSG_RESULT([no])
$2
fi
])dnl
+46
View File
@@ -0,0 +1,46 @@
dnl file : m4/libtool-link.m4
dnl copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
dnl license : GNU GPL v2; see accompanying LICENSE file
dnl
dnl
dnl CXX_LIBTOOL_LINK_IFELSE (input, [action-if-true], [action-if-false])
dnl
dnl Similar to AC_LINK_IFELSE except it uses libtool to perform the
dnl linking and it does this using the C++ compiler.
dnl
AC_DEFUN([CXX_LIBTOOL_LINK_IFELSE],[
AC_LANG_SAVE
AC_LANG(C++)
if test -d .libs; then
delete_libs_dir=no
else
delete_libs_dir=yes
fi
AC_COMPILE_IFELSE([$1],
[
ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&AS_MESSAGE_LOG_FD'
if _AC_DO_VAR(ac_try); then
libtool_link_ok=yes
else
libtool_link_ok=no
fi
],
[
libtool_link_ok=no
])
if test x"$delete_libs_dir" = xyes; then
rm -rf .libs
fi
if test x"$libtool_link_ok" = xyes; then
[$2]
:
else
[$3]
:
fi
AC_LANG_RESTORE])dnl
+7991
View File
File diff suppressed because it is too large Load Diff
+384
View File
@@ -0,0 +1,384 @@
# Helper functions for option handling. -*- Autoconf -*-
#
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
# Inc.
# Written by Gary V. Vaughan, 2004
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# serial 7 ltoptions.m4
# This is to help aclocal find these macros, as it can't see m4_define.
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
# ------------------------------------------
m4_define([_LT_MANGLE_OPTION],
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
# ---------------------------------------
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
# saved as a flag.
m4_define([_LT_SET_OPTION],
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
_LT_MANGLE_DEFUN([$1], [$2]),
[m4_warning([Unknown $1 option `$2'])])[]dnl
])
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
# ------------------------------------------------------------
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
m4_define([_LT_IF_OPTION],
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
# -------------------------------------------------------
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
# are set.
m4_define([_LT_UNLESS_OPTIONS],
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
[m4_define([$0_found])])])[]dnl
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
])[]dnl
])
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
# ----------------------------------------
# OPTION-LIST is a space-separated list of Libtool options associated
# with MACRO-NAME. If any OPTION has a matching handler declared with
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
# the unknown option and exit.
m4_defun([_LT_SET_OPTIONS],
[# Set options
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
[_LT_SET_OPTION([$1], _LT_Option)])
m4_if([$1],[LT_INIT],[
dnl
dnl Simply set some default values (i.e off) if boolean options were not
dnl specified:
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
])
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
])
dnl
dnl If no reference was made to various pairs of opposing options, then
dnl we run the default mode handler for the pair. For example, if neither
dnl `shared' nor `disable-shared' was passed, we enable building of shared
dnl archives by default:
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
[_LT_ENABLE_FAST_INSTALL])
])
])# _LT_SET_OPTIONS
## --------------------------------- ##
## Macros to handle LT_INIT options. ##
## --------------------------------- ##
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
# -----------------------------------------
m4_define([_LT_MANGLE_DEFUN],
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
# -----------------------------------------------
m4_define([LT_OPTION_DEFINE],
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
])# LT_OPTION_DEFINE
# dlopen
# ------
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
])
AU_DEFUN([AC_LIBTOOL_DLOPEN],
[_LT_SET_OPTION([LT_INIT], [dlopen])
AC_DIAGNOSE([obsolete],
[$0: Remove this warning and the call to _LT_SET_OPTION when you
put the `dlopen' option into LT_INIT's first parameter.])
])
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
# win32-dll
# ---------
# Declare package support for building win32 dll's.
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
[enable_win32_dll=yes
case $host in
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
AC_CHECK_TOOL(AS, as, false)
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
AC_CHECK_TOOL(OBJDUMP, objdump, false)
;;
esac
test -z "$AS" && AS=as
_LT_DECL([], [AS], [1], [Assembler program])dnl
test -z "$DLLTOOL" && DLLTOOL=dlltool
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
test -z "$OBJDUMP" && OBJDUMP=objdump
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
])# win32-dll
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
_LT_SET_OPTION([LT_INIT], [win32-dll])
AC_DIAGNOSE([obsolete],
[$0: Remove this warning and the call to _LT_SET_OPTION when you
put the `win32-dll' option into LT_INIT's first parameter.])
])
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
# _LT_ENABLE_SHARED([DEFAULT])
# ----------------------------
# implement the --enable-shared flag, and supports the `shared' and
# `disable-shared' LT_INIT options.
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
m4_define([_LT_ENABLE_SHARED],
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
AC_ARG_ENABLE([shared],
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
[p=${PACKAGE-default}
case $enableval in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
for pkg in $enableval; do
IFS="$lt_save_ifs"
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$lt_save_ifs"
;;
esac],
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
_LT_DECL([build_libtool_libs], [enable_shared], [0],
[Whether or not to build shared libraries])
])# _LT_ENABLE_SHARED
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
# Old names:
AC_DEFUN([AC_ENABLE_SHARED],
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
])
AC_DEFUN([AC_DISABLE_SHARED],
[_LT_SET_OPTION([LT_INIT], [disable-shared])
])
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
# _LT_ENABLE_STATIC([DEFAULT])
# ----------------------------
# implement the --enable-static flag, and support the `static' and
# `disable-static' LT_INIT options.
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
m4_define([_LT_ENABLE_STATIC],
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
AC_ARG_ENABLE([static],
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
[p=${PACKAGE-default}
case $enableval in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
for pkg in $enableval; do
IFS="$lt_save_ifs"
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$lt_save_ifs"
;;
esac],
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
_LT_DECL([build_old_libs], [enable_static], [0],
[Whether or not to build static libraries])
])# _LT_ENABLE_STATIC
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
# Old names:
AC_DEFUN([AC_ENABLE_STATIC],
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
])
AC_DEFUN([AC_DISABLE_STATIC],
[_LT_SET_OPTION([LT_INIT], [disable-static])
])
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
# ----------------------------------
# implement the --enable-fast-install flag, and support the `fast-install'
# and `disable-fast-install' LT_INIT options.
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
m4_define([_LT_ENABLE_FAST_INSTALL],
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
AC_ARG_ENABLE([fast-install],
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
[p=${PACKAGE-default}
case $enableval in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
for pkg in $enableval; do
IFS="$lt_save_ifs"
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$lt_save_ifs"
;;
esac],
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
_LT_DECL([fast_install], [enable_fast_install], [0],
[Whether or not to optimize for fast installation])dnl
])# _LT_ENABLE_FAST_INSTALL
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
# Old names:
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
AC_DIAGNOSE([obsolete],
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
the `fast-install' option into LT_INIT's first parameter.])
])
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
AC_DIAGNOSE([obsolete],
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
the `disable-fast-install' option into LT_INIT's first parameter.])
])
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
# _LT_WITH_PIC([MODE])
# --------------------
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
# LT_INIT options.
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
m4_define([_LT_WITH_PIC],
[AC_ARG_WITH([pic],
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
[lt_p=${PACKAGE-default}
case $withval in
yes|no) pic_mode=$withval ;;
*)
pic_mode=default
# Look at the argument we got. We use all the common list separators.
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
for lt_pkg in $withval; do
IFS="$lt_save_ifs"
if test "X$lt_pkg" = "X$lt_p"; then
pic_mode=yes
fi
done
IFS="$lt_save_ifs"
;;
esac],
[pic_mode=default])
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
])# _LT_WITH_PIC
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
# Old name:
AU_DEFUN([AC_LIBTOOL_PICMODE],
[_LT_SET_OPTION([LT_INIT], [pic-only])
AC_DIAGNOSE([obsolete],
[$0: Remove this warning and the call to _LT_SET_OPTION when you
put the `pic-only' option into LT_INIT's first parameter.])
])
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
## ----------------- ##
## LTDL_INIT Options ##
## ----------------- ##
m4_define([_LTDL_MODE], [])
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
[m4_define([_LTDL_MODE], [nonrecursive])])
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
[m4_define([_LTDL_MODE], [recursive])])
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
[m4_define([_LTDL_MODE], [subproject])])
m4_define([_LTDL_TYPE], [])
LT_OPTION_DEFINE([LTDL_INIT], [installable],
[m4_define([_LTDL_TYPE], [installable])])
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
[m4_define([_LTDL_TYPE], [convenience])])
+123
View File
@@ -0,0 +1,123 @@
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
#
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
# Written by Gary V. Vaughan, 2004
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# serial 6 ltsugar.m4
# This is to help aclocal find these macros, as it can't see m4_define.
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
# lt_join(SEP, ARG1, [ARG2...])
# -----------------------------
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
# associated separator.
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
# versions in m4sugar had bugs.
m4_define([lt_join],
[m4_if([$#], [1], [],
[$#], [2], [[$2]],
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
m4_define([_lt_join],
[m4_if([$#$2], [2], [],
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
# lt_car(LIST)
# lt_cdr(LIST)
# ------------
# Manipulate m4 lists.
# These macros are necessary as long as will still need to support
# Autoconf-2.59 which quotes differently.
m4_define([lt_car], [[$1]])
m4_define([lt_cdr],
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
[$#], 1, [],
[m4_dquote(m4_shift($@))])])
m4_define([lt_unquote], $1)
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
# ------------------------------------------
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
# Note that neither SEPARATOR nor STRING are expanded; they are appended
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
# than defined and empty).
#
# This macro is needed until we can rely on Autoconf 2.62, since earlier
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
m4_define([lt_append],
[m4_define([$1],
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
# ----------------------------------------------------------
# Produce a SEP delimited list of all paired combinations of elements of
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
# has the form PREFIXmINFIXSUFFIXn.
# Needed until we can rely on m4_combine added in Autoconf 2.62.
m4_define([lt_combine],
[m4_if(m4_eval([$# > 3]), [1],
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
[[m4_foreach([_Lt_prefix], [$2],
[m4_foreach([_Lt_suffix],
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
# -----------------------------------------------------------------------
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
m4_define([lt_if_append_uniq],
[m4_ifdef([$1],
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
[lt_append([$1], [$2], [$3])$4],
[$5])],
[lt_append([$1], [$2], [$3])$4])])
# lt_dict_add(DICT, KEY, VALUE)
# -----------------------------
m4_define([lt_dict_add],
[m4_define([$1($2)], [$3])])
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
# --------------------------------------------
m4_define([lt_dict_add_subkey],
[m4_define([$1($2:$3)], [$4])])
# lt_dict_fetch(DICT, KEY, [SUBKEY])
# ----------------------------------
m4_define([lt_dict_fetch],
[m4_ifval([$3],
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
# -----------------------------------------------------------------
m4_define([lt_if_dict_fetch],
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
[$5],
[$6])])
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
# --------------------------------------------------------------
m4_define([lt_dict_filter],
[m4_if([$5], [], [],
[lt_join(m4_quote(m4_default([$4], [[, ]])),
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
])
+23
View File
@@ -0,0 +1,23 @@
# ltversion.m4 -- version numbers -*- Autoconf -*-
#
# Copyright (C) 2004 Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# @configure_input@
# serial 3337 ltversion.m4
# This file is part of GNU Libtool
m4_define([LT_PACKAGE_VERSION], [2.4.2])
m4_define([LT_PACKAGE_REVISION], [1.3337])
AC_DEFUN([LTVERSION_VERSION],
[macro_version='2.4.2'
macro_revision='1.3337'
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
_LT_DECL(, macro_revision, 0)
])
+98
View File
@@ -0,0 +1,98 @@
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
#
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004.
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# serial 5 lt~obsolete.m4
# These exist entirely to fool aclocal when bootstrapping libtool.
#
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
# which have later been changed to m4_define as they aren't part of the
# exported API, or moved to Autoconf or Automake where they belong.
#
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
# using a macro with the same name in our local m4/libtool.m4 it'll
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
# and doesn't know about Autoconf macros at all.)
#
# So we provide this file, which has a silly filename so it's always
# included after everything else. This provides aclocal with the
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
# because those macros already exist, or will be overwritten later.
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
#
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
# Yes, that means every name once taken will need to remain here until
# we give up compatibility with versions before 1.7, at which point
# we need to keep only those names which we still refer to.
# This is to help aclocal find these macros, as it can't see m4_define.
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
+12
View File
@@ -0,0 +1,12 @@
dnl file : m4/pkgconfig.m4
dnl copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
dnl license : GNU GPL v2; see accompanying LICENSE file
dnl
AC_DEFUN([PKGCONFIG],[
AC_ARG_WITH(
[pkgconfigdir],
[AC_HELP_STRING([--with-pkgconfigdir=DIR],[location of pkgconfig dir (default is libdir/pkgconfig)])],
[pkgconfigdir=${withval}],
[pkgconfigdir='${libdir}/pkgconfig'])
AC_SUBST([pkgconfigdir])
])dnl
+18
View File
@@ -0,0 +1,18 @@
dnl file : m4/static-lib.m4
dnl copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
dnl license : GNU GPL v2; see accompanying LICENSE file
dnl
dnl STATIC_LIB(MACRO, DESCRIPTION)
dnl
dnl Define MACRO if we are on MinGW and are only building static library.
dnl
AC_DEFUN([STATIC_LIB],
[
if test x$enable_shared = xno; then
case $host_os in
mingw*)
AC_DEFINE([$1], [1], [$2])
;;
esac
fi
])dnl
+69
View File
@@ -0,0 +1,69 @@
dnl file : m4/threads.m4
dnl copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
dnl license : GNU GPL v2; see accompanying LICENSE file
dnl
AC_DEFUN([THREADS],[
threads_thread_keyword=no
AC_ARG_ENABLE(
[threads],
AS_HELP_STRING([--disable-threads], [disable threads (enabled by default)]),
[AS_IF([test x"$enableval" = xno], [threads=none], [threads=check])],
[threads=check])
# If thread support is not disabled by the user, figure out what we can use.
#
if test x$threads = xcheck; then
case $host_os in
windows* | mingw*)
case $host_os in
mingw*)
CXXFLAGS="$CXXFLAGS -mthreads"
;;
esac
# Newer versions of GCC can be configured to use either Win32 or POSIX
# threads. It appears that -mthreads should be used in both cases but
# if the model is POSIX then GCC will also link -lpthread by default.
# Use that fact to test which model we have.
#
AC_TRY_LINK([#include <pthread.h>],
[pthread_create(0,0,0,0);],
[threads=posix],
[threads=win32])
;;
*)
ACX_PTHREAD
if test x$acx_pthread_ok = xyes; then
threads=posix
LIBS="$LIBS $PTHREAD_LIBS"
CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
# Check if we can use the __thread keyword.
#
AC_MSG_CHECKING([for __thread keyword])
CXX_LIBTOOL_LINK_IFELSE([
AC_LANG_SOURCE([
__thread int tls_var;
int
main ()
{
tls_var = 0;
}
])],
[threads_thread_keyword=yes])
AC_MSG_RESULT([$threads_thread_keyword])
fi
;;
esac
fi
if test x$threads = xcheck; then
AC_MSG_ERROR([thread support not available; use --disable-threads to force single-threaded mode])
fi
])dnl
+15
View File
@@ -0,0 +1,15 @@
# file : odb/sqlite/Makefile.am
# copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
# license : GNU GPL v2; see accompanying LICENSE file
lib_LTLIBRARIES = libodb-sqlite.la
libodb_sqlite_la_SOURCES = connection.cxx connection-factory.cxx database.cxx error.cxx exceptions.cxx prepared-query.cxx query.cxx query-dynamic.cxx query-const-expr.cxx simple-object-statements.cxx statement.cxx statements-base.cxx statement-cache.cxx tracer.cxx traits.cxx transaction.cxx transaction-impl.cxx details/options.cxx
odbsqliteincludedir = $(includedir)/odb/sqlite/
nobase_odbsqliteinclude_HEADERS = auto-handle.hxx binding.hxx connection-factory.hxx connection.hxx connection.ixx container-statements.hxx container-statements.txx database.hxx database.ixx details/config.hxx details/conversion.hxx details/export.hxx details/options.hxx details/options.ixx error.hxx exceptions.hxx forward.hxx no-id-object-result.hxx no-id-object-result.txx no-id-object-statements.hxx no-id-object-statements.txx polymorphic-object-result.hxx polymorphic-object-result.txx polymorphic-object-statements.hxx polymorphic-object-statements.txx prepared-query.hxx query-dynamic.hxx query-dynamic.ixx query-dynamic.txx query.hxx query.ixx query.txx section-statements.hxx section-statements.txx simple-object-result.hxx simple-object-result.txx simple-object-statements.hxx simple-object-statements.ixx simple-object-statements.txx sqlite-types.hxx statement-cache.hxx statement-cache.txx statement.hxx statements-base.hxx tracer.hxx traits-calls.hxx traits.hxx transaction-impl.hxx transaction-impl.ixx transaction.hxx transaction.ixx version.hxx view-result.hxx view-result.txx view-statements.hxx view-statements.txx
nobase_nodist_odbsqliteinclude_HEADERS = details/config.h
EXTRA_DIST = details/options.cli details/config.h.in libodb-sqlite-vc8.vcproj libodb-sqlite-vc9.vcproj libodb-sqlite-vc10.vcxproj libodb-sqlite-vc10.vcxproj.filters libodb-sqlite-vc11.vcxproj libodb-sqlite-vc11.vcxproj.filters libodb-sqlite-vc12.vcxproj libodb-sqlite-vc12.vcxproj.filters
AM_CPPFLAGS= -I'$(top_builddir)' -I'$(top_srcdir)' -DLIBODB_SQLITE_DYNAMIC_LIB
AM_LDFLAGS = -release 2.4 -no-undefined
+727
View File
@@ -0,0 +1,727 @@
# Makefile.in generated by automake 1.12.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2012 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
# file : odb/sqlite/Makefile.am
# copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
# license : GNU GPL v2; see accompanying LICENSE file
VPATH = @srcdir@
am__make_dryrun = \
{ \
am__dry=no; \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
*) \
for am__flg in $$MAKEFLAGS; do \
case $$am__flg in \
*=*|--*) ;; \
*n*) am__dry=yes; break;; \
esac; \
done;; \
esac; \
test $$am__dry = yes; \
}
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = odb/sqlite
DIST_COMMON = $(nobase_odbsqliteinclude_HEADERS) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(top_srcdir)/config/depcomp
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx-pthread.m4 \
$(top_srcdir)/m4/disable-rpath.m4 $(top_srcdir)/m4/libodb.m4 \
$(top_srcdir)/m4/libsqlite.m4 $(top_srcdir)/m4/libtool-link.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/pkgconfig.m4 \
$(top_srcdir)/m4/static-lib.m4 $(top_srcdir)/m4/threads.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = config.h $(top_builddir)/odb/sqlite/details/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(libdir)" \
"$(DESTDIR)$(odbsqliteincludedir)" \
"$(DESTDIR)$(odbsqliteincludedir)"
LTLIBRARIES = $(lib_LTLIBRARIES)
libodb_sqlite_la_LIBADD =
am__dirstamp = $(am__leading_dot)dirstamp
am_libodb_sqlite_la_OBJECTS = connection.lo connection-factory.lo \
database.lo error.lo exceptions.lo prepared-query.lo query.lo \
query-dynamic.lo query-const-expr.lo \
simple-object-statements.lo statement.lo statements-base.lo \
statement-cache.lo tracer.lo traits.lo transaction.lo \
transaction-impl.lo details/options.lo
libodb_sqlite_la_OBJECTS = $(am_libodb_sqlite_la_OBJECTS)
DEFAULT_INCLUDES =
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
$(LDFLAGS) -o $@
SOURCES = $(libodb_sqlite_la_SOURCES)
DIST_SOURCES = $(libodb_sqlite_la_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
HEADERS = $(nobase_nodist_odbsqliteinclude_HEADERS) \
$(nobase_odbsqliteinclude_HEADERS)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PTHREAD_CXX = @PTHREAD_CXX@
PTHREAD_CXXFLAGS = @PTHREAD_CXXFLAGS@
PTHREAD_LIBS = @PTHREAD_LIBS@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
acx_pthread_config = @acx_pthread_config@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
pkgconfigdir = @pkgconfigdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
lib_LTLIBRARIES = libodb-sqlite.la
libodb_sqlite_la_SOURCES = connection.cxx connection-factory.cxx database.cxx error.cxx exceptions.cxx prepared-query.cxx query.cxx query-dynamic.cxx query-const-expr.cxx simple-object-statements.cxx statement.cxx statements-base.cxx statement-cache.cxx tracer.cxx traits.cxx transaction.cxx transaction-impl.cxx details/options.cxx
odbsqliteincludedir = $(includedir)/odb/sqlite/
nobase_odbsqliteinclude_HEADERS = auto-handle.hxx binding.hxx \
connection-factory.hxx connection.hxx connection.ixx \
container-statements.hxx container-statements.txx database.hxx \
database.ixx details/config.hxx details/conversion.hxx \
details/export.hxx details/options.hxx details/options.ixx \
error.hxx exceptions.hxx forward.hxx no-id-object-result.hxx \
no-id-object-result.txx no-id-object-statements.hxx \
no-id-object-statements.txx polymorphic-object-result.hxx \
polymorphic-object-result.txx \
polymorphic-object-statements.hxx \
polymorphic-object-statements.txx prepared-query.hxx \
query-dynamic.hxx query-dynamic.ixx query-dynamic.txx \
query.hxx query.ixx query.txx section-statements.hxx \
section-statements.txx simple-object-result.hxx \
simple-object-result.txx simple-object-statements.hxx \
simple-object-statements.ixx simple-object-statements.txx \
sqlite-types.hxx statement-cache.hxx statement-cache.txx \
statement.hxx statements-base.hxx tracer.hxx traits-calls.hxx \
traits.hxx transaction-impl.hxx transaction-impl.ixx \
transaction.hxx transaction.ixx version.hxx view-result.hxx \
view-result.txx view-statements.hxx view-statements.txx
nobase_nodist_odbsqliteinclude_HEADERS = details/config.h
EXTRA_DIST = details/options.cli details/config.h.in libodb-sqlite-vc8.vcproj libodb-sqlite-vc9.vcproj libodb-sqlite-vc10.vcxproj libodb-sqlite-vc10.vcxproj.filters libodb-sqlite-vc11.vcxproj libodb-sqlite-vc11.vcxproj.filters libodb-sqlite-vc12.vcxproj libodb-sqlite-vc12.vcxproj.filters
AM_CPPFLAGS = -I'$(top_builddir)' -I'$(top_srcdir)' -DLIBODB_SQLITE_DYNAMIC_LIB
AM_LDFLAGS = -release 2.4 -no-undefined
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-am
.SUFFIXES:
.SUFFIXES: .cxx .lo .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign odb/sqlite/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --foreign odb/sqlite/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
config.h: stamp-h1
@if test ! -f $@; then rm -f stamp-h1; else :; fi
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
@rm -f stamp-h1
cd $(top_builddir) && $(SHELL) ./config.status odb/sqlite/config.h
$(srcdir)/config.h.in: $(am__configure_deps)
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
rm -f stamp-h1
touch $@
distclean-hdr:
-rm -f config.h stamp-h1
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
list2=; for p in $$list; do \
if test -f $$p; then \
list2="$$list2 $$p"; \
else :; fi; \
done; \
test -z "$$list2" || { \
echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
$(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
}
uninstall-libLTLIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
for p in $$list; do \
$(am__strip_dir) \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
done
clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
@list='$(lib_LTLIBRARIES)'; \
locs=`for p in $$list; do echo $$p; done | \
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
sort -u`; \
test -z "$$locs" || { \
echo rm -f $${locs}; \
rm -f $${locs}; \
}
details/$(am__dirstamp):
@$(MKDIR_P) details
@: > details/$(am__dirstamp)
details/$(DEPDIR)/$(am__dirstamp):
@$(MKDIR_P) details/$(DEPDIR)
@: > details/$(DEPDIR)/$(am__dirstamp)
details/options.lo: details/$(am__dirstamp) \
details/$(DEPDIR)/$(am__dirstamp)
libodb-sqlite.la: $(libodb_sqlite_la_OBJECTS) $(libodb_sqlite_la_DEPENDENCIES) $(EXTRA_libodb_sqlite_la_DEPENDENCIES)
$(CXXLINK) -rpath $(libdir) $(libodb_sqlite_la_OBJECTS) $(libodb_sqlite_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
-rm -f details/*.$(OBJEXT)
-rm -f details/*.lo
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/connection-factory.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/connection.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/database.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exceptions.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prepared-query.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/query-const-expr.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/query-dynamic.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/query.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple-object-statements.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statement-cache.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statement.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statements-base.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tracer.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/traits.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transaction-impl.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transaction.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@details/$(DEPDIR)/options.Plo@am__quote@
.cxx.o:
@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
.cxx.obj:
@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.cxx.lo:
@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
-rm -rf details/.libs details/_libs
install-nobase_nodist_odbsqliteincludeHEADERS: $(nobase_nodist_odbsqliteinclude_HEADERS)
@$(NORMAL_INSTALL)
@list='$(nobase_nodist_odbsqliteinclude_HEADERS)'; test -n "$(odbsqliteincludedir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(odbsqliteincludedir)'"; \
$(MKDIR_P) "$(DESTDIR)$(odbsqliteincludedir)" || exit 1; \
fi; \
$(am__nobase_list) | while read dir files; do \
xfiles=; for file in $$files; do \
if test -f "$$file"; then xfiles="$$xfiles $$file"; \
else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
test -z "$$xfiles" || { \
test "x$$dir" = x. || { \
echo " $(MKDIR_P) '$(DESTDIR)$(odbsqliteincludedir)/$$dir'"; \
$(MKDIR_P) "$(DESTDIR)$(odbsqliteincludedir)/$$dir"; }; \
echo " $(INSTALL_HEADER) $$xfiles '$(DESTDIR)$(odbsqliteincludedir)/$$dir'"; \
$(INSTALL_HEADER) $$xfiles "$(DESTDIR)$(odbsqliteincludedir)/$$dir" || exit $$?; }; \
done
uninstall-nobase_nodist_odbsqliteincludeHEADERS:
@$(NORMAL_UNINSTALL)
@list='$(nobase_nodist_odbsqliteinclude_HEADERS)'; test -n "$(odbsqliteincludedir)" || list=; \
$(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
dir='$(DESTDIR)$(odbsqliteincludedir)'; $(am__uninstall_files_from_dir)
install-nobase_odbsqliteincludeHEADERS: $(nobase_odbsqliteinclude_HEADERS)
@$(NORMAL_INSTALL)
@list='$(nobase_odbsqliteinclude_HEADERS)'; test -n "$(odbsqliteincludedir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(odbsqliteincludedir)'"; \
$(MKDIR_P) "$(DESTDIR)$(odbsqliteincludedir)" || exit 1; \
fi; \
$(am__nobase_list) | while read dir files; do \
xfiles=; for file in $$files; do \
if test -f "$$file"; then xfiles="$$xfiles $$file"; \
else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
test -z "$$xfiles" || { \
test "x$$dir" = x. || { \
echo " $(MKDIR_P) '$(DESTDIR)$(odbsqliteincludedir)/$$dir'"; \
$(MKDIR_P) "$(DESTDIR)$(odbsqliteincludedir)/$$dir"; }; \
echo " $(INSTALL_HEADER) $$xfiles '$(DESTDIR)$(odbsqliteincludedir)/$$dir'"; \
$(INSTALL_HEADER) $$xfiles "$(DESTDIR)$(odbsqliteincludedir)/$$dir" || exit $$?; }; \
done
uninstall-nobase_odbsqliteincludeHEADERS:
@$(NORMAL_UNINSTALL)
@list='$(nobase_odbsqliteinclude_HEADERS)'; test -n "$(odbsqliteincludedir)" || list=; \
$(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
dir='$(DESTDIR)$(odbsqliteincludedir)'; $(am__uninstall_files_from_dir)
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
set x; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS) $(LISP)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES) $(HEADERS) config.h
installdirs:
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(odbsqliteincludedir)" "$(DESTDIR)$(odbsqliteincludedir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-rm -f details/$(DEPDIR)/$(am__dirstamp)
-rm -f details/$(am__dirstamp)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
mostlyclean-am
distclean: distclean-am
-rm -rf ./$(DEPDIR) details/$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-hdr distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am: install-nobase_nodist_odbsqliteincludeHEADERS \
install-nobase_odbsqliteincludeHEADERS
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am: install-libLTLIBRARIES
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -rf ./$(DEPDIR) details/$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-libLTLIBRARIES \
uninstall-nobase_nodist_odbsqliteincludeHEADERS \
uninstall-nobase_odbsqliteincludeHEADERS
.MAKE: all install-am install-strip
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libLTLIBRARIES clean-libtool cscopelist ctags distclean \
distclean-compile distclean-generic distclean-hdr \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-libLTLIBRARIES install-man \
install-nobase_nodist_odbsqliteincludeHEADERS \
install-nobase_odbsqliteincludeHEADERS install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags uninstall uninstall-am uninstall-libLTLIBRARIES \
uninstall-nobase_nodist_odbsqliteincludeHEADERS \
uninstall-nobase_odbsqliteincludeHEADERS
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
+102
View File
@@ -0,0 +1,102 @@
// file : odb/sqlite/auto-handle.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_AUTO_HANDLE_HXX
#define ODB_SQLITE_AUTO_HANDLE_HXX
#include <odb/pre.hxx>
#include <cassert>
#include <sqlite3.h>
#include <odb/sqlite/version.hxx>
namespace odb
{
namespace sqlite
{
template <typename H>
struct handle_traits;
template <>
struct handle_traits<sqlite3>
{
static void
release (sqlite3* h)
{
if (sqlite3_close (h) == SQLITE_BUSY)
{
// Connection has outstanding prepared statements.
//
assert (false);
}
}
};
template <>
struct handle_traits<sqlite3_stmt>
{
static void
release (sqlite3_stmt* h)
{
sqlite3_finalize (h);
}
};
template <typename H>
class auto_handle
{
public:
auto_handle (H* h = 0)
: h_ (h)
{
}
~auto_handle ()
{
if (h_ != 0)
handle_traits<H>::release (h_);
}
H*
get () const
{
return h_;
}
void
reset (H* h = 0)
{
if (h_ != 0)
handle_traits<H>::release (h_);
h_ = h;
}
H*
release ()
{
H* h (h_);
h_ = 0;
return h;
}
operator H* () const
{
return h_;
}
private:
auto_handle (const auto_handle&);
auto_handle& operator= (const auto_handle&);
private:
H* h_;
};
}
}
#include <odb/post.hxx>
#endif // ODB_SQLITE_AUTO_HANDLE_HXX
+46
View File
@@ -0,0 +1,46 @@
// file : odb/sqlite/binding.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_BINDING_HXX
#define ODB_SQLITE_BINDING_HXX
#include <odb/pre.hxx>
#include <cstddef> // std::size_t
#include <odb/forward.hxx>
#include <odb/sqlite/sqlite-types.hxx>
#include <odb/sqlite/details/export.hxx>
namespace odb
{
namespace sqlite
{
class LIBODB_SQLITE_EXPORT binding
{
public:
typedef sqlite::bind bind_type;
binding (): bind (0), count (0), version (0) {}
binding (bind_type* b, std::size_t n)
: bind (b), count (n), version (0)
{
}
bind_type* bind;
std::size_t count;
std::size_t version;
private:
binding (const binding&);
binding& operator= (const binding&);
};
}
}
#include <odb/post.hxx>
#endif // ODB_SQLITE_BINDING_HXX
+71
View File
@@ -0,0 +1,71 @@
/* odb/sqlite/config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define if you have POSIX threads libraries and header files. */
#undef HAVE_PTHREAD
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Have sqlite3_unlock_notify. */
#undef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
/* Static library interface. */
#undef LIBODB_SQLITE_STATIC_LIB
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
+268
View File
@@ -0,0 +1,268 @@
// file : odb/sqlite/connection-factory.cxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <odb/details/lock.hxx>
#include <odb/sqlite/database.hxx>
#include <odb/sqlite/connection-factory.hxx>
#include <odb/sqlite/details/config.hxx> // LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
using namespace std;
namespace odb
{
using namespace details;
namespace sqlite
{
//
// connection_factory
//
connection_factory::
~connection_factory ()
{
}
//
// single_connection_factory
//
single_connection_factory::
~single_connection_factory ()
{
// If the connection is currently in use, wait for it to return to
// the factory.
//
lock l (mutex_);
}
single_connection_factory::single_connection_ptr
single_connection_factory::
create ()
{
return single_connection_ptr (new (shared) single_connection (*db_));
}
connection_ptr single_connection_factory::
connect ()
{
mutex_.lock ();
connection_->factory_ = this;
connection_ptr r (connection_);
connection_.reset ();
return r;
}
void single_connection_factory::
database (database_type& db)
{
db_ = &db;
connection_ = create ();
}
bool single_connection_factory::
release (single_connection* c)
{
c->factory_ = 0;
connection_.reset (inc_ref (c));
connection_->recycle ();
mutex_.unlock ();
return false;
}
//
// single_connection_factory::single_connection
//
single_connection_factory::single_connection::
single_connection (database_type& db, int extra_flags)
: connection (db, extra_flags), factory_ (0)
{
callback_.arg = this;
callback_.zero_counter = &zero_counter;
shared_base::callback_ = &callback_;
}
single_connection_factory::single_connection::
single_connection (database_type& db, sqlite3* handle)
: connection (db, handle), factory_ (0)
{
callback_.arg = this;
callback_.zero_counter = &zero_counter;
shared_base::callback_ = &callback_;
}
bool single_connection_factory::single_connection::
zero_counter (void* arg)
{
single_connection* c (static_cast<single_connection*> (arg));
return c->factory_ ? c->factory_->release (c) : true;
}
//
// new_connection_factory
//
connection_ptr new_connection_factory::
connect ()
{
return connection_ptr (
new (shared) connection (*db_, extra_flags_));
}
void new_connection_factory::
database (database_type& db)
{
db_ = &db;
// Unless explicitly disabled, enable shared cache.
//
#if SQLITE_VERSION_NUMBER >= 3006018 && defined(LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY)
if ((db_->flags () & SQLITE_OPEN_PRIVATECACHE) == 0)
extra_flags_ |= SQLITE_OPEN_SHAREDCACHE;
#endif
}
//
// connection_pool_factory
//
connection_pool_factory::pooled_connection_ptr connection_pool_factory::
create ()
{
return pooled_connection_ptr (
new (shared) pooled_connection (*db_, extra_flags_));
}
connection_pool_factory::
~connection_pool_factory ()
{
// Wait for all the connections currently in use to return to the pool.
//
lock l (mutex_);
while (in_use_ != 0)
{
waiters_++;
cond_.wait ();
waiters_--;
}
}
connection_ptr connection_pool_factory::
connect ()
{
lock l (mutex_);
while (true)
{
// See if we have a spare connection.
//
if (connections_.size () != 0)
{
shared_ptr<pooled_connection> c (connections_.back ());
connections_.pop_back ();
c->pool_ = this;
in_use_++;
return c;
}
// See if we can create a new one.
//
if(max_ == 0 || in_use_ < max_)
{
shared_ptr<pooled_connection> c (create ());
c->pool_ = this;
in_use_++;
return c;
}
// Wait until someone releases a connection.
//
waiters_++;
cond_.wait ();
waiters_--;
}
}
void connection_pool_factory::
database (database_type& db)
{
db_ = &db;
// Unless explicitly disabled, enable shared cache.
//
#if SQLITE_VERSION_NUMBER >= 3006018 && defined(LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY)
if ((db_->flags () & SQLITE_OPEN_PRIVATECACHE) == 0)
extra_flags_ |= SQLITE_OPEN_SHAREDCACHE;
#endif
if (min_ > 0)
{
connections_.reserve (min_);
for(size_t i (0); i < min_; ++i)
connections_.push_back (create ());
}
}
bool connection_pool_factory::
release (pooled_connection* c)
{
c->pool_ = 0;
lock l (mutex_);
// Determine if we need to keep or free this connection.
//
bool keep (waiters_ != 0 ||
min_ == 0 ||
(connections_.size () + in_use_ <= min_));
in_use_--;
if (keep)
{
connections_.push_back (pooled_connection_ptr (inc_ref (c)));
connections_.back ()->recycle ();
}
if (waiters_ != 0)
cond_.signal ();
return !keep;
}
//
// connection_pool_factory::pooled_connection
//
connection_pool_factory::pooled_connection::
pooled_connection (database_type& db, int extra_flags)
: connection (db, extra_flags), pool_ (0)
{
callback_.arg = this;
callback_.zero_counter = &zero_counter;
shared_base::callback_ = &callback_;
}
connection_pool_factory::pooled_connection::
pooled_connection (database_type& db, sqlite3* handle)
: connection (db, handle), pool_ (0)
{
callback_.arg = this;
callback_.zero_counter = &zero_counter;
shared_base::callback_ = &callback_;
}
bool connection_pool_factory::pooled_connection::
zero_counter (void* arg)
{
pooled_connection* c (static_cast<pooled_connection*> (arg));
return c->pool_ ? c->pool_->release (c) : true;
}
}
}
+237
View File
@@ -0,0 +1,237 @@
// file : odb/sqlite/connection-factory.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_CONNECTION_FACTORY_HXX
#define ODB_SQLITE_CONNECTION_FACTORY_HXX
#include <odb/pre.hxx>
#include <vector>
#include <cstddef> // std::size_t
#include <cassert>
#include <odb/details/mutex.hxx>
#include <odb/details/condition.hxx>
#include <odb/details/shared-ptr.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx>
#include <odb/sqlite/connection.hxx>
#include <odb/sqlite/details/export.hxx>
namespace odb
{
namespace sqlite
{
class LIBODB_SQLITE_EXPORT connection_factory
{
public:
virtual connection_ptr
connect () = 0;
public:
typedef sqlite::database database_type;
virtual void
database (database_type&) = 0;
virtual
~connection_factory ();
};
// Share a single connection.
//
class LIBODB_SQLITE_EXPORT single_connection_factory:
public connection_factory
{
public:
single_connection_factory (): db_ (0) {}
virtual connection_ptr
connect ();
virtual void
database (database_type&);
virtual
~single_connection_factory ();
private:
single_connection_factory (const single_connection_factory&);
single_connection_factory& operator= (const single_connection_factory&);
protected:
class LIBODB_SQLITE_EXPORT single_connection: public connection
{
public:
single_connection (database_type&, int extra_flags = 0);
single_connection (database_type&, sqlite3*);
private:
static bool
zero_counter (void*);
private:
friend class single_connection_factory;
shared_base::refcount_callback callback_;
// NULL factory value indicates that the connection is not in use.
//
single_connection_factory* factory_;
};
friend class single_connection;
typedef details::shared_ptr<single_connection> single_connection_ptr;
// This function is called when the factory needs to create the
// connection.
//
virtual single_connection_ptr
create ();
protected:
// Return true if the connection should be deleted, false otherwise.
//
bool
release (single_connection*);
protected:
database_type* db_;
details::mutex mutex_;
single_connection_ptr connection_;
};
// Create a new connection every time one is requested.
//
class LIBODB_SQLITE_EXPORT new_connection_factory:
public connection_factory
{
public:
new_connection_factory (): db_ (0), extra_flags_ (0) {}
virtual connection_ptr
connect ();
virtual void
database (database_type&);
private:
new_connection_factory (const new_connection_factory&);
new_connection_factory& operator= (const new_connection_factory&);
private:
database_type* db_;
int extra_flags_;
};
// Pool a number of connections.
//
class LIBODB_SQLITE_EXPORT connection_pool_factory:
public connection_factory
{
public:
// The max_connections argument specifies the maximum number of
// concurrent connections this pool will maintain. If this value
// is 0 then the pool will create a new connection every time all
// of the existing connections are in use.
//
// The min_connections argument specifies the minimum number of
// connections that should be maintained by the pool. If the
// number of connections maintained by the pool exceeds this
// number and there are no active waiters for a new connection,
// then the pool will release the excess connections. If this
// value is 0 then the pool will maintain all the connections
// that were ever created.
//
// The ping argument specifies whether to ping the connection to
// make sure it is still alive before returning it to the caller.
//
connection_pool_factory (std::size_t max_connections = 0,
std::size_t min_connections = 0)
: max_ (max_connections),
min_ (min_connections),
extra_flags_ (0),
in_use_ (0),
waiters_ (0),
db_ (0),
cond_ (mutex_)
{
// max_connections == 0 means unlimited.
//
assert (max_connections == 0 || max_connections >= min_connections);
}
virtual connection_ptr
connect ();
virtual void
database (database_type&);
virtual
~connection_pool_factory ();
private:
connection_pool_factory (const connection_pool_factory&);
connection_pool_factory& operator= (const connection_pool_factory&);
protected:
class LIBODB_SQLITE_EXPORT pooled_connection: public connection
{
public:
pooled_connection (database_type&, int extra_flags = 0);
pooled_connection (database_type&, sqlite3*);
private:
static bool
zero_counter (void*);
private:
friend class connection_pool_factory;
shared_base::refcount_callback callback_;
// NULL pool value indicates that the connection is not in use.
//
connection_pool_factory* pool_;
};
friend class pooled_connection;
typedef details::shared_ptr<pooled_connection> pooled_connection_ptr;
typedef std::vector<pooled_connection_ptr> connections;
// This function is called whenever the pool needs to create a new
// connection.
//
virtual pooled_connection_ptr
create ();
protected:
// Return true if the connection should be deleted, false otherwise.
//
bool
release (pooled_connection*);
protected:
const std::size_t max_;
const std::size_t min_;
int extra_flags_;
std::size_t in_use_; // Number of connections currently in use.
std::size_t waiters_; // Number of threads waiting for a connection.
database_type* db_;
connections connections_;
details::mutex mutex_;
details::condition cond_;
};
}
}
#include <odb/post.hxx>
#endif // ODB_SQLITE_CONNECTION_FACTORY_HXX
+200
View File
@@ -0,0 +1,200 @@
// file : odb/sqlite/connection.cxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <new> // std::bad_alloc
#include <string>
#include <cassert>
#include <odb/details/lock.hxx>
#include <odb/sqlite/database.hxx>
#include <odb/sqlite/connection.hxx>
#include <odb/sqlite/transaction.hxx>
#include <odb/sqlite/statement.hxx>
#include <odb/sqlite/statement-cache.hxx>
#include <odb/sqlite/prepared-query.hxx>
#include <odb/sqlite/error.hxx>
#include <odb/sqlite/exceptions.hxx> // deadlock
#include <odb/sqlite/details/config.hxx> // LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
using namespace std;
extern "C" void
odb_sqlite_connection_unlock_callback (void**, int);
namespace odb
{
namespace sqlite
{
connection::
connection (database_type& db, int extra_flags)
: odb::connection (db),
db_ (db),
unlock_cond_ (unlock_mutex_),
statements_ (0)
{
int f (db.flags () | extra_flags);
const string& n (db.name ());
// If we are opening a temporary database, then add the create flag.
//
if (n.empty () || n == ":memory:")
f |= SQLITE_OPEN_CREATE;
// A connection can only be used by a single thread at a time. So
// disable locking in SQLite unless explicitly requested.
//
#if defined(SQLITE_OPEN_NOMUTEX)
if ((f & SQLITE_OPEN_FULLMUTEX) == 0)
f |= SQLITE_OPEN_NOMUTEX;
#endif
sqlite3* h (0);
// sqlite3_open_v2() was only addedin SQLite 3.5.0.
//
#if SQLITE_VERSION_NUMBER >= 3005000
const string& vfs (db.vfs ());
int e (
sqlite3_open_v2 (
n.c_str (), &h, f, (vfs.empty () ? 0 : vfs.c_str ())));
#else
// Readonly opening not supported in SQLite earlier than 3.5.0.
//
assert ((f & SQLITE_OPEN_READONLY) == 0);
int e (sqlite3_open (n.c_str (), &h));
#endif
handle_.reset (h);
if (e != SQLITE_OK)
{
if (handle_ == 0)
throw bad_alloc ();
translate_error (e, *this);
}
init ();
}
connection::
connection (database_type& db, sqlite3* handle)
: odb::connection (db),
db_ (db),
handle_ (handle),
unlock_cond_ (unlock_mutex_),
statements_ (0)
{
init ();
}
void connection::
init ()
{
// Enable/disable foreign key constraints.
//
generic_statement st (
*this,
db_.foreign_keys ()
? "PRAGMA foreign_keys=ON"
: "PRAGMA foreign_keys=OFF",
db_.foreign_keys () ? 22 : 23);
st.execute ();
// Create statement cache.
//
statement_cache_.reset (new statement_cache_type (*this));
}
connection::
~connection ()
{
// Destroy prepared query statements before freeing the connections.
//
recycle ();
clear_prepared_map ();
}
transaction_impl* connection::
begin ()
{
return new transaction_impl (
connection_ptr (inc_ref (this)), transaction_impl::deferred);
}
transaction_impl* connection::
begin_immediate ()
{
return new transaction_impl (
connection_ptr (inc_ref (this)), transaction_impl::immediate);
}
transaction_impl* connection::
begin_exclusive ()
{
return new transaction_impl (
connection_ptr (inc_ref (this)), transaction_impl::exclusive);
}
unsigned long long connection::
execute (const char* s, std::size_t n)
{
generic_statement st (*this, s, n);
return st.execute ();
}
inline void
connection_unlock_callback (void** args, int n)
{
for (int i (0); i < n; ++i)
{
connection* c (static_cast<connection*> (args[i]));
details::lock l (c->unlock_mutex_);
c->unlocked_ = true;
c->unlock_cond_.signal ();
}
}
void connection::
wait ()
{
#ifdef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
unlocked_ = false;
// unlock_notify() returns SQLITE_OK or SQLITE_LOCKED (deadlock).
//
int e (sqlite3_unlock_notify (handle_,
&odb_sqlite_connection_unlock_callback,
this));
if (e == SQLITE_LOCKED)
throw deadlock ();
details::lock l (unlock_mutex_);
while (!unlocked_)
unlock_cond_.wait ();
#else
translate_error (SQLITE_LOCKED, *this);
#endif
}
void connection::
clear ()
{
// The current first statement will remove itself from the list
// and make the second statement (if any) the new first.
//
while (statements_ != 0)
statements_->reset ();
}
}
}
extern "C" void
odb_sqlite_connection_unlock_callback (void** args, int n)
{
odb::sqlite::connection_unlock_callback (args, n);
}
+182
View File
@@ -0,0 +1,182 @@
// file : odb/sqlite/connection.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_CONNECTION_HXX
#define ODB_SQLITE_CONNECTION_HXX
#include <odb/pre.hxx>
#include <sqlite3.h>
#include <odb/connection.hxx>
#include <odb/details/mutex.hxx>
#include <odb/details/condition.hxx>
#include <odb/details/shared-ptr.hxx>
#include <odb/details/unique-ptr.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx>
#include <odb/sqlite/query.hxx>
#include <odb/sqlite/tracer.hxx>
#include <odb/sqlite/transaction-impl.hxx>
#include <odb/sqlite/auto-handle.hxx>
#include <odb/sqlite/details/export.hxx>
namespace odb
{
namespace sqlite
{
class statement_cache;
class connection;
typedef details::shared_ptr<connection> connection_ptr;
class LIBODB_SQLITE_EXPORT connection: public odb::connection
{
public:
typedef sqlite::statement_cache statement_cache_type;
typedef sqlite::database database_type;
virtual
~connection ();
connection (database_type&, int extra_flags = 0);
connection (database_type&, sqlite3* handle);
database_type&
database ()
{
return db_;
}
public:
virtual transaction_impl*
begin ();
transaction_impl*
begin_immediate ();
transaction_impl*
begin_exclusive ();
public:
using odb::connection::execute;
virtual unsigned long long
execute (const char* statement, std::size_t length);
// Query preparation.
//
public:
template <typename T>
prepared_query<T>
prepare_query (const char* name, const char*);
template <typename T>
prepared_query<T>
prepare_query (const char* name, const std::string&);
template <typename T>
prepared_query<T>
prepare_query (const char* name, const sqlite::query_base&);
template <typename T>
prepared_query<T>
prepare_query (const char* name, const odb::query_base&);
// SQL statement tracing.
//
public:
typedef sqlite::tracer tracer_type;
void
tracer (tracer_type& t)
{
odb::connection::tracer (t);
}
void
tracer (tracer_type* t)
{
odb::connection::tracer (t);
}
using odb::connection::tracer;
public:
sqlite3*
handle ()
{
return handle_;
}
statement_cache_type&
statement_cache ()
{
return *statement_cache_;
}
// Wait for the locks to be released via unlock notification. Can
// be called after getting SQLITE_LOCKED_SHAREDCACHE.
//
void
wait ();
public:
// Reset active statements.
//
void
clear ();
private:
connection (const connection&);
connection& operator= (const connection&);
private:
void
init ();
private:
// Needed to break the circular connection-database dependency
// (odb::connection has the odb::database member).
//
database_type& db_;
auto_handle<sqlite3> handle_;
// Keep statement_cache_ after handle_ so that it is destroyed before
// the connection is closed.
//
details::unique_ptr<statement_cache_type> statement_cache_;
// Unlock notification machinery.
//
private:
bool unlocked_;
details::mutex unlock_mutex_;
details::condition unlock_cond_;
friend void
connection_unlock_callback (void**, int);
private:
friend class transaction_impl; // invalidate_results()
// Linked list of active statements currently associated
// with this connection.
//
private:
friend class statement;
statement* statements_;
};
}
}
#include <odb/sqlite/connection.ixx>
#include <odb/post.hxx>
#endif // ODB_SQLITE_CONNECTION_HXX
+39
View File
@@ -0,0 +1,39 @@
// file : odb/sqlite/connection.ixx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
namespace odb
{
namespace sqlite
{
template <typename T>
inline prepared_query<T> connection::
prepare_query (const char* n, const char* q)
{
return prepare_query<T> (n, query<T> (q));
}
template <typename T>
inline prepared_query<T> connection::
prepare_query (const char* n, const std::string& q)
{
return prepare_query<T> (n, query<T> (q));
}
template <typename T>
inline prepared_query<T> connection::
prepare_query (const char* n, const sqlite::query_base& q)
{
return query_<T, id_sqlite>::call (*this, n, q);
}
template <typename T>
inline prepared_query<T> connection::
prepare_query (const char* n, const odb::query_base& q)
{
// Translate to native query.
//
return prepare_query<T> (n, sqlite::query_base (q));
}
}
}
+356
View File
@@ -0,0 +1,356 @@
// file : odb/sqlite/container-statements.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_CONTAINER_STATEMENTS_HXX
#define ODB_SQLITE_CONTAINER_STATEMENTS_HXX
#include <odb/pre.hxx>
#include <cstddef> // std::size_t
#include <odb/forward.hxx>
#include <odb/schema-version.hxx>
#include <odb/traits.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/binding.hxx>
#include <odb/sqlite/statement.hxx>
#include <odb/sqlite/details/export.hxx>
namespace odb
{
namespace sqlite
{
class connection;
// Template argument is the generated abstract container traits type.
// That is, it doesn't need to provide column counts and statements.
//
template <typename T>
class container_statements
{
public:
typedef T traits;
typedef typename traits::data_image_type data_image_type;
typedef typename traits::functions_type functions_type;
typedef sqlite::insert_statement insert_statement_type;
typedef sqlite::select_statement select_statement_type;
typedef sqlite::delete_statement delete_statement_type;
typedef sqlite::connection connection_type;
container_statements (connection_type&, binding& id_binding);
connection_type&
connection ()
{
return conn_;
}
// Functions.
//
functions_type&
functions ()
{
return functions_;
}
// Schema version.
//
const schema_version_migration&
version_migration () const {return *svm_;}
void
version_migration (const schema_version_migration& svm) {svm_ = &svm;}
// Id image binding (external).
//
const binding&
id_binding ()
{
return id_binding_;
}
// Data image. The image is split into the id (that comes as a
// binding) and index/key plus value which are in data_image_type.
// The select binding is a subset of the full binding (no id).
//
data_image_type&
data_image ()
{
return data_image_;
}
bind*
data_bind ()
{
return insert_image_binding_.bind;
}
bool
data_binding_test_version () const
{
return data_id_binding_version_ != id_binding_.version ||
data_image_version_ != data_image_.version ||
insert_image_binding_.version == 0;
}
void
data_binding_update_version ()
{
data_id_binding_version_ = id_binding_.version;
data_image_version_ = data_image_.version;
insert_image_binding_.version++;
select_image_binding_.version++;
}
bool*
select_image_truncated ()
{
return select_image_truncated_;
}
//
// Statements.
//
insert_statement_type&
insert_statement ()
{
if (insert_ == 0)
insert_.reset (
new (details::shared) insert_statement_type (
conn_,
insert_text_,
versioned_, // Process if versioned.
insert_image_binding_,
0));
return *insert_;
}
select_statement_type&
select_statement ()
{
if (select_ == 0)
select_.reset (
new (details::shared) select_statement_type (
conn_,
select_text_,
versioned_, // Process if versioned.
false, // Don't optimize.
id_binding_,
select_image_binding_));
return *select_;
}
delete_statement_type&
delete_statement ()
{
if (delete_ == 0)
delete_.reset (
new (details::shared) delete_statement_type (
conn_, delete_text_, id_binding_));
return *delete_;
}
private:
container_statements (const container_statements&);
container_statements& operator= (const container_statements&);
protected:
connection_type& conn_;
binding& id_binding_;
functions_type functions_;
data_image_type data_image_;
std::size_t data_image_version_;
std::size_t data_id_binding_version_;
binding insert_image_binding_;
binding select_image_binding_;
bool* select_image_truncated_;
const char* insert_text_;
const char* select_text_;
const char* delete_text_;
bool versioned_;
const schema_version_migration* svm_;
details::shared_ptr<insert_statement_type> insert_;
details::shared_ptr<select_statement_type> select_;
details::shared_ptr<delete_statement_type> delete_;
};
template <typename T>
class smart_container_statements: public container_statements<T>
{
public:
typedef T traits;
typedef typename traits::cond_image_type cond_image_type;
typedef sqlite::update_statement update_statement_type;
typedef sqlite::delete_statement delete_statement_type;
typedef sqlite::connection connection_type;
smart_container_statements (connection_type&, binding& id_binding);
// Condition image. The image is split into the id (that comes as
// a binding) and index/key/value which is in cond_image_type.
//
cond_image_type&
cond_image ()
{
return cond_image_;
}
bind*
cond_bind ()
{
return cond_image_binding_.bind;
}
bool
cond_binding_test_version () const
{
return cond_id_binding_version_ != this->id_binding_.version ||
cond_image_version_ != cond_image_.version ||
cond_image_binding_.version == 0;
}
void
cond_binding_update_version ()
{
cond_id_binding_version_ = this->id_binding_.version;
cond_image_version_ = cond_image_.version;
cond_image_binding_.version++;
}
// Update image. The image is split as follows: value comes
// from the data image, id comes as binding, and index/key
// comes from the condition image.
//
bind*
update_bind ()
{
return update_image_binding_.bind;
}
bool
update_binding_test_version () const
{
return update_id_binding_version_ != this->id_binding_.version ||
update_cond_image_version_ != cond_image_.version ||
update_data_image_version_ != this->data_image_.version ||
update_image_binding_.version == 0;
}
void
update_binding_update_version ()
{
update_id_binding_version_ = this->id_binding_.version;
update_cond_image_version_ = cond_image_.version;
update_data_image_version_ = this->data_image_.version;
update_image_binding_.version++;
}
//
// Statements.
//
delete_statement_type&
delete_statement ()
{
if (this->delete_ == 0)
this->delete_.reset (
new (details::shared) delete_statement_type (
this->conn_,
this->delete_text_,
this->cond_image_binding_));
return *this->delete_;
}
update_statement_type&
update_statement ()
{
if (update_ == 0)
update_.reset (
new (details::shared) update_statement_type (
this->conn_,
update_text_,
this->versioned_, // Process if versioned.
update_image_binding_));
return *update_;
}
protected:
cond_image_type cond_image_;
std::size_t cond_image_version_;
std::size_t cond_id_binding_version_;
binding cond_image_binding_;
std::size_t update_id_binding_version_;
std::size_t update_cond_image_version_;
std::size_t update_data_image_version_;
binding update_image_binding_;
const char* update_text_;
details::shared_ptr<update_statement_type> update_;
};
// Template argument is the generated concrete container traits type.
//
template <typename T>
class container_statements_impl: public T::statements_type
{
public:
typedef T traits;
typedef typename T::statements_type base;
typedef sqlite::connection connection_type;
container_statements_impl (connection_type&, binding&);
private:
container_statements_impl (const container_statements_impl&);
container_statements_impl& operator= (const container_statements_impl&);
private:
bind data_image_bind_[traits::data_column_count];
bool select_image_truncated_array_[traits::data_column_count -
traits::id_column_count];
};
template <typename T>
class smart_container_statements_impl: public container_statements_impl<T>
{
public:
typedef T traits;
typedef sqlite::connection connection_type;
smart_container_statements_impl (connection_type&, binding&);
private:
bind cond_image_bind_[traits::cond_column_count];
bind update_image_bind_[traits::value_column_count +
traits::cond_column_count];
};
}
}
#include <odb/sqlite/container-statements.txx>
#include <odb/post.hxx>
#endif // ODB_SQLITE_CONTAINER_STATEMENTS_HXX
+108
View File
@@ -0,0 +1,108 @@
// file : odb/sqlite/container-statements.txx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <cstddef> // std::size_t
#include <cstring> // std::memset
namespace odb
{
namespace sqlite
{
// container_statements
//
template <typename T>
container_statements<T>::
container_statements (connection_type& conn, binding& id)
: conn_ (conn),
id_binding_ (id),
functions_ (this),
insert_image_binding_ (0, 0), // Initialized by impl.
select_image_binding_ (0, 0), // Initialized by impl.
svm_ (0)
{
functions_.insert_ = &traits::insert;
functions_.select_ = &traits::select;
functions_.delete__ = &traits::delete_;
data_image_.version = 0;
data_image_version_ = 0;
data_id_binding_version_ = 0;
}
// smart_container_statements
//
template <typename T>
smart_container_statements<T>::
smart_container_statements (connection_type& conn, binding& id)
: container_statements<T> (conn, id),
cond_image_binding_ (0, 0), // Initialized by impl.
update_image_binding_ (0, 0) // Initialized by impl.
{
this->functions_.update_ = &traits::update;
cond_image_.version = 0;
cond_image_version_ = 0;
cond_id_binding_version_ = 0;
update_id_binding_version_ = 0;
update_cond_image_version_ = 0;
update_data_image_version_ = 0;
}
// container_statements_impl
//
template <typename T>
container_statements_impl<T>::
container_statements_impl (connection_type& conn, binding& id)
: base (conn, id)
{
this->select_image_truncated_ = select_image_truncated_array_;
this->insert_image_binding_.bind = data_image_bind_;
this->insert_image_binding_.count = traits::data_column_count;
this->select_image_binding_.bind = data_image_bind_ +
traits::id_column_count;
this->select_image_binding_.count = traits::data_column_count -
traits::id_column_count;
std::memset (data_image_bind_, 0, sizeof (data_image_bind_));
std::memset (select_image_truncated_array_,
0,
sizeof (select_image_truncated_array_));
for (std::size_t i (0);
i < traits::data_column_count - traits::id_column_count;
++i)
data_image_bind_[i + traits::id_column_count].truncated =
select_image_truncated_array_ + i;
this->insert_text_ = traits::insert_statement;
this->select_text_ = traits::select_statement;
this->delete_text_ = traits::delete_statement;
this->versioned_ = traits::versioned;
}
// smart_container_statements_impl
//
template <typename T>
smart_container_statements_impl<T>::
smart_container_statements_impl (connection_type& conn, binding& id)
: container_statements_impl<T> (conn, id)
{
this->cond_image_binding_.bind = cond_image_bind_;
this->cond_image_binding_.count = traits::cond_column_count;
this->update_image_binding_.bind = update_image_bind_;
this->update_image_binding_.count = traits::value_column_count +
traits::cond_column_count;
std::memset (cond_image_bind_, 0, sizeof (cond_image_bind_));
std::memset (update_image_bind_, 0, sizeof (update_image_bind_));
this->update_text_ = traits::update_statement;
}
}
}
+278
View File
@@ -0,0 +1,278 @@
// file : odb/sqlite/database.cxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifdef _WIN32
# include <odb/details/win32/windows.hxx> // WideCharToMultiByte
#endif
#include <sqlite3.h>
#include <cassert>
#include <sstream>
#include <odb/sqlite/database.hxx>
#include <odb/sqlite/connection.hxx>
#include <odb/sqlite/connection-factory.hxx>
#include <odb/sqlite/statement.hxx>
#include <odb/sqlite/transaction.hxx>
#include <odb/sqlite/error.hxx>
#include <odb/sqlite/exceptions.hxx>
#include <odb/sqlite/details/options.hxx>
using namespace std;
namespace odb
{
namespace sqlite
{
using odb::details::transfer_ptr;
database::
~database ()
{
}
database::
database (const string& name,
int flags,
bool foreign_keys,
const string& vfs,
transfer_ptr<connection_factory> factory)
: odb::database (id_sqlite),
name_ (name),
flags_ (flags),
foreign_keys_ (foreign_keys),
vfs_ (vfs),
factory_ (factory.transfer ())
{
if (!factory_)
factory_.reset (new connection_pool_factory ());
factory_->database (*this);
}
#ifdef _WIN32
database::
database (const wstring& name,
int flags,
bool foreign_keys,
const string& vfs,
transfer_ptr<connection_factory> factory)
: odb::database (id_sqlite),
flags_ (flags),
foreign_keys_ (foreign_keys),
vfs_ (vfs),
factory_ (factory.transfer ())
{
// Convert UTF-16 name to UTF-8 using the WideCharToMultiByte() Win32
// function.
//
int n (
WideCharToMultiByte (
CP_UTF8,
0,
name.c_str (),
static_cast<int> (name.size ()),
0,
0,
0,
0));
if (n == 0)
throw database_exception (
SQLITE_CANTOPEN, SQLITE_CANTOPEN, "unable to open database file");
// This string is not shared so we are going to modify the underlying
// buffer directly.
//
name_.resize (static_cast<string::size_type> (n));
n = WideCharToMultiByte (
CP_UTF8,
0,
name.c_str (),
static_cast<int> (name.size ()),
const_cast<char*> (name_.c_str ()),
n,
0,
0);
if (n == 0)
throw database_exception (
SQLITE_CANTOPEN, SQLITE_CANTOPEN, "unable to open database file");
if (!factory_)
factory_.reset (new connection_pool_factory ());
factory_->database (*this);
}
#endif
database::
database (int& argc,
char* argv[],
bool erase,
int flags,
bool foreign_keys,
const string& vfs,
transfer_ptr<connection_factory> factory)
: odb::database (id_sqlite),
flags_ (flags),
foreign_keys_ (foreign_keys),
vfs_ (vfs),
factory_ (factory.transfer ())
{
using namespace details;
try
{
cli::argv_file_scanner scan (argc, argv, "--options-file", erase);
options ops (scan, cli::unknown_mode::skip, cli::unknown_mode::skip);
name_ = ops.database ();
if (ops.create ())
flags_ |= SQLITE_OPEN_CREATE;
if (ops.read_only ())
flags_ = (flags_ & ~SQLITE_OPEN_READWRITE) | SQLITE_OPEN_READONLY;
}
catch (const cli::exception& e)
{
ostringstream ostr;
ostr << e;
throw cli_exception (ostr.str ());
}
if (!factory_)
factory_.reset (new connection_pool_factory ());
factory_->database (*this);
}
void database::
print_usage (std::ostream& os)
{
details::options::print_usage (os);
}
transaction_impl* database::
begin ()
{
return new transaction_impl (*this, transaction_impl::deferred);
}
transaction_impl* database::
begin_immediate ()
{
return new transaction_impl (*this, transaction_impl::immediate);
}
transaction_impl* database::
begin_exclusive ()
{
return new transaction_impl (*this, transaction_impl::exclusive);
}
odb::connection* database::
connection_ ()
{
connection_ptr c (factory_->connect ());
return c.release ();
}
const database::schema_version_info& database::
load_schema_version (const string& name) const
{
schema_version_info& svi (schema_version_map_[name]);
// Construct the SELECT statement text.
//
string text ("SELECT \"version\", \"migration\" FROM ");
if (!svi.version_table.empty ())
text += svi.version_table; // Already quoted.
else if (!schema_version_table_.empty ())
text += schema_version_table_; // Already quoted.
else
text += "\"schema_version\"";
text += " WHERE \"name\" = ?";
// Bind parameters and results.
//
size_t psize[1] = {name.size ()};
bind pbind[1] = {{bind::text,
const_cast<char*> (name.c_str ()),
&psize[0],
0, 0, 0}};
binding param (pbind, 1);
param.version++;
long long migration;
bool rnull[2];
bind rbind[2] = {{bind::integer, &svi.version, 0, 0, &rnull[0], 0},
{bind::integer, &migration, 0, 0, &rnull[1], 0}};
binding result (rbind, 2);
result.version++;
// If we are not in transaction, SQLite will start an implicit one
// which suits us just fine.
//
connection_ptr cp;
if (!transaction::has_current ())
cp = factory_->connect ();
sqlite::connection& c (
cp != 0 ? *cp : transaction::current ().connection ());
try
{
select_statement st (c,
text,
false, // Don't process.
false, // Don't optimize.
param,
result);
st.execute ();
auto_result ar (st);
switch (st.fetch ())
{
case select_statement::success:
{
svi.migration = migration != 0;
assert (st.fetch () == select_statement::no_data);
break;
}
case select_statement::no_data:
{
svi.version = 0; // No schema.
break;
}
case select_statement::truncated:
{
assert (false);
break;
}
}
}
catch (const database_exception& e)
{
// Try to detect the case where there is no version table. SQLite
// doesn't have an extended error code for this so we have to use
// the error text.
//
if (e.error () == SQLITE_ERROR &&
e.message ().compare (0, 14, "no such table:") == 0)
svi.version = 0; // No schema.
else
throw;
}
return svi;
}
}
}
+474
View File
@@ -0,0 +1,474 @@
// file : odb/sqlite/database.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_DATABASE_HXX
#define ODB_SQLITE_DATABASE_HXX
#include <odb/pre.hxx>
#include <sqlite3.h>
#include <string>
#include <memory> // std::auto_ptr, std::unique_ptr
#include <iosfwd> // std::ostream
#include <odb/database.hxx>
#include <odb/details/unique-ptr.hxx>
#include <odb/details/transfer-ptr.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx>
#include <odb/sqlite/query.hxx>
#include <odb/sqlite/tracer.hxx>
#include <odb/sqlite/connection.hxx>
#include <odb/sqlite/connection-factory.hxx>
#include <odb/sqlite/transaction-impl.hxx>
#include <odb/sqlite/details/export.hxx>
// We use the sqlite3_open_v2() flags in our interface. Define them
// for SQLite earlier that 3.5.0.
//
#if SQLITE_VERSION_NUMBER < 3005000
# define SQLITE_OPEN_READONLY 0x00000001
# define SQLITE_OPEN_READWRITE 0x00000002
# define SQLITE_OPEN_CREATE 0x00000004
#endif
namespace odb
{
namespace sqlite
{
class transaction_impl;
class LIBODB_SQLITE_EXPORT database: public odb::database
{
public:
database (const std::string& name,
int flags = SQLITE_OPEN_READWRITE,
bool foreign_keys = true,
const std::string& vfs = "",
details::transfer_ptr<connection_factory> =
details::transfer_ptr<connection_factory> ());
#ifdef _WIN32
database (const std::wstring& name,
int flags = SQLITE_OPEN_READWRITE,
bool foreign_keys = true,
const std::string& vfs = "",
details::transfer_ptr<connection_factory> =
details::transfer_ptr<connection_factory> ());
#endif
// Extract the database parameters from the command line. The
// following options are recognized:
//
// --database
// --create
// --read-only
// --options-file
//
// For more information, see the output of the print_usage() function
// below. If erase is true, the above options are removed from the argv
// array and the argc count is updated accordingly. The command line
// options override the flags passed as an argument. This constructor
// may throw the cli_exception exception.
//
database (int& argc,
char* argv[],
bool erase = false,
int flags = SQLITE_OPEN_READWRITE,
bool foreign_keys = true,
const std::string& vfs = "",
details::transfer_ptr<connection_factory> =
details::transfer_ptr<connection_factory> ());
static void
print_usage (std::ostream&);
public:
const std::string&
name () const
{
return name_;
}
int
flags () const
{
return flags_;
}
bool
foreign_keys () const
{
return foreign_keys_;
}
const std::string&
vfs () const
{
return vfs_;
}
// Object persistence API.
//
public:
// Make the object persistent.
//
template <typename T>
typename object_traits<T>::id_type
persist (T& object);
template <typename T>
typename object_traits<T>::id_type
persist (const T& object);
template <typename T>
typename object_traits<T>::id_type
persist (T* obj_ptr);
template <typename T, template <typename> class P>
typename object_traits<T>::id_type
persist (const P<T>& obj_ptr);
template <typename T, typename A1, template <typename, typename> class P>
typename object_traits<T>::id_type
persist (const P<T, A1>& obj_ptr);
template <typename T, template <typename> class P>
typename object_traits<T>::id_type
persist (P<T>& obj_ptr);
template <typename T, typename A1, template <typename, typename> class P>
typename object_traits<T>::id_type
persist (P<T, A1>& obj_ptr);
template <typename T>
typename object_traits<T>::id_type
persist (const typename object_traits<T>::pointer_type& obj_ptr);
// Load an object. Throw object_not_persistent if not found.
//
template <typename T>
typename object_traits<T>::pointer_type
load (const typename object_traits<T>::id_type& id);
template <typename T>
void
load (const typename object_traits<T>::id_type& id, T& object);
// Load (or reload, if it is already loaded) a section of an object.
//
template <typename T>
void
load (T& object, section&);
// Reload an object.
//
template <typename T>
void
reload (T& object);
template <typename T>
void
reload (T* obj_ptr);
template <typename T, template <typename> class P>
void
reload (const P<T>& obj_ptr);
template <typename T, typename A1, template <typename, typename> class P>
void
reload (const P<T, A1>& obj_ptr);
template <typename T, template <typename> class P>
void
reload (P<T>& obj_ptr);
template <typename T, typename A1, template <typename, typename> class P>
void
reload (P<T, A1>& obj_ptr);
template <typename T>
void
reload (const typename object_traits<T>::pointer_type& obj_ptr);
// Loan an object if found. Return NULL/false if not found.
//
template <typename T>
typename object_traits<T>::pointer_type
find (const typename object_traits<T>::id_type& id);
template <typename T>
bool
find (const typename object_traits<T>::id_type& id, T& object);
// Update the state of a modified objects.
//
template <typename T>
void
update (T& object);
template <typename T>
void
update (T* obj_ptr);
template <typename T, template <typename> class P>
void
update (const P<T>& obj_ptr);
template <typename T, typename A1, template <typename, typename> class P>
void
update (const P<T, A1>& obj_ptr);
template <typename T, template <typename> class P>
void
update (P<T>& obj_ptr);
template <typename T, typename A1, template <typename, typename> class P>
void
update (P<T, A1>& obj_ptr);
template <typename T>
void
update (const typename object_traits<T>::pointer_type& obj_ptr);
// Update a section of an object. Throws the section_not_loaded
// exception if the section is not loaded. Note also that this
// function does not clear the changed flag if it is set.
//
template <typename T>
void
update (const T& object, const section&);
// Make the object transient. Throw object_not_persistent if not
// found.
//
template <typename T>
void
erase (const typename object_traits<T>::id_type& id);
template <typename T>
void
erase (T& object);
template <typename T>
void
erase (T* obj_ptr);
template <typename T, template <typename> class P>
void
erase (const P<T>& obj_ptr);
template <typename T, typename A1, template <typename, typename> class P>
void
erase (const P<T, A1>& obj_ptr);
template <typename T, template <typename> class P>
void
erase (P<T>& obj_ptr);
template <typename T, typename A1, template <typename, typename> class P>
void
erase (P<T, A1>& obj_ptr);
template <typename T>
void
erase (const typename object_traits<T>::pointer_type& obj_ptr);
// Erase multiple objects matching a query predicate.
//
template <typename T>
unsigned long long
erase_query ();
template <typename T>
unsigned long long
erase_query (const char*);
template <typename T>
unsigned long long
erase_query (const std::string&);
template <typename T>
unsigned long long
erase_query (const sqlite::query_base&);
template <typename T>
unsigned long long
erase_query (const odb::query_base&);
// Query API.
//
template <typename T>
result<T>
query ();
template <typename T>
result<T>
query (const char*);
template <typename T>
result<T>
query (const std::string&);
template <typename T>
result<T>
query (const sqlite::query_base&);
template <typename T>
result<T>
query (const odb::query_base&);
// Query one API.
//
template <typename T>
typename object_traits<T>::pointer_type
query_one ();
template <typename T>
bool
query_one (T& object);
template <typename T>
T
query_value ();
template <typename T>
typename object_traits<T>::pointer_type
query_one (const char*);
template <typename T>
bool
query_one (const char*, T& object);
template <typename T>
T
query_value (const char*);
template <typename T>
typename object_traits<T>::pointer_type
query_one (const std::string&);
template <typename T>
bool
query_one (const std::string&, T& object);
template <typename T>
T
query_value (const std::string&);
template <typename T>
typename object_traits<T>::pointer_type
query_one (const sqlite::query_base&);
template <typename T>
bool
query_one (const sqlite::query_base&, T& object);
template <typename T>
T
query_value (const sqlite::query_base&);
template <typename T>
typename object_traits<T>::pointer_type
query_one (const odb::query_base&);
template <typename T>
bool
query_one (const odb::query_base&, T& object);
template <typename T>
T
query_value (const odb::query_base&);
// Query preparation.
//
template <typename T>
prepared_query<T>
prepare_query (const char* name, const char*);
template <typename T>
prepared_query<T>
prepare_query (const char* name, const std::string&);
template <typename T>
prepared_query<T>
prepare_query (const char* name, const sqlite::query_base&);
template <typename T>
prepared_query<T>
prepare_query (const char* name, const odb::query_base&);
// Transactions.
//
public:
virtual transaction_impl*
begin ();
transaction_impl*
begin_immediate ();
transaction_impl*
begin_exclusive ();
public:
connection_ptr
connection ();
// SQL statement tracing.
//
public:
typedef sqlite::tracer tracer_type;
void
tracer (tracer_type& t)
{
odb::database::tracer (t);
}
void
tracer (tracer_type* t)
{
odb::database::tracer (t);
}
using odb::database::tracer;
// Database schema version.
//
protected:
virtual const schema_version_info&
load_schema_version (const std::string& schema_name) const;
// Database id constant (useful for meta-programming).
//
public:
static const odb::database_id database_id = id_sqlite;
public:
virtual
~database ();
protected:
virtual odb::connection*
connection_ ();
private:
std::string name_;
int flags_;
bool foreign_keys_;
std::string vfs_;
details::unique_ptr<connection_factory> factory_;
};
}
}
#include <odb/sqlite/database.ixx>
#include <odb/post.hxx>
#endif // ODB_SQLITE_DATABASE_HXX
+591
View File
@@ -0,0 +1,591 @@
// file : odb/sqlite/database.ixx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <odb/sqlite/transaction.hxx>
namespace odb
{
namespace sqlite
{
inline connection_ptr database::
connection ()
{
// Go through the virtual connection_() function instead of
// directly to allow overriding.
//
return connection_ptr (
static_cast<sqlite::connection*> (connection_ ()));
}
template <typename T>
inline typename object_traits<T>::id_type database::
persist (T& obj)
{
return persist_<T, id_sqlite> (obj);
}
template <typename T>
inline typename object_traits<T>::id_type database::
persist (const T& obj)
{
return persist_<const T, id_sqlite> (obj);
}
template <typename T>
inline typename object_traits<T>::id_type database::
persist (T* p)
{
typedef typename object_traits<T>::pointer_type object_pointer;
// The passed pointer should be the same or implicit-convertible
// to the object pointer. This way we make sure the object pointer
// does not assume ownership of the passed object.
//
const object_pointer& pobj (p);
return persist_<T, id_sqlite> (pobj);
}
template <typename T, template <typename> class P>
inline typename object_traits<T>::id_type database::
persist (const P<T>& p)
{
typedef typename object_traits<T>::pointer_type object_pointer;
// The passed pointer should be the same or implicit-convertible
// to the object pointer. This way we make sure the object pointer
// does not assume ownership of the passed object.
//
const object_pointer& pobj (p);
return persist_<T, id_sqlite> (pobj);
}
template <typename T, typename A1, template <typename, typename> class P>
inline typename object_traits<T>::id_type database::
persist (const P<T, A1>& p)
{
typedef typename object_traits<T>::pointer_type object_pointer;
// The passed pointer should be the same or implicit-convertible
// to the object pointer. This way we make sure the object pointer
// does not assume ownership of the passed object.
//
const object_pointer& pobj (p);
return persist_<T, id_sqlite> (pobj);
}
template <typename T, template <typename> class P>
inline typename object_traits<T>::id_type database::
persist (P<T>& p)
{
const P<T>& cr (p);
return persist<T, P> (cr);
}
template <typename T, typename A1, template <typename, typename> class P>
inline typename object_traits<T>::id_type database::
persist (P<T, A1>& p)
{
const P<T, A1>& cr (p);
return persist<T, A1, P> (cr);
}
template <typename T>
inline typename object_traits<T>::id_type database::
persist (const typename object_traits<T>::pointer_type& pobj)
{
return persist_<T, id_sqlite> (pobj);
}
template <typename T>
inline typename object_traits<T>::pointer_type database::
load (const typename object_traits<T>::id_type& id)
{
return load_<T, id_sqlite> (id);
}
template <typename T>
inline void database::
load (const typename object_traits<T>::id_type& id, T& obj)
{
return load_<T, id_sqlite> (id, obj);
}
template <typename T>
inline void database::
load (T& obj, section& s)
{
return load_<T, id_sqlite> (obj, s);
}
template <typename T>
inline typename object_traits<T>::pointer_type database::
find (const typename object_traits<T>::id_type& id)
{
return find_<T, id_sqlite> (id);
}
template <typename T>
inline bool database::
find (const typename object_traits<T>::id_type& id, T& obj)
{
return find_<T, id_sqlite> (id, obj);
}
template <typename T>
inline void database::
reload (T& obj)
{
reload_<T, id_sqlite> (obj);
}
template <typename T>
inline void database::
reload (T* p)
{
reload<T> (*p);
}
template <typename T, template <typename> class P>
inline void database::
reload (const P<T>& p)
{
reload (odb::pointer_traits< P<T> >::get_ref (p));
}
template <typename T, typename A1, template <typename, typename> class P>
inline void database::
reload (const P<T, A1>& p)
{
reload (odb::pointer_traits< P<T, A1> >::get_ref (p));
}
template <typename T, template <typename> class P>
inline void database::
reload (P<T>& p)
{
reload (odb::pointer_traits< P<T> >::get_ref (p));
}
template <typename T, typename A1, template <typename, typename> class P>
inline void database::
reload (P<T, A1>& p)
{
reload (odb::pointer_traits< P<T, A1> >::get_ref (p));
}
template <typename T>
inline void database::
reload (const typename object_traits<T>::pointer_type& pobj)
{
typedef typename object_traits<T>::pointer_type pointer_type;
reload (odb::pointer_traits<pointer_type>::get_ref (pobj));
}
template <typename T>
inline void database::
update (T& obj)
{
update_<T, id_sqlite> (obj);
}
template <typename T>
inline void database::
update (T* p)
{
typedef typename object_traits<T>::pointer_type object_pointer;
// The passed pointer should be the same or implicit-convertible
// to the object pointer. This way we make sure the object pointer
// does not assume ownership of the passed object.
//
const object_pointer& pobj (p);
update_<T, id_sqlite> (pobj);
}
template <typename T, template <typename> class P>
inline void database::
update (const P<T>& p)
{
typedef typename object_traits<T>::pointer_type object_pointer;
// The passed pointer should be the same or implicit-convertible
// to the object pointer. This way we make sure the object pointer
// does not assume ownership of the passed object.
//
const object_pointer& pobj (p);
update_<T, id_sqlite> (pobj);
}
template <typename T, typename A1, template <typename, typename> class P>
inline void database::
update (const P<T, A1>& p)
{
typedef typename object_traits<T>::pointer_type object_pointer;
// The passed pointer should be the same or implicit-convertible
// to the object pointer. This way we make sure the object pointer
// does not assume ownership of the passed object.
//
const object_pointer& pobj (p);
update_<T, id_sqlite> (pobj);
}
template <typename T, template <typename> class P>
inline void database::
update (P<T>& p)
{
const P<T>& cr (p);
update<T, P> (cr);
}
template <typename T, typename A1, template <typename, typename> class P>
inline void database::
update (P<T, A1>& p)
{
const P<T, A1>& cr (p);
update<T, A1, P> (cr);
}
template <typename T>
inline void database::
update (const typename object_traits<T>::pointer_type& pobj)
{
update_<T, id_sqlite> (pobj);
}
template <typename T>
inline void database::
update (const T& obj, const section& s)
{
update_<T, id_sqlite> (obj, s);
}
template <typename T>
inline void database::
erase (const typename object_traits<T>::id_type& id)
{
return erase_<T, id_sqlite> (id);
}
template <typename T>
inline void database::
erase (T& obj)
{
return erase_<T, id_sqlite> (obj);
}
template <typename T>
inline void database::
erase (T* p)
{
typedef typename object_traits<T>::pointer_type object_pointer;
// The passed pointer should be the same or implicit-convertible
// to the object pointer. This way we make sure the object pointer
// does not assume ownership of the passed object.
//
const object_pointer& pobj (p);
erase_<T, id_sqlite> (pobj);
}
template <typename T, template <typename> class P>
inline void database::
erase (const P<T>& p)
{
typedef typename object_traits<T>::pointer_type object_pointer;
// The passed pointer should be the same or implicit-convertible
// to the object pointer. This way we make sure the object pointer
// does not assume ownership of the passed object.
//
const object_pointer& pobj (p);
erase_<T, id_sqlite> (pobj);
}
template <typename T, typename A1, template <typename, typename> class P>
inline void database::
erase (const P<T, A1>& p)
{
typedef typename object_traits<T>::pointer_type object_pointer;
// The passed pointer should be the same or implicit-convertible
// to the object pointer. This way we make sure the object pointer
// does not assume ownership of the passed object.
//
const object_pointer& pobj (p);
erase_<T, id_sqlite> (pobj);
}
template <typename T, template <typename> class P>
inline void database::
erase (P<T>& p)
{
const P<T>& cr (p);
erase<T, P> (cr);
}
template <typename T, typename A1, template <typename, typename> class P>
inline void database::
erase (P<T, A1>& p)
{
const P<T, A1>& cr (p);
erase<T, A1, P> (cr);
}
template <typename T>
inline void database::
erase (const typename object_traits<T>::pointer_type& pobj)
{
erase_<T, id_sqlite> (pobj);
}
template <typename T>
inline unsigned long long database::
erase_query ()
{
// T is always object_type.
//
return erase_query<T> (sqlite::query_base ());
}
template <typename T>
inline unsigned long long database::
erase_query (const char* q)
{
// T is always object_type.
//
return erase_query<T> (sqlite::query_base (q));
}
template <typename T>
inline unsigned long long database::
erase_query (const std::string& q)
{
// T is always object_type.
//
return erase_query<T> (sqlite::query_base (q));
}
template <typename T>
inline unsigned long long database::
erase_query (const sqlite::query_base& q)
{
// T is always object_type.
//
return object_traits_impl<T, id_sqlite>::erase_query (*this, q);
}
template <typename T>
inline unsigned long long database::
erase_query (const odb::query_base& q)
{
// Translate to native query.
//
return erase_query<T> (sqlite::query_base (q));
}
template <typename T>
inline result<T> database::
query ()
{
return query<T> (sqlite::query_base ());
}
template <typename T>
inline result<T> database::
query (const char* q)
{
return query<T> (sqlite::query_base (q));
}
template <typename T>
inline result<T> database::
query (const std::string& q)
{
return query<T> (sqlite::query_base (q));
}
template <typename T>
inline result<T> database::
query (const sqlite::query_base& q)
{
// T is always object_type. We also don't need to check for transaction
// here; object_traits::query () does this.
//
return query_<T, id_sqlite>::call (*this, q);
}
template <typename T>
inline result<T> database::
query (const odb::query_base& q)
{
// Translate to native query.
//
return query<T> (sqlite::query_base (q));
}
template <typename T>
inline typename object_traits<T>::pointer_type database::
query_one ()
{
return query_one<T> (sqlite::query_base ());
}
template <typename T>
inline bool database::
query_one (T& o)
{
return query_one<T> (sqlite::query_base (), o);
}
template <typename T>
inline T database::
query_value ()
{
return query_value<T> (sqlite::query_base ());
}
template <typename T>
inline typename object_traits<T>::pointer_type database::
query_one (const char* q)
{
return query_one<T> (sqlite::query_base (q));
}
template <typename T>
inline bool database::
query_one (const char* q, T& o)
{
return query_one<T> (sqlite::query_base (q), o);
}
template <typename T>
inline T database::
query_value (const char* q)
{
return query_value<T> (sqlite::query_base (q));
}
template <typename T>
inline typename object_traits<T>::pointer_type database::
query_one (const std::string& q)
{
return query_one<T> (sqlite::query_base (q));
}
template <typename T>
inline bool database::
query_one (const std::string& q, T& o)
{
return query_one<T> (sqlite::query_base (q), o);
}
template <typename T>
inline T database::
query_value (const std::string& q)
{
return query_value<T> (sqlite::query_base (q));
}
template <typename T>
inline typename object_traits<T>::pointer_type database::
query_one (const sqlite::query_base& q)
{
// T is always object_type. We also don't need to check for transaction
// here; object_traits::query () does this.
//
return query_one_<T, id_sqlite> (q);
}
template <typename T>
inline bool database::
query_one (const sqlite::query_base& q, T& o)
{
// T is always object_type. We also don't need to check for transaction
// here; object_traits::query () does this.
//
return query_one_<T, id_sqlite> (q, o);
}
template <typename T>
inline T database::
query_value (const sqlite::query_base& q)
{
// T is always object_type. We also don't need to check for transaction
// here; object_traits::query () does this.
//
return query_value_<T, id_sqlite> (q);
}
template <typename T>
inline typename object_traits<T>::pointer_type database::
query_one (const odb::query_base& q)
{
// Translate to native query.
//
return query_one<T> (sqlite::query_base (q));
}
template <typename T>
inline bool database::
query_one (const odb::query_base& q, T& o)
{
// Translate to native query.
//
return query_one<T> (sqlite::query_base (q), o);
}
template <typename T>
inline T database::
query_value (const odb::query_base& q)
{
// Translate to native query.
//
return query_value<T> (sqlite::query_base (q));
}
template <typename T>
inline prepared_query<T> database::
prepare_query (const char* n, const char* q)
{
return prepare_query<T> (n, sqlite::query_base (q));
}
template <typename T>
inline prepared_query<T> database::
prepare_query (const char* n, const std::string& q)
{
return prepare_query<T> (n, sqlite::query_base (q));
}
template <typename T>
inline prepared_query<T> database::
prepare_query (const char* n, const sqlite::query_base& q)
{
// Throws if not in transaction.
//
sqlite::connection& c (transaction::current ().connection ());
return c.prepare_query<T> (n, q);
}
template <typename T>
inline prepared_query<T> database::
prepare_query (const char* n, const odb::query_base& q)
{
// Translate to native query.
//
return prepare_query<T> (n, sqlite::query_base (q));
}
}
}
+14
View File
@@ -0,0 +1,14 @@
/* file : odb/sqlite/details/config.h.in
* copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
* license : GNU GPL v2; see accompanying LICENSE file
*/
/* This file is automatically processed by configure. */
#ifndef ODB_SQLITE_DETAILS_CONFIG_H
#define ODB_SQLITE_DETAILS_CONFIG_H
#undef LIBODB_SQLITE_STATIC_LIB
#undef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
#endif /* ODB_SQLITE_DETAILS_CONFIG_H */
+19
View File
@@ -0,0 +1,19 @@
// file : odb/sqlite/details/config.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_DETAILS_CONFIG_HXX
#define ODB_SQLITE_DETAILS_CONFIG_HXX
// no pre
#ifdef _MSC_VER
#elif defined(ODB_COMPILER)
# error libodb-sqlite header included in odb-compiled header
#else
# include <odb/sqlite/details/config.h>
#endif
// no post
#endif // ODB_SQLITE_DETAILS_CONFIG_HXX
+59
View File
@@ -0,0 +1,59 @@
// file : odb/sqlite/details/conversion.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_DETAILS_CONVERSION_HXX
#define ODB_SQLITE_DETAILS_CONVERSION_HXX
#include <odb/sqlite/traits.hxx>
#include <odb/details/meta/answer.hxx>
namespace odb
{
// @@ Revise this.
//
namespace details {}
namespace sqlite
{
namespace details
{
using namespace odb::details;
// Detect whether conversion is specified in type_traits.
//
template <typename T>
meta::yes
conversion_p_test (typename type_traits<T>::conversion*);
template <typename T>
meta::no
conversion_p_test (...);
template <typename T>
struct conversion_p
{
static const bool value =
sizeof (conversion_p_test<T> (0)) == sizeof (meta::yes);
};
template <typename T, bool = conversion_p<T>::value>
struct conversion;
template <typename T>
struct conversion<T, true>
{
static const char* to () {return type_traits<T>::conversion::to ();}
};
template <typename T>
struct conversion<T, false>
{
static const char* to () {return 0;}
};
}
}
}
#endif // ODB_SQLITE_DETAILS_CONVERSION_HXX
+40
View File
@@ -0,0 +1,40 @@
// file : odb/sqlite/details/export.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_DETAILS_EXPORT_HXX
#define ODB_SQLITE_DETAILS_EXPORT_HXX
#include <odb/pre.hxx>
#include <odb/sqlite/details/config.hxx>
#ifdef LIBODB_SQLITE_STATIC_LIB
# define LIBODB_SQLITE_EXPORT
#else
# ifdef _WIN32
# ifdef _MSC_VER
# ifdef LIBODB_SQLITE_DYNAMIC_LIB
# define LIBODB_SQLITE_EXPORT __declspec(dllexport)
# else
# define LIBODB_SQLITE_EXPORT __declspec(dllimport)
# endif
# else
# ifdef LIBODB_SQLITE_DYNAMIC_LIB
# ifdef DLL_EXPORT
# define LIBODB_SQLITE_EXPORT __declspec(dllexport)
# else
# define LIBODB_SQLITE_EXPORT
# endif
# else
# define LIBODB_SQLITE_EXPORT __declspec(dllimport)
# endif
# endif
# else
# define LIBODB_SQLITE_EXPORT
# endif
#endif
#include <odb/post.hxx>
#endif // ODB_SQLITE_DETAILS_EXPORT_HXX
+47
View File
@@ -0,0 +1,47 @@
// file : odb/sqlite/details/options.cli
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
include <string>;
namespace odb
{
namespace sqlite
{
namespace details
{
class options
{
std::string --database
{
"<filename>",
"SQLite database file name. If the database file is not specified
then a private, temporary on-disk database will be created. Use
the \cb{:memory:} special name to create a private, temporary
in-memory database."
};
bool --create
{
"Create the SQLite database if it does not already exist. By default
opening the database fails if it does not already exist."
};
bool --read-only
{
"Open the SQLite database in read-only mode. By default the database
is opened for reading and writing if possible, or reading only if
the file is write-protected by the operating system."
};
std::string --options-file
{
"<file>",
"Read additional options from <file>. Each option appearing on a
separate line optionally followed by space and an option value.
Empty lines and lines starting with \cb{#} are ignored."
};
};
}
}
}
+788
View File
@@ -0,0 +1,788 @@
// This code was generated by CLI, a command line interface
// compiler for C++.
//
// Begin prologue.
//
//
// End prologue.
#include "options.hxx"
#include <map>
#include <set>
#include <string>
#include <vector>
#include <ostream>
#include <sstream>
#include <cstring>
#include <fstream>
namespace odb
{
namespace sqlite
{
namespace details
{
namespace cli
{
// unknown_option
//
unknown_option::
~unknown_option () throw ()
{
}
void unknown_option::
print (::std::ostream& os) const
{
os << "unknown option '" << option ().c_str () << "'";
}
const char* unknown_option::
what () const throw ()
{
return "unknown option";
}
// unknown_argument
//
unknown_argument::
~unknown_argument () throw ()
{
}
void unknown_argument::
print (::std::ostream& os) const
{
os << "unknown argument '" << argument ().c_str () << "'";
}
const char* unknown_argument::
what () const throw ()
{
return "unknown argument";
}
// missing_value
//
missing_value::
~missing_value () throw ()
{
}
void missing_value::
print (::std::ostream& os) const
{
os << "missing value for option '" << option ().c_str () << "'";
}
const char* missing_value::
what () const throw ()
{
return "missing option value";
}
// invalid_value
//
invalid_value::
~invalid_value () throw ()
{
}
void invalid_value::
print (::std::ostream& os) const
{
os << "invalid value '" << value ().c_str () << "' for option '"
<< option ().c_str () << "'";
}
const char* invalid_value::
what () const throw ()
{
return "invalid option value";
}
// eos_reached
//
void eos_reached::
print (::std::ostream& os) const
{
os << what ();
}
const char* eos_reached::
what () const throw ()
{
return "end of argument stream reached";
}
// file_io_failure
//
file_io_failure::
~file_io_failure () throw ()
{
}
void file_io_failure::
print (::std::ostream& os) const
{
os << "unable to open file '" << file ().c_str () << "' or read failure";
}
const char* file_io_failure::
what () const throw ()
{
return "unable to open file or read failure";
}
// unmatched_quote
//
unmatched_quote::
~unmatched_quote () throw ()
{
}
void unmatched_quote::
print (::std::ostream& os) const
{
os << "unmatched quote in argument '" << argument ().c_str () << "'";
}
const char* unmatched_quote::
what () const throw ()
{
return "unmatched quote";
}
// scanner
//
scanner::
~scanner ()
{
}
// argv_scanner
//
bool argv_scanner::
more ()
{
return i_ < argc_;
}
const char* argv_scanner::
peek ()
{
if (i_ < argc_)
return argv_[i_];
else
throw eos_reached ();
}
const char* argv_scanner::
next ()
{
if (i_ < argc_)
{
const char* r (argv_[i_]);
if (erase_)
{
for (int i (i_ + 1); i < argc_; ++i)
argv_[i - 1] = argv_[i];
--argc_;
argv_[argc_] = 0;
}
else
++i_;
return r;
}
else
throw eos_reached ();
}
void argv_scanner::
skip ()
{
if (i_ < argc_)
++i_;
else
throw eos_reached ();
}
// argv_file_scanner
//
bool argv_file_scanner::
more ()
{
if (!args_.empty ())
return true;
while (base::more ())
{
// See if the next argument is the file option.
//
const char* a (base::peek ());
const option_info* oi;
if (!skip_ && (oi = find (a)))
{
base::next ();
if (!base::more ())
throw missing_value (oi->option);
if (oi->search_func != 0)
{
std::string f (oi->search_func (base::next (), oi->arg));
if (!f.empty ())
load (f);
}
else
load (base::next ());
if (!args_.empty ())
return true;
}
else
{
if (!skip_)
skip_ = (std::strcmp (a, "--") == 0);
return true;
}
}
return false;
}
const char* argv_file_scanner::
peek ()
{
if (!more ())
throw eos_reached ();
return args_.empty () ? base::peek () : args_.front ().c_str ();
}
const char* argv_file_scanner::
next ()
{
if (!more ())
throw eos_reached ();
if (args_.empty ())
return base::next ();
else
{
hold_.swap (args_.front ());
args_.pop_front ();
return hold_.c_str ();
}
}
void argv_file_scanner::
skip ()
{
if (!more ())
throw eos_reached ();
if (args_.empty ())
return base::skip ();
else
args_.pop_front ();
}
const argv_file_scanner::option_info* argv_file_scanner::
find (const char* a) const
{
for (std::size_t i (0); i < options_count_; ++i)
if (std::strcmp (a, options_[i].option) == 0)
return &options_[i];
return 0;
}
void argv_file_scanner::
load (const std::string& file)
{
using namespace std;
ifstream is (file.c_str ());
if (!is.is_open ())
throw file_io_failure (file);
while (!is.eof ())
{
string line;
getline (is, line);
if (is.fail () && !is.eof ())
throw file_io_failure (file);
string::size_type n (line.size ());
// Trim the line from leading and trailing whitespaces.
//
if (n != 0)
{
const char* f (line.c_str ());
const char* l (f + n);
const char* of (f);
while (f < l && (*f == ' ' || *f == '\t' || *f == '\r'))
++f;
--l;
const char* ol (l);
while (l > f && (*l == ' ' || *l == '\t' || *l == '\r'))
--l;
if (f != of || l != ol)
line = f <= l ? string (f, l - f + 1) : string ();
}
// Ignore empty lines, those that start with #.
//
if (line.empty () || line[0] == '#')
continue;
string::size_type p (line.find (' '));
if (p == string::npos)
{
if (!skip_)
skip_ = (line == "--");
args_.push_back (line);
}
else
{
string s1 (line, 0, p);
// Skip leading whitespaces in the argument.
//
n = line.size ();
for (++p; p < n; ++p)
{
char c (line[p]);
if (c != ' ' && c != '\t' && c != '\r')
break;
}
string s2 (line, p);
// If the string is wrapped in quotes, remove them.
//
n = s2.size ();
char cf (s2[0]), cl (s2[n - 1]);
if (cf == '"' || cf == '\'' || cl == '"' || cl == '\'')
{
if (n == 1 || cf != cl)
throw unmatched_quote (s2);
s2 = string (s2, 1, n - 2);
}
const option_info* oi;
if (!skip_ && (oi = find (s1.c_str ())))
{
if (s2.empty ())
throw missing_value (oi->option);
if (oi->search_func != 0)
{
std::string f (oi->search_func (s2.c_str (), oi->arg));
if (!f.empty ())
load (f);
}
else
load (s2);
}
else
{
args_.push_back (s1);
args_.push_back (s2);
}
}
}
}
template <typename X>
struct parser
{
static void
parse (X& x, scanner& s)
{
std::string o (s.next ());
if (s.more ())
{
std::string v (s.next ());
std::istringstream is (v);
if (!(is >> x && is.eof ()))
throw invalid_value (o, v);
}
else
throw missing_value (o);
}
};
template <>
struct parser<bool>
{
static void
parse (bool& x, scanner& s)
{
s.next ();
x = true;
}
};
template <>
struct parser<std::string>
{
static void
parse (std::string& x, scanner& s)
{
const char* o (s.next ());
if (s.more ())
x = s.next ();
else
throw missing_value (o);
}
};
template <typename X>
struct parser<std::vector<X> >
{
static void
parse (std::vector<X>& c, scanner& s)
{
X x;
parser<X>::parse (x, s);
c.push_back (x);
}
};
template <typename X>
struct parser<std::set<X> >
{
static void
parse (std::set<X>& c, scanner& s)
{
X x;
parser<X>::parse (x, s);
c.insert (x);
}
};
template <typename K, typename V>
struct parser<std::map<K, V> >
{
static void
parse (std::map<K, V>& m, scanner& s)
{
std::string o (s.next ());
if (s.more ())
{
std::string ov (s.next ());
std::string::size_type p = ov.find ('=');
if (p == std::string::npos)
{
K k = K ();
if (!ov.empty ())
{
std::istringstream ks (ov);
if (!(ks >> k && ks.eof ()))
throw invalid_value (o, ov);
}
m[k] = V ();
}
else
{
K k = K ();
V v = V ();
std::string kstr (ov, 0, p);
std::string vstr (ov, p + 1);
if (!kstr.empty ())
{
std::istringstream ks (kstr);
if (!(ks >> k && ks.eof ()))
throw invalid_value (o, ov);
}
if (!vstr.empty ())
{
std::istringstream vs (vstr);
if (!(vs >> v && vs.eof ()))
throw invalid_value (o, ov);
}
m[k] = v;
}
}
else
throw missing_value (o);
}
};
template <typename X, typename T, T X::*M>
void
thunk (X& x, scanner& s)
{
parser<T>::parse (x.*M, s);
}
}
}
}
}
#include <map>
#include <cstring>
namespace odb
{
namespace sqlite
{
namespace details
{
// options
//
options::
options ()
: database_ (),
create_ (),
read_only_ (),
options_file_ ()
{
}
options::
options (int& argc,
char** argv,
bool erase,
::odb::sqlite::details::cli::unknown_mode opt,
::odb::sqlite::details::cli::unknown_mode arg)
: database_ (),
create_ (),
read_only_ (),
options_file_ ()
{
::odb::sqlite::details::cli::argv_scanner s (argc, argv, erase);
_parse (s, opt, arg);
}
options::
options (int start,
int& argc,
char** argv,
bool erase,
::odb::sqlite::details::cli::unknown_mode opt,
::odb::sqlite::details::cli::unknown_mode arg)
: database_ (),
create_ (),
read_only_ (),
options_file_ ()
{
::odb::sqlite::details::cli::argv_scanner s (start, argc, argv, erase);
_parse (s, opt, arg);
}
options::
options (int& argc,
char** argv,
int& end,
bool erase,
::odb::sqlite::details::cli::unknown_mode opt,
::odb::sqlite::details::cli::unknown_mode arg)
: database_ (),
create_ (),
read_only_ (),
options_file_ ()
{
::odb::sqlite::details::cli::argv_scanner s (argc, argv, erase);
_parse (s, opt, arg);
end = s.end ();
}
options::
options (int start,
int& argc,
char** argv,
int& end,
bool erase,
::odb::sqlite::details::cli::unknown_mode opt,
::odb::sqlite::details::cli::unknown_mode arg)
: database_ (),
create_ (),
read_only_ (),
options_file_ ()
{
::odb::sqlite::details::cli::argv_scanner s (start, argc, argv, erase);
_parse (s, opt, arg);
end = s.end ();
}
options::
options (::odb::sqlite::details::cli::scanner& s,
::odb::sqlite::details::cli::unknown_mode opt,
::odb::sqlite::details::cli::unknown_mode arg)
: database_ (),
create_ (),
read_only_ (),
options_file_ ()
{
_parse (s, opt, arg);
}
void options::
print_usage (::std::ostream& os)
{
os << "--database <filename> SQLite database file name. If the database file is not" << ::std::endl
<< " specified then a private, temporary on-disk database will" << ::std::endl
<< " be created. Use the ':memory:' special name to create a" << ::std::endl
<< " private, temporary in-memory database." << ::std::endl;
os << "--create Create the SQLite database if it does not already exist." << ::std::endl
<< " By default opening the database fails if it does not" << ::std::endl
<< " already exist." << ::std::endl;
os << "--read-only Open the SQLite database in read-only mode. By default" << ::std::endl
<< " the database is opened for reading and writing if" << ::std::endl
<< " possible, or reading only if the file is write-protected" << ::std::endl
<< " by the operating system." << ::std::endl;
os << "--options-file <file> Read additional options from <file>. Each option" << ::std::endl
<< " appearing on a separate line optionally followed by space" << ::std::endl
<< " and an option value. Empty lines and lines starting with" << ::std::endl
<< " '#' are ignored." << ::std::endl;
}
typedef
std::map<std::string, void (*) (options&, ::odb::sqlite::details::cli::scanner&)>
_cli_options_map;
static _cli_options_map _cli_options_map_;
struct _cli_options_map_init
{
_cli_options_map_init ()
{
_cli_options_map_["--database"] =
&::odb::sqlite::details::cli::thunk< options, std::string, &options::database_ >;
_cli_options_map_["--create"] =
&::odb::sqlite::details::cli::thunk< options, bool, &options::create_ >;
_cli_options_map_["--read-only"] =
&::odb::sqlite::details::cli::thunk< options, bool, &options::read_only_ >;
_cli_options_map_["--options-file"] =
&::odb::sqlite::details::cli::thunk< options, std::string, &options::options_file_ >;
}
};
static _cli_options_map_init _cli_options_map_init_;
bool options::
_parse (const char* o, ::odb::sqlite::details::cli::scanner& s)
{
_cli_options_map::const_iterator i (_cli_options_map_.find (o));
if (i != _cli_options_map_.end ())
{
(*(i->second)) (*this, s);
return true;
}
return false;
}
void options::
_parse (::odb::sqlite::details::cli::scanner& s,
::odb::sqlite::details::cli::unknown_mode opt_mode,
::odb::sqlite::details::cli::unknown_mode arg_mode)
{
bool opt = true;
while (s.more ())
{
const char* o = s.peek ();
if (std::strcmp (o, "--") == 0)
{
s.skip ();
opt = false;
continue;
}
if (opt && _parse (o, s));
else if (opt && std::strncmp (o, "-", 1) == 0 && o[1] != '\0')
{
switch (opt_mode)
{
case ::odb::sqlite::details::cli::unknown_mode::skip:
{
s.skip ();
continue;
}
case ::odb::sqlite::details::cli::unknown_mode::stop:
{
break;
}
case ::odb::sqlite::details::cli::unknown_mode::fail:
{
throw ::odb::sqlite::details::cli::unknown_option (o);
}
}
break;
}
else
{
switch (arg_mode)
{
case ::odb::sqlite::details::cli::unknown_mode::skip:
{
s.skip ();
continue;
}
case ::odb::sqlite::details::cli::unknown_mode::stop:
{
break;
}
case ::odb::sqlite::details::cli::unknown_mode::fail:
{
throw ::odb::sqlite::details::cli::unknown_argument (o);
}
}
break;
}
}
}
}
}
}
// Begin epilogue.
//
//
// End epilogue.
+418
View File
@@ -0,0 +1,418 @@
// This code was generated by CLI, a command line interface
// compiler for C++.
//
#ifndef LIBODB_SQLITE_DETAILS_OPTIONS_HXX
#define LIBODB_SQLITE_DETAILS_OPTIONS_HXX
// Begin prologue.
//
//
// End prologue.
#include <deque>
#include <iosfwd>
#include <string>
#include <cstddef>
#include <exception>
namespace odb
{
namespace sqlite
{
namespace details
{
namespace cli
{
class unknown_mode
{
public:
enum value
{
skip,
stop,
fail
};
unknown_mode (value v);
operator value () const
{
return v_;
}
private:
value v_;
};
// Exceptions.
//
class exception: public std::exception
{
public:
virtual void
print (::std::ostream&) const = 0;
};
::std::ostream&
operator<< (::std::ostream&, const exception&);
class unknown_option: public exception
{
public:
virtual
~unknown_option () throw ();
unknown_option (const std::string& option);
const std::string&
option () const;
virtual void
print (::std::ostream&) const;
virtual const char*
what () const throw ();
private:
std::string option_;
};
class unknown_argument: public exception
{
public:
virtual
~unknown_argument () throw ();
unknown_argument (const std::string& argument);
const std::string&
argument () const;
virtual void
print (::std::ostream&) const;
virtual const char*
what () const throw ();
private:
std::string argument_;
};
class missing_value: public exception
{
public:
virtual
~missing_value () throw ();
missing_value (const std::string& option);
const std::string&
option () const;
virtual void
print (::std::ostream&) const;
virtual const char*
what () const throw ();
private:
std::string option_;
};
class invalid_value: public exception
{
public:
virtual
~invalid_value () throw ();
invalid_value (const std::string& option,
const std::string& value);
const std::string&
option () const;
const std::string&
value () const;
virtual void
print (::std::ostream&) const;
virtual const char*
what () const throw ();
private:
std::string option_;
std::string value_;
};
class eos_reached: public exception
{
public:
virtual void
print (::std::ostream&) const;
virtual const char*
what () const throw ();
};
class file_io_failure: public exception
{
public:
virtual
~file_io_failure () throw ();
file_io_failure (const std::string& file);
const std::string&
file () const;
virtual void
print (::std::ostream&) const;
virtual const char*
what () const throw ();
private:
std::string file_;
};
class unmatched_quote: public exception
{
public:
virtual
~unmatched_quote () throw ();
unmatched_quote (const std::string& argument);
const std::string&
argument () const;
virtual void
print (::std::ostream&) const;
virtual const char*
what () const throw ();
private:
std::string argument_;
};
class scanner
{
public:
virtual
~scanner ();
virtual bool
more () = 0;
virtual const char*
peek () = 0;
virtual const char*
next () = 0;
virtual void
skip () = 0;
};
class argv_scanner: public scanner
{
public:
argv_scanner (int& argc, char** argv, bool erase = false);
argv_scanner (int start, int& argc, char** argv, bool erase = false);
int
end () const;
virtual bool
more ();
virtual const char*
peek ();
virtual const char*
next ();
virtual void
skip ();
private:
int i_;
int& argc_;
char** argv_;
bool erase_;
};
class argv_file_scanner: public argv_scanner
{
public:
argv_file_scanner (int& argc,
char** argv,
const std::string& option,
bool erase = false);
argv_file_scanner (int start,
int& argc,
char** argv,
const std::string& option,
bool erase = false);
struct option_info
{
// If search_func is not NULL, it is called, with the arg
// value as the second argument, to locate the options file.
// If it returns an empty string, then the file is ignored.
//
const char* option;
std::string (*search_func) (const char*, void* arg);
void* arg;
};
argv_file_scanner (int& argc,
char** argv,
const option_info* options,
std::size_t options_count,
bool erase = false);
argv_file_scanner (int start,
int& argc,
char** argv,
const option_info* options,
std::size_t options_count,
bool erase = false);
virtual bool
more ();
virtual const char*
peek ();
virtual const char*
next ();
virtual void
skip ();
private:
const option_info*
find (const char*) const;
void
load (const std::string& file);
typedef argv_scanner base;
const std::string option_;
option_info option_info_;
const option_info* options_;
std::size_t options_count_;
std::string hold_;
std::deque<std::string> args_;
bool skip_;
};
template <typename X>
struct parser;
}
}
}
}
#include <string>
namespace odb
{
namespace sqlite
{
namespace details
{
class options
{
public:
options (int& argc,
char** argv,
bool erase = false,
::odb::sqlite::details::cli::unknown_mode option = ::odb::sqlite::details::cli::unknown_mode::fail,
::odb::sqlite::details::cli::unknown_mode argument = ::odb::sqlite::details::cli::unknown_mode::stop);
options (int start,
int& argc,
char** argv,
bool erase = false,
::odb::sqlite::details::cli::unknown_mode option = ::odb::sqlite::details::cli::unknown_mode::fail,
::odb::sqlite::details::cli::unknown_mode argument = ::odb::sqlite::details::cli::unknown_mode::stop);
options (int& argc,
char** argv,
int& end,
bool erase = false,
::odb::sqlite::details::cli::unknown_mode option = ::odb::sqlite::details::cli::unknown_mode::fail,
::odb::sqlite::details::cli::unknown_mode argument = ::odb::sqlite::details::cli::unknown_mode::stop);
options (int start,
int& argc,
char** argv,
int& end,
bool erase = false,
::odb::sqlite::details::cli::unknown_mode option = ::odb::sqlite::details::cli::unknown_mode::fail,
::odb::sqlite::details::cli::unknown_mode argument = ::odb::sqlite::details::cli::unknown_mode::stop);
options (::odb::sqlite::details::cli::scanner&,
::odb::sqlite::details::cli::unknown_mode option = ::odb::sqlite::details::cli::unknown_mode::fail,
::odb::sqlite::details::cli::unknown_mode argument = ::odb::sqlite::details::cli::unknown_mode::stop);
options ();
// Option accessors.
//
const std::string&
database () const;
const bool&
create () const;
const bool&
read_only () const;
const std::string&
options_file () const;
// Print usage information.
//
static void
print_usage (::std::ostream&);
// Implementation details.
//
protected:
bool
_parse (const char*, ::odb::sqlite::details::cli::scanner&);
private:
void
_parse (::odb::sqlite::details::cli::scanner&,
::odb::sqlite::details::cli::unknown_mode option,
::odb::sqlite::details::cli::unknown_mode argument);
public:
std::string database_;
bool create_;
bool read_only_;
std::string options_file_;
};
}
}
}
#include "options.ixx"
// Begin epilogue.
//
//
// End epilogue.
#endif // LIBODB_SQLITE_DETAILS_OPTIONS_HXX
+249
View File
@@ -0,0 +1,249 @@
// This code was generated by CLI, a command line interface
// compiler for C++.
//
// Begin prologue.
//
//
// End prologue.
namespace odb
{
namespace sqlite
{
namespace details
{
namespace cli
{
// unknown_mode
//
inline unknown_mode::
unknown_mode (value v)
: v_ (v)
{
}
// exception
//
inline ::std::ostream&
operator<< (::std::ostream& os, const exception& e)
{
e.print (os);
return os;
}
// unknown_option
//
inline unknown_option::
unknown_option (const std::string& option)
: option_ (option)
{
}
inline const std::string& unknown_option::
option () const
{
return option_;
}
// unknown_argument
//
inline unknown_argument::
unknown_argument (const std::string& argument)
: argument_ (argument)
{
}
inline const std::string& unknown_argument::
argument () const
{
return argument_;
}
// missing_value
//
inline missing_value::
missing_value (const std::string& option)
: option_ (option)
{
}
inline const std::string& missing_value::
option () const
{
return option_;
}
// invalid_value
//
inline invalid_value::
invalid_value (const std::string& option,
const std::string& value)
: option_ (option), value_ (value)
{
}
inline const std::string& invalid_value::
option () const
{
return option_;
}
inline const std::string& invalid_value::
value () const
{
return value_;
}
// file_io_failure
//
inline file_io_failure::
file_io_failure (const std::string& file)
: file_ (file)
{
}
inline const std::string& file_io_failure::
file () const
{
return file_;
}
// unmatched_quote
//
inline unmatched_quote::
unmatched_quote (const std::string& argument)
: argument_ (argument)
{
}
inline const std::string& unmatched_quote::
argument () const
{
return argument_;
}
// argv_scanner
//
inline argv_scanner::
argv_scanner (int& argc, char** argv, bool erase)
: i_ (1), argc_ (argc), argv_ (argv), erase_ (erase)
{
}
inline argv_scanner::
argv_scanner (int start, int& argc, char** argv, bool erase)
: i_ (start), argc_ (argc), argv_ (argv), erase_ (erase)
{
}
inline int argv_scanner::
end () const
{
return i_;
}
// argv_file_scanner
//
inline argv_file_scanner::
argv_file_scanner (int& argc,
char** argv,
const std::string& option,
bool erase)
: argv_scanner (argc, argv, erase),
option_ (option),
options_ (&option_info_),
options_count_ (1),
skip_ (false)
{
option_info_.option = option_.c_str ();
option_info_.search_func = 0;
}
inline argv_file_scanner::
argv_file_scanner (int start,
int& argc,
char** argv,
const std::string& option,
bool erase)
: argv_scanner (start, argc, argv, erase),
option_ (option),
options_ (&option_info_),
options_count_ (1),
skip_ (false)
{
option_info_.option = option_.c_str ();
option_info_.search_func = 0;
}
inline argv_file_scanner::
argv_file_scanner (int& argc,
char** argv,
const option_info* options,
std::size_t options_count,
bool erase)
: argv_scanner (argc, argv, erase),
options_ (options),
options_count_ (options_count),
skip_ (false)
{
}
inline argv_file_scanner::
argv_file_scanner (int start,
int& argc,
char** argv,
const option_info* options,
std::size_t options_count,
bool erase)
: argv_scanner (start, argc, argv, erase),
options_ (options),
options_count_ (options_count),
skip_ (false)
{
}
}
}
}
}
namespace odb
{
namespace sqlite
{
namespace details
{
// options
//
inline const std::string& options::
database () const
{
return this->database_;
}
inline const bool& options::
create () const
{
return this->create_;
}
inline const bool& options::
read_only () const
{
return this->read_only_;
}
inline const std::string& options::
options_file () const
{
return this->options_file_;
}
}
}
}
// Begin epilogue.
//
//
// End epilogue.
+95
View File
@@ -0,0 +1,95 @@
// file : odb/sqlite/error.cxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <sqlite3.h>
#include <new> // std::bad_alloc
#include <string>
#include <odb/sqlite/connection.hxx>
#include <odb/sqlite/exceptions.hxx>
#include <odb/sqlite/details/config.hxx> // LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
using namespace std;
namespace odb
{
namespace sqlite
{
void
translate_error (int e, connection& c)
{
sqlite3* h (c.handle ());
// Extended error codes are only available in 3.6.5 and later.
//
#if SQLITE_VERSION_NUMBER >= 3006005
int ee (sqlite3_extended_errcode (h));
#else
int ee (0);
#endif
string m;
switch (e)
{
case SQLITE_NOMEM:
{
throw bad_alloc ();
}
case SQLITE_MISUSE:
{
// In case of SQLITE_MISUSE, error code/message may or may not
// be set.
//
ee = e;
m = "SQLite API misuse";
break;
}
#ifdef SQLITE_ABORT_ROLLBACK
case SQLITE_ABORT:
{
if (ee == SQLITE_ABORT_ROLLBACK)
throw forced_rollback ();
break;
}
#endif
case SQLITE_LOCKED:
{
#ifdef LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY
if (ee != SQLITE_LOCKED_SHAREDCACHE)
throw deadlock (); // The DROP TABLE special case.
#endif
// Getting SQLITE_LOCKED_SHAREDCACHE here means we don't have
// the unlock notify support. Translate this to timeout.
//
throw timeout ();
}
case SQLITE_BUSY:
case SQLITE_IOERR:
{
#if SQLITE_VERSION_NUMBER >= 3006005
if (e != SQLITE_IOERR || ee == SQLITE_IOERR_BLOCKED)
throw timeout ();
#endif
break;
}
default:
break;
}
if (m.empty ())
m = sqlite3_errmsg (h);
// Get rid of a trailing newline if there is one.
//
string::size_type n (m.size ());
if (n != 0 && m[n - 1] == '\n')
m.resize (n - 1);
throw database_exception (e, ee, m);
}
}
}
+28
View File
@@ -0,0 +1,28 @@
// file : odb/sqlite/error.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_ERROR_HXX
#define ODB_SQLITE_ERROR_HXX
#include <odb/pre.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/details/export.hxx>
namespace odb
{
namespace sqlite
{
class connection;
// Translate SQLite error and throw an appropriate exception.
//
LIBODB_SQLITE_EXPORT void
translate_error (int error, connection&);
}
}
#include <odb/post.hxx>
#endif // ODB_SQLITE_ERROR_HXX
+93
View File
@@ -0,0 +1,93 @@
// file : odb/sqlite/exceptions.cxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <sstream>
#include <odb/sqlite/exceptions.hxx>
using namespace std;
namespace odb
{
namespace sqlite
{
//
// forced_rollback
//
const char* forced_rollback::
what () const throw ()
{
return "transaction is forced to rollback";
}
forced_rollback* forced_rollback::
clone () const
{
return new forced_rollback (*this);
}
//
// database_exception
//
database_exception::
~database_exception () throw ()
{
}
database_exception::
database_exception (int e, int ee, const string& m)
: error_ (e), extended_error_ (ee), message_ (m)
{
ostringstream ostr;
ostr << error_;
if (error_ != extended_error_)
ostr << " (" << extended_error_ << ")";
ostr << ": " << message_;
what_ = ostr.str ();
}
const char* database_exception::
what () const throw ()
{
return what_.c_str ();
}
database_exception* database_exception::
clone () const
{
return new database_exception (*this);
}
//
// cli_exception
//
cli_exception::
cli_exception (const std::string& what)
: what_ (what)
{
}
cli_exception::
~cli_exception () throw ()
{
}
const char* cli_exception::
what () const throw ()
{
return what_.c_str ();
}
cli_exception* cli_exception::
clone () const
{
return new cli_exception (*this);
}
}
}
+101
View File
@@ -0,0 +1,101 @@
// file : odb/sqlite/exceptions.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_EXCEPTIONS_HXX
#define ODB_SQLITE_EXCEPTIONS_HXX
#include <odb/pre.hxx>
#include <string>
#include <odb/exceptions.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx>
#include <odb/sqlite/details/export.hxx>
namespace odb
{
namespace sqlite
{
// This exception is thrown if SQLite is forcing the current transaction
// to rollback. This can happen in SQLite 3.7.11 or later if one of the
// connections participating in the shared cache rolls back a transaction.
// See the SQLITE_ABORT_ROLLBACK extended error code for detail on this
// behavior.
//
struct LIBODB_SQLITE_EXPORT forced_rollback: recoverable
{
virtual const char*
what () const throw ();
virtual forced_rollback*
clone () const;
};
struct LIBODB_SQLITE_EXPORT database_exception: odb::database_exception
{
database_exception (int error,
int extended_error,
const std::string& message);
~database_exception () throw ();
int
error () const
{
return error_;
}
int
extended_error () const
{
return extended_error_;
}
const std::string&
message () const
{
return message_;
}
virtual const char*
what () const throw ();
virtual database_exception*
clone () const;
private:
int error_;
int extended_error_;
std::string message_;
std::string what_;
};
struct LIBODB_SQLITE_EXPORT cli_exception: odb::exception
{
cli_exception (const std::string& what);
~cli_exception () throw ();
virtual const char*
what () const throw ();
virtual cli_exception*
clone () const;
private:
std::string what_;
};
namespace core
{
using sqlite::database_exception;
using sqlite::cli_exception;
}
}
}
#include <odb/post.hxx>
#endif // ODB_SQLITE_EXCEPTIONS_HXX
+100
View File
@@ -0,0 +1,100 @@
// file : odb/sqlite/forward.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_FORWARD_HXX
#define ODB_SQLITE_FORWARD_HXX
#include <odb/pre.hxx>
#include <odb/forward.hxx>
namespace odb
{
namespace sqlite
{
namespace core
{
using namespace odb::common;
}
//
//
class database;
class connection;
typedef details::shared_ptr<connection> connection_ptr;
class connection_factory;
class statement;
class transaction;
class tracer;
namespace core
{
using sqlite::database;
using sqlite::connection;
using sqlite::connection_ptr;
using sqlite::transaction;
using sqlite::statement;
}
// Implementation details.
//
enum statement_kind
{
statement_select,
statement_insert,
statement_update,
statement_delete,
statement_generic
};
class binding;
class select_statement;
template <typename T>
class object_statements;
template <typename T>
class polymorphic_root_object_statements;
template <typename T>
class polymorphic_derived_object_statements;
template <typename T>
class no_id_object_statements;
template <typename T>
class view_statements;
template <typename T>
class container_statements;
template <typename T>
class smart_container_statements;
template <typename T, typename ST>
class section_statements;
class query_base;
class query_params;
}
namespace details
{
template <>
struct counter_type<sqlite::connection>
{
typedef shared_base counter;
};
template <>
struct counter_type<sqlite::query_params>
{
typedef shared_base counter;
};
}
}
#include <odb/post.hxx>
#endif // ODB_SQLITE_FORWARD_HXX
+253
View File
@@ -0,0 +1,253 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>libodb-sqlite</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\bin\</OutDir>
<TargetName>odb-sqlite-d-2.4-vc10</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\bin64\</OutDir>
<TargetName>odb-sqlite-d-2.4-vc10</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\bin\</OutDir>
<TargetName>odb-sqlite-2.4-vc10</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\bin64\</OutDir>
<TargetName>odb-sqlite-2.4-vc10</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>odb-d.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib\odb-sqlite-d.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>odb-d.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib64\odb-sqlite-d.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>odb.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib\odb-sqlite.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>odb.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib64\odb-sqlite.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="auto-handle.hxx" />
<ClInclude Include="binding.hxx" />
<ClInclude Include="connection-factory.hxx" />
<ClInclude Include="connection.hxx" />
<ClInclude Include="connection.ixx" />
<ClInclude Include="container-statements.hxx" />
<ClInclude Include="container-statements.txx" />
<ClInclude Include="database.hxx" />
<ClInclude Include="database.ixx" />
<ClInclude Include="details\config.hxx" />
<ClInclude Include="details\conversion.hxx" />
<ClInclude Include="details\export.hxx" />
<ClInclude Include="details\options.hxx" />
<ClInclude Include="details\options.ixx" />
<ClInclude Include="error.hxx" />
<ClInclude Include="exceptions.hxx" />
<ClInclude Include="forward.hxx" />
<ClInclude Include="no-id-object-result.hxx" />
<ClInclude Include="no-id-object-result.txx" />
<ClInclude Include="no-id-object-statements.hxx" />
<ClInclude Include="no-id-object-statements.txx" />
<ClInclude Include="polymorphic-object-result.hxx" />
<ClInclude Include="polymorphic-object-result.txx" />
<ClInclude Include="polymorphic-object-statements.hxx" />
<ClInclude Include="polymorphic-object-statements.txx" />
<ClInclude Include="prepared-query.hxx" />
<ClInclude Include="query-dynamic.hxx" />
<ClInclude Include="query-dynamic.ixx" />
<ClInclude Include="query-dynamic.txx" />
<ClInclude Include="query.hxx" />
<ClInclude Include="query.ixx" />
<ClInclude Include="query.txx" />
<ClInclude Include="section-statements.hxx" />
<ClInclude Include="section-statements.txx" />
<ClInclude Include="simple-object-result.hxx" />
<ClInclude Include="simple-object-result.txx" />
<ClInclude Include="simple-object-statements.hxx" />
<ClInclude Include="simple-object-statements.ixx" />
<ClInclude Include="simple-object-statements.txx" />
<ClInclude Include="sqlite-types.hxx" />
<ClInclude Include="statement-cache.hxx" />
<ClInclude Include="statement-cache.txx" />
<ClInclude Include="statement.hxx" />
<ClInclude Include="statements-base.hxx" />
<ClInclude Include="tracer.hxx" />
<ClInclude Include="traits-calls.hxx" />
<ClInclude Include="traits.hxx" />
<ClInclude Include="transaction-impl.hxx" />
<ClInclude Include="transaction-impl.ixx" />
<ClInclude Include="transaction.hxx" />
<ClInclude Include="transaction.ixx" />
<ClInclude Include="version.hxx" />
<ClInclude Include="view-result.hxx" />
<ClInclude Include="view-result.txx" />
<ClInclude Include="view-statements.hxx" />
<ClInclude Include="view-statements.txx" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="connection.cxx" />
<ClCompile Include="connection-factory.cxx" />
<ClCompile Include="database.cxx" />
<ClCompile Include="error.cxx" />
<ClCompile Include="exceptions.cxx" />
<ClCompile Include="prepared-query.cxx" />
<ClCompile Include="query.cxx" />
<ClCompile Include="query-dynamic.cxx" />
<ClCompile Include="query-const-expr.cxx" />
<ClCompile Include="simple-object-statements.cxx" />
<ClCompile Include="statement.cxx" />
<ClCompile Include="statements-base.cxx" />
<ClCompile Include="statement-cache.cxx" />
<ClCompile Include="tracer.cxx" />
<ClCompile Include="traits.cxx" />
<ClCompile Include="transaction.cxx" />
<ClCompile Include="transaction-impl.cxx" />
<ClCompile Include="details\options.cxx">
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)\details\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)\details\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)\details\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)\details\</ObjectFileName>
</ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,241 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{CAE48EC7-E979-4076-ABDB-DF5CFD41D7AB}</UniqueIdentifier>
<Extensions>cxx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{1C70458E-63CA-455F-AFDC-E2F291BD0F2A}</UniqueIdentifier>
<Extensions>h;hxx;ixx;txx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="auto-handle.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="binding.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="connection-factory.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="connection.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="connection.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="container-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="container-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="database.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="database.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\config.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\conversion.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\export.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\options.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\options.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="error.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="exceptions.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="forward.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="prepared-query.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query-dynamic.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query-dynamic.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query-dynamic.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="section-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="section-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-statements.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="sqlite-types.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statement-cache.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statement-cache.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statement.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statements-base.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="tracer.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="traits-calls.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="traits.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction-impl.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction-impl.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="version.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="connection.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="connection-factory.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="database.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="error.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="exceptions.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="prepared-query.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="query.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="query-dynamic.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="query-const-expr.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="simple-object-statements.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="statement.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="statements-base.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="statement-cache.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="tracer.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="traits.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="transaction.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="transaction-impl.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="details\options.cxx">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
+257
View File
@@ -0,0 +1,257 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>libodb-sqlite</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\bin\</OutDir>
<TargetName>odb-sqlite-d-2.4-vc11</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\bin64\</OutDir>
<TargetName>odb-sqlite-d-2.4-vc11</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\bin\</OutDir>
<TargetName>odb-sqlite-2.4-vc11</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\bin64\</OutDir>
<TargetName>odb-sqlite-2.4-vc11</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>odb-d.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib\odb-sqlite-d.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>odb-d.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib64\odb-sqlite-d.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>odb.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib\odb-sqlite.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>odb.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib64\odb-sqlite.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="auto-handle.hxx" />
<ClInclude Include="binding.hxx" />
<ClInclude Include="connection-factory.hxx" />
<ClInclude Include="connection.hxx" />
<ClInclude Include="connection.ixx" />
<ClInclude Include="container-statements.hxx" />
<ClInclude Include="container-statements.txx" />
<ClInclude Include="database.hxx" />
<ClInclude Include="database.ixx" />
<ClInclude Include="details\config.hxx" />
<ClInclude Include="details\conversion.hxx" />
<ClInclude Include="details\export.hxx" />
<ClInclude Include="details\options.hxx" />
<ClInclude Include="details\options.ixx" />
<ClInclude Include="error.hxx" />
<ClInclude Include="exceptions.hxx" />
<ClInclude Include="forward.hxx" />
<ClInclude Include="no-id-object-result.hxx" />
<ClInclude Include="no-id-object-result.txx" />
<ClInclude Include="no-id-object-statements.hxx" />
<ClInclude Include="no-id-object-statements.txx" />
<ClInclude Include="polymorphic-object-result.hxx" />
<ClInclude Include="polymorphic-object-result.txx" />
<ClInclude Include="polymorphic-object-statements.hxx" />
<ClInclude Include="polymorphic-object-statements.txx" />
<ClInclude Include="prepared-query.hxx" />
<ClInclude Include="query-dynamic.hxx" />
<ClInclude Include="query-dynamic.ixx" />
<ClInclude Include="query-dynamic.txx" />
<ClInclude Include="query.hxx" />
<ClInclude Include="query.ixx" />
<ClInclude Include="query.txx" />
<ClInclude Include="section-statements.hxx" />
<ClInclude Include="section-statements.txx" />
<ClInclude Include="simple-object-result.hxx" />
<ClInclude Include="simple-object-result.txx" />
<ClInclude Include="simple-object-statements.hxx" />
<ClInclude Include="simple-object-statements.ixx" />
<ClInclude Include="simple-object-statements.txx" />
<ClInclude Include="sqlite-types.hxx" />
<ClInclude Include="statement-cache.hxx" />
<ClInclude Include="statement-cache.txx" />
<ClInclude Include="statement.hxx" />
<ClInclude Include="statements-base.hxx" />
<ClInclude Include="tracer.hxx" />
<ClInclude Include="traits-calls.hxx" />
<ClInclude Include="traits.hxx" />
<ClInclude Include="transaction-impl.hxx" />
<ClInclude Include="transaction-impl.ixx" />
<ClInclude Include="transaction.hxx" />
<ClInclude Include="transaction.ixx" />
<ClInclude Include="version.hxx" />
<ClInclude Include="view-result.hxx" />
<ClInclude Include="view-result.txx" />
<ClInclude Include="view-statements.hxx" />
<ClInclude Include="view-statements.txx" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="connection.cxx" />
<ClCompile Include="connection-factory.cxx" />
<ClCompile Include="database.cxx" />
<ClCompile Include="error.cxx" />
<ClCompile Include="exceptions.cxx" />
<ClCompile Include="prepared-query.cxx" />
<ClCompile Include="query.cxx" />
<ClCompile Include="query-dynamic.cxx" />
<ClCompile Include="query-const-expr.cxx" />
<ClCompile Include="simple-object-statements.cxx" />
<ClCompile Include="statement.cxx" />
<ClCompile Include="statements-base.cxx" />
<ClCompile Include="statement-cache.cxx" />
<ClCompile Include="tracer.cxx" />
<ClCompile Include="traits.cxx" />
<ClCompile Include="transaction.cxx" />
<ClCompile Include="transaction-impl.cxx" />
<ClCompile Include="details\options.cxx">
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)\details\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)\details\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)\details\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)\details\</ObjectFileName>
</ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,241 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{CAE48EC7-E979-4076-ABDB-DF5CFD41D7AB}</UniqueIdentifier>
<Extensions>cxx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{1C70458E-63CA-455F-AFDC-E2F291BD0F2A}</UniqueIdentifier>
<Extensions>h;hxx;ixx;txx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="auto-handle.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="binding.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="connection-factory.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="connection.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="connection.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="container-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="container-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="database.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="database.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\config.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\conversion.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\export.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\options.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\options.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="error.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="exceptions.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="forward.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="prepared-query.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query-dynamic.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query-dynamic.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query-dynamic.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="section-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="section-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-statements.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="sqlite-types.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statement-cache.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statement-cache.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statement.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statements-base.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="tracer.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="traits-calls.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="traits.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction-impl.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction-impl.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="version.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="connection.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="connection-factory.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="database.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="error.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="exceptions.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="prepared-query.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="query.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="query-dynamic.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="query-const-expr.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="simple-object-statements.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="statement.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="statements-base.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="statement-cache.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="tracer.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="traits.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="transaction.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="transaction-impl.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="details\options.cxx">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
+261
View File
@@ -0,0 +1,261 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{BE62AFC4-4624-4CDA-A7CD-E9451D34AB6E}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>libodb-sqlite</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\bin\</OutDir>
<TargetName>odb-sqlite-d-2.4-vc12</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\bin64\</OutDir>
<TargetName>odb-sqlite-d-2.4-vc12</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\bin\</OutDir>
<TargetName>odb-sqlite-2.4-vc12</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\bin64\</OutDir>
<TargetName>odb-sqlite-2.4-vc12</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<AdditionalDependencies>odb-d.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib\odb-sqlite-d.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<AdditionalDependencies>odb-d.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib64\odb-sqlite-d.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<AdditionalDependencies>odb.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib\odb-sqlite.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4355;4800;4290;4251;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<AdditionalDependencies>odb.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>$(TargetPath)</OutputFile>
<ImportLibrary>..\..\lib64\odb-sqlite.lib</ImportLibrary>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="auto-handle.hxx" />
<ClInclude Include="binding.hxx" />
<ClInclude Include="connection-factory.hxx" />
<ClInclude Include="connection.hxx" />
<ClInclude Include="connection.ixx" />
<ClInclude Include="container-statements.hxx" />
<ClInclude Include="container-statements.txx" />
<ClInclude Include="database.hxx" />
<ClInclude Include="database.ixx" />
<ClInclude Include="details\config.hxx" />
<ClInclude Include="details\conversion.hxx" />
<ClInclude Include="details\export.hxx" />
<ClInclude Include="details\options.hxx" />
<ClInclude Include="details\options.ixx" />
<ClInclude Include="error.hxx" />
<ClInclude Include="exceptions.hxx" />
<ClInclude Include="forward.hxx" />
<ClInclude Include="no-id-object-result.hxx" />
<ClInclude Include="no-id-object-result.txx" />
<ClInclude Include="no-id-object-statements.hxx" />
<ClInclude Include="no-id-object-statements.txx" />
<ClInclude Include="polymorphic-object-result.hxx" />
<ClInclude Include="polymorphic-object-result.txx" />
<ClInclude Include="polymorphic-object-statements.hxx" />
<ClInclude Include="polymorphic-object-statements.txx" />
<ClInclude Include="prepared-query.hxx" />
<ClInclude Include="query-dynamic.hxx" />
<ClInclude Include="query-dynamic.ixx" />
<ClInclude Include="query-dynamic.txx" />
<ClInclude Include="query.hxx" />
<ClInclude Include="query.ixx" />
<ClInclude Include="query.txx" />
<ClInclude Include="section-statements.hxx" />
<ClInclude Include="section-statements.txx" />
<ClInclude Include="simple-object-result.hxx" />
<ClInclude Include="simple-object-result.txx" />
<ClInclude Include="simple-object-statements.hxx" />
<ClInclude Include="simple-object-statements.ixx" />
<ClInclude Include="simple-object-statements.txx" />
<ClInclude Include="sqlite-types.hxx" />
<ClInclude Include="statement-cache.hxx" />
<ClInclude Include="statement-cache.txx" />
<ClInclude Include="statement.hxx" />
<ClInclude Include="statements-base.hxx" />
<ClInclude Include="tracer.hxx" />
<ClInclude Include="traits-calls.hxx" />
<ClInclude Include="traits.hxx" />
<ClInclude Include="transaction-impl.hxx" />
<ClInclude Include="transaction-impl.ixx" />
<ClInclude Include="transaction.hxx" />
<ClInclude Include="transaction.ixx" />
<ClInclude Include="version.hxx" />
<ClInclude Include="view-result.hxx" />
<ClInclude Include="view-result.txx" />
<ClInclude Include="view-statements.hxx" />
<ClInclude Include="view-statements.txx" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="connection.cxx" />
<ClCompile Include="connection-factory.cxx" />
<ClCompile Include="database.cxx" />
<ClCompile Include="error.cxx" />
<ClCompile Include="exceptions.cxx" />
<ClCompile Include="prepared-query.cxx" />
<ClCompile Include="query.cxx" />
<ClCompile Include="query-dynamic.cxx" />
<ClCompile Include="query-const-expr.cxx" />
<ClCompile Include="simple-object-statements.cxx" />
<ClCompile Include="statement.cxx" />
<ClCompile Include="statements-base.cxx" />
<ClCompile Include="statement-cache.cxx" />
<ClCompile Include="tracer.cxx" />
<ClCompile Include="traits.cxx" />
<ClCompile Include="transaction.cxx" />
<ClCompile Include="transaction-impl.cxx" />
<ClCompile Include="details\options.cxx">
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)\details\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)\details\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)\details\</ObjectFileName>
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)\details\</ObjectFileName>
</ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,241 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{CAE48EC7-E979-4076-ABDB-DF5CFD41D7AB}</UniqueIdentifier>
<Extensions>cxx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{1C70458E-63CA-455F-AFDC-E2F291BD0F2A}</UniqueIdentifier>
<Extensions>h;hxx;ixx;txx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="auto-handle.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="binding.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="connection-factory.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="connection.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="connection.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="container-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="container-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="database.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="database.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\config.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\conversion.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\export.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\options.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="details\options.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="error.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="exceptions.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="forward.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="no-id-object-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="polymorphic-object-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="prepared-query.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query-dynamic.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query-dynamic.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query-dynamic.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="query.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="section-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="section-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-statements.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="simple-object-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="sqlite-types.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statement-cache.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statement-cache.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statement.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="statements-base.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="tracer.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="traits-calls.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="traits.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction-impl.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction-impl.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="transaction.ixx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="version.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-result.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-result.txx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-statements.hxx">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="view-statements.txx">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="connection.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="connection-factory.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="database.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="error.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="exceptions.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="prepared-query.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="query.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="query-dynamic.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="query-const-expr.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="simple-object-statements.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="statement.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="statements-base.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="statement-cache.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="tracer.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="traits.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="transaction.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="transaction-impl.cxx">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="details\options.cxx">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
+680
View File
@@ -0,0 +1,680 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="libodb-sqlite"
ProjectGUID="{E4055842-E6F1-4305-9FD2-EF70A92290C9}"
RootNamespace="libodb-sqlite"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="..\.."
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4267"
Optimization="0"
AdditionalIncludeDirectories="..\.."
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist ..\..\lib mkdir ..\..\lib"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="odb-d.lib sqlite3.lib"
OutputFile="$(OutDir)\bin\odb-sqlite-d-2.4-vc8.dll"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)\lib\odb-sqlite-d.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="..\.."
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4267"
Optimization="0"
AdditionalIncludeDirectories="..\.."
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist ..\..\lib64 mkdir ..\..\lib64"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="odb-d.lib sqlite3.lib"
OutputFile="$(OutDir)\bin64\odb-sqlite-d-2.4-vc8.dll"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)\lib64\odb-sqlite-d.lib"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="..\.."
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4267"
AdditionalIncludeDirectories="..\.."
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist ..\..\lib mkdir ..\..\lib"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="odb.lib sqlite3.lib"
OutputFile="$(OutDir)\bin\odb-sqlite-2.4-vc8.dll"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)\lib\odb-sqlite.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="..\.."
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4267"
AdditionalIncludeDirectories="..\.."
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist ..\..\lib64 mkdir ..\..\lib64"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="odb.lib sqlite3.lib"
OutputFile="$(OutDir)\bin64\odb-sqlite-2.4-vc8.dll"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)\lib64\odb-sqlite.lib"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cxx"
UniqueIdentifier="{7C8F7608-E2E0-444A-B971-0AADDB06C2AF}"
>
<File
RelativePath=".\connection.cxx"
>
</File>
<File
RelativePath=".\connection-factory.cxx"
>
</File>
<File
RelativePath=".\database.cxx"
>
</File>
<File
RelativePath=".\error.cxx"
>
</File>
<File
RelativePath=".\exceptions.cxx"
>
</File>
<File
RelativePath=".\prepared-query.cxx"
>
</File>
<File
RelativePath=".\query.cxx"
>
</File>
<File
RelativePath=".\query-dynamic.cxx"
>
</File>
<File
RelativePath=".\query-const-expr.cxx"
>
</File>
<File
RelativePath=".\simple-object-statements.cxx"
>
</File>
<File
RelativePath=".\statement.cxx"
>
</File>
<File
RelativePath=".\statements-base.cxx"
>
</File>
<File
RelativePath=".\statement-cache.cxx"
>
</File>
<File
RelativePath=".\tracer.cxx"
>
</File>
<File
RelativePath=".\traits.cxx"
>
</File>
<File
RelativePath=".\transaction.cxx"
>
</File>
<File
RelativePath=".\transaction-impl.cxx"
>
</File>
<File
RelativePath=".\details\options.cxx"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
ObjectFile="$(IntDir)\details\"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug|x64"
>
<Tool
Name="VCCLCompilerTool"
ObjectFile="$(IntDir)\details\"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
ObjectFile="$(IntDir)\details\"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|x64"
>
<Tool
Name="VCCLCompilerTool"
ObjectFile="$(IntDir)\details\"
/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hxx;ixx;txx"
UniqueIdentifier="{03E8CDD3-F32D-4A35-9EE5-82656B672C46}"
>
<File
RelativePath=".\auto-handle.hxx"
>
</File>
<File
RelativePath=".\binding.hxx"
>
</File>
<File
RelativePath=".\connection-factory.hxx"
>
</File>
<File
RelativePath=".\connection.hxx"
>
</File>
<File
RelativePath=".\connection.ixx"
>
</File>
<File
RelativePath=".\container-statements.hxx"
>
</File>
<File
RelativePath=".\container-statements.txx"
>
</File>
<File
RelativePath=".\database.hxx"
>
</File>
<File
RelativePath=".\database.ixx"
>
</File>
<File
RelativePath=".\details\config.hxx"
>
</File>
<File
RelativePath=".\details\conversion.hxx"
>
</File>
<File
RelativePath=".\details\export.hxx"
>
</File>
<File
RelativePath=".\details\options.hxx"
>
</File>
<File
RelativePath=".\details\options.ixx"
>
</File>
<File
RelativePath=".\error.hxx"
>
</File>
<File
RelativePath=".\exceptions.hxx"
>
</File>
<File
RelativePath=".\forward.hxx"
>
</File>
<File
RelativePath=".\no-id-object-result.hxx"
>
</File>
<File
RelativePath=".\no-id-object-result.txx"
>
</File>
<File
RelativePath=".\no-id-object-statements.hxx"
>
</File>
<File
RelativePath=".\no-id-object-statements.txx"
>
</File>
<File
RelativePath=".\polymorphic-object-result.hxx"
>
</File>
<File
RelativePath=".\polymorphic-object-result.txx"
>
</File>
<File
RelativePath=".\polymorphic-object-statements.hxx"
>
</File>
<File
RelativePath=".\polymorphic-object-statements.txx"
>
</File>
<File
RelativePath=".\prepared-query.hxx"
>
</File>
<File
RelativePath=".\query-dynamic.hxx"
>
</File>
<File
RelativePath=".\query-dynamic.ixx"
>
</File>
<File
RelativePath=".\query-dynamic.txx"
>
</File>
<File
RelativePath=".\query.hxx"
>
</File>
<File
RelativePath=".\query.ixx"
>
</File>
<File
RelativePath=".\query.txx"
>
</File>
<File
RelativePath=".\section-statements.hxx"
>
</File>
<File
RelativePath=".\section-statements.txx"
>
</File>
<File
RelativePath=".\simple-object-result.hxx"
>
</File>
<File
RelativePath=".\simple-object-result.txx"
>
</File>
<File
RelativePath=".\simple-object-statements.hxx"
>
</File>
<File
RelativePath=".\simple-object-statements.ixx"
>
</File>
<File
RelativePath=".\simple-object-statements.txx"
>
</File>
<File
RelativePath=".\sqlite-types.hxx"
>
</File>
<File
RelativePath=".\statement-cache.hxx"
>
</File>
<File
RelativePath=".\statement-cache.txx"
>
</File>
<File
RelativePath=".\statement.hxx"
>
</File>
<File
RelativePath=".\statements-base.hxx"
>
</File>
<File
RelativePath=".\tracer.hxx"
>
</File>
<File
RelativePath=".\traits-calls.hxx"
>
</File>
<File
RelativePath=".\traits.hxx"
>
</File>
<File
RelativePath=".\transaction-impl.hxx"
>
</File>
<File
RelativePath=".\transaction-impl.ixx"
>
</File>
<File
RelativePath=".\transaction.hxx"
>
</File>
<File
RelativePath=".\transaction.ixx"
>
</File>
<File
RelativePath=".\version.hxx"
>
</File>
<File
RelativePath=".\view-result.hxx"
>
</File>
<File
RelativePath=".\view-result.txx"
>
</File>
<File
RelativePath=".\view-statements.hxx"
>
</File>
<File
RelativePath=".\view-statements.txx"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
+687
View File
@@ -0,0 +1,687 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="libodb-sqlite"
ProjectGUID="{E4055842-E6F1-4305-9FD2-EF70A92290C9}"
RootNamespace="libodb-sqlite"
Keyword="Win32Proj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="..\.."
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4267"
Optimization="0"
AdditionalIncludeDirectories="..\.."
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist ..\..\lib mkdir ..\..\lib"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="odb-d.lib sqlite3.lib"
OutputFile="$(OutDir)\bin\odb-sqlite-d-2.4-vc9.dll"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)\lib\odb-sqlite-d.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="..\.."
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4267"
Optimization="0"
AdditionalIncludeDirectories="..\.."
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist ..\..\lib64 mkdir ..\..\lib64"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="odb-d.lib sqlite3.lib"
OutputFile="$(OutDir)\bin64\odb-sqlite-d-2.4-vc9.dll"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(OutDir)\lib64\odb-sqlite-d.lib"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="..\.."
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4267"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="..\.."
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist ..\..\lib mkdir ..\..\lib"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="odb.lib sqlite3.lib"
OutputFile="$(OutDir)\bin\odb-sqlite-2.4-vc9.dll"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)\lib\odb-sqlite.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="..\.."
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/wd4355 /wd4800 /wd4290 /wd4267"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="..\.."
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBODB_SQLITE_DYNAMIC_LIB;LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
CommandLine="if not exist ..\..\lib64 mkdir ..\..\lib64"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="odb.lib sqlite3.lib"
OutputFile="$(OutDir)\bin64\odb-sqlite-2.4-vc9.dll"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)\lib64\odb-sqlite.lib"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cxx"
UniqueIdentifier="{7C8F7608-E2E0-444A-B971-0AADDB06C2AF}"
>
<File
RelativePath=".\connection.cxx"
>
</File>
<File
RelativePath=".\connection-factory.cxx"
>
</File>
<File
RelativePath=".\database.cxx"
>
</File>
<File
RelativePath=".\error.cxx"
>
</File>
<File
RelativePath=".\exceptions.cxx"
>
</File>
<File
RelativePath=".\prepared-query.cxx"
>
</File>
<File
RelativePath=".\query.cxx"
>
</File>
<File
RelativePath=".\query-dynamic.cxx"
>
</File>
<File
RelativePath=".\query-const-expr.cxx"
>
</File>
<File
RelativePath=".\simple-object-statements.cxx"
>
</File>
<File
RelativePath=".\statement.cxx"
>
</File>
<File
RelativePath=".\statements-base.cxx"
>
</File>
<File
RelativePath=".\statement-cache.cxx"
>
</File>
<File
RelativePath=".\tracer.cxx"
>
</File>
<File
RelativePath=".\traits.cxx"
>
</File>
<File
RelativePath=".\transaction.cxx"
>
</File>
<File
RelativePath=".\transaction-impl.cxx"
>
</File>
<File
RelativePath=".\details\options.cxx"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
ObjectFile="$(IntDir)\details\"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug|x64"
>
<Tool
Name="VCCLCompilerTool"
ObjectFile="$(IntDir)\details\"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
ObjectFile="$(IntDir)\details\"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|x64"
>
<Tool
Name="VCCLCompilerTool"
ObjectFile="$(IntDir)\details\"
/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hxx;ixx;txx"
UniqueIdentifier="{03E8CDD3-F32D-4A35-9EE5-82656B672C46}"
>
<File
RelativePath=".\auto-handle.hxx"
>
</File>
<File
RelativePath=".\binding.hxx"
>
</File>
<File
RelativePath=".\connection-factory.hxx"
>
</File>
<File
RelativePath=".\connection.hxx"
>
</File>
<File
RelativePath=".\connection.ixx"
>
</File>
<File
RelativePath=".\container-statements.hxx"
>
</File>
<File
RelativePath=".\container-statements.txx"
>
</File>
<File
RelativePath=".\database.hxx"
>
</File>
<File
RelativePath=".\database.ixx"
>
</File>
<File
RelativePath=".\details\config.hxx"
>
</File>
<File
RelativePath=".\details\conversion.hxx"
>
</File>
<File
RelativePath=".\details\export.hxx"
>
</File>
<File
RelativePath=".\details\options.hxx"
>
</File>
<File
RelativePath=".\details\options.ixx"
>
</File>
<File
RelativePath=".\error.hxx"
>
</File>
<File
RelativePath=".\exceptions.hxx"
>
</File>
<File
RelativePath=".\forward.hxx"
>
</File>
<File
RelativePath=".\no-id-object-result.hxx"
>
</File>
<File
RelativePath=".\no-id-object-result.txx"
>
</File>
<File
RelativePath=".\no-id-object-statements.hxx"
>
</File>
<File
RelativePath=".\no-id-object-statements.txx"
>
</File>
<File
RelativePath=".\polymorphic-object-result.hxx"
>
</File>
<File
RelativePath=".\polymorphic-object-result.txx"
>
</File>
<File
RelativePath=".\polymorphic-object-statements.hxx"
>
</File>
<File
RelativePath=".\polymorphic-object-statements.txx"
>
</File>
<File
RelativePath=".\prepared-query.hxx"
>
</File>
<File
RelativePath=".\query-dynamic.hxx"
>
</File>
<File
RelativePath=".\query-dynamic.ixx"
>
</File>
<File
RelativePath=".\query-dynamic.txx"
>
</File>
<File
RelativePath=".\query.hxx"
>
</File>
<File
RelativePath=".\query.ixx"
>
</File>
<File
RelativePath=".\query.txx"
>
</File>
<File
RelativePath=".\section-statements.hxx"
>
</File>
<File
RelativePath=".\section-statements.txx"
>
</File>
<File
RelativePath=".\simple-object-result.hxx"
>
</File>
<File
RelativePath=".\simple-object-result.txx"
>
</File>
<File
RelativePath=".\simple-object-statements.hxx"
>
</File>
<File
RelativePath=".\simple-object-statements.ixx"
>
</File>
<File
RelativePath=".\simple-object-statements.txx"
>
</File>
<File
RelativePath=".\sqlite-types.hxx"
>
</File>
<File
RelativePath=".\statement-cache.hxx"
>
</File>
<File
RelativePath=".\statement-cache.txx"
>
</File>
<File
RelativePath=".\statement.hxx"
>
</File>
<File
RelativePath=".\statements-base.hxx"
>
</File>
<File
RelativePath=".\tracer.hxx"
>
</File>
<File
RelativePath=".\traits-calls.hxx"
>
</File>
<File
RelativePath=".\traits.hxx"
>
</File>
<File
RelativePath=".\transaction-impl.hxx"
>
</File>
<File
RelativePath=".\transaction-impl.ixx"
>
</File>
<File
RelativePath=".\transaction.hxx"
>
</File>
<File
RelativePath=".\transaction.ixx"
>
</File>
<File
RelativePath=".\version.hxx"
>
</File>
<File
RelativePath=".\view-result.hxx"
>
</File>
<File
RelativePath=".\view-result.txx"
>
</File>
<File
RelativePath=".\view-statements.hxx"
>
</File>
<File
RelativePath=".\view-statements.txx"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
+81
View File
@@ -0,0 +1,81 @@
// file : odb/sqlite/no-id-object-result.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_NO_ID_OBJECT_RESULT_HXX
#define ODB_SQLITE_NO_ID_OBJECT_RESULT_HXX
#include <odb/pre.hxx>
#include <cstddef> // std::size_t
#include <odb/schema-version.hxx>
#include <odb/no-id-object-result.hxx>
#include <odb/details/shared-ptr.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx> // query_base, query_params
#include <odb/sqlite/statement.hxx>
#include <odb/sqlite/traits-calls.hxx>
namespace odb
{
namespace sqlite
{
template <typename T>
class no_id_object_result_impl: public odb::no_id_object_result_impl<T>
{
public:
typedef odb::no_id_object_result_impl<T> base_type;
typedef typename base_type::object_type object_type;
typedef typename base_type::pointer_type pointer_type;
typedef object_traits_impl<object_type, id_sqlite> object_traits;
typedef typename base_type::pointer_traits pointer_traits;
typedef typename object_traits::statements_type statements_type;
virtual
~no_id_object_result_impl ();
no_id_object_result_impl (const query_base&,
const details::shared_ptr<select_statement>&,
statements_type&,
const schema_version_migration*);
virtual void
load (object_type&);
virtual void
next ();
virtual void
cache ();
virtual std::size_t
size ();
virtual void
invalidate ();
using base_type::current;
private:
// We need to hold on to the query parameters because SQLite uses
// the parameter buffers to find each next row.
//
details::shared_ptr<query_params> params_;
details::shared_ptr<select_statement> statement_;
statements_type& statements_;
object_traits_calls<object_type> tc_;
};
}
}
#include <odb/sqlite/no-id-object-result.txx>
#include <odb/post.hxx>
#endif // ODB_SQLITE_NO_ID_OBJECT_RESULT_HXX
+115
View File
@@ -0,0 +1,115 @@
// file : odb/sqlite/no-id-object-result.txx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <odb/callback.hxx>
#include <odb/exceptions.hxx> // result_not_cached
#include <odb/sqlite/no-id-object-statements.hxx>
namespace odb
{
namespace sqlite
{
template <typename T>
no_id_object_result_impl<T>::
~no_id_object_result_impl ()
{
if (!this->end_)
statement_->free_result ();
}
template <typename T>
void no_id_object_result_impl<T>::
invalidate ()
{
if (!this->end_)
{
statement_->free_result ();
this->end_ = true;
}
params_.reset ();
statement_.reset ();
}
template <typename T>
no_id_object_result_impl<T>::
no_id_object_result_impl (const query_base& q,
const details::shared_ptr<select_statement>& s,
statements_type& sts,
const schema_version_migration* svm)
: base_type (sts.connection ()),
params_ (q.parameters ()),
statement_ (s),
statements_ (sts),
tc_ (svm)
{
}
template <typename T>
void no_id_object_result_impl<T>::
load (object_type& obj)
{
// The image can grow between calls to load() as a result of other
// statements execution.
//
typename object_traits::image_type& im (statements_.image ());
if (im.version != statements_.select_image_version ())
{
binding& b (statements_.select_image_binding ());
tc_.bind (b.bind, im, statement_select);
statements_.select_image_version (im.version);
b.version++;
}
select_statement::result r (statement_->load ());
if (r == select_statement::truncated)
{
if (tc_.grow (im, statements_.select_image_truncated ()))
im.version++;
if (im.version != statements_.select_image_version ())
{
binding& b (statements_.select_image_binding ());
tc_.bind (b.bind, im, statement_select);
statements_.select_image_version (im.version);
b.version++;
statement_->reload ();
}
}
object_traits::callback (this->db_, obj, callback_event::pre_load);
tc_.init (obj, im, &this->db_);
object_traits::callback (this->db_, obj, callback_event::post_load);
}
template <typename T>
void no_id_object_result_impl<T>::
next ()
{
this->current (pointer_type ());
if (!statement_->next ())
{
statement_->free_result ();
this->end_ = true;
}
}
template <typename T>
void no_id_object_result_impl<T>::
cache ()
{
}
template <typename T>
std::size_t no_id_object_result_impl<T>::
size ()
{
throw result_not_cached ();
}
}
}
@@ -0,0 +1,137 @@
// file : odb/sqlite/no-id-object-statements.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_NO_ID_OBJECT_STATEMENTS_HXX
#define ODB_SQLITE_NO_ID_OBJECT_STATEMENTS_HXX
#include <odb/pre.hxx>
#include <cstddef> // std::size_t
#include <odb/forward.hxx>
#include <odb/traits.hxx>
#include <odb/details/shared-ptr.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx>
#include <odb/sqlite/sqlite-types.hxx>
#include <odb/sqlite/binding.hxx>
#include <odb/sqlite/statement.hxx>
#include <odb/sqlite/statements-base.hxx>
namespace odb
{
namespace sqlite
{
//
// Implementation for objects without object id.
//
template <typename T>
class no_id_object_statements: public statements_base
{
public:
typedef T object_type;
typedef object_traits_impl<object_type, id_sqlite> object_traits;
typedef typename object_traits::pointer_type pointer_type;
typedef typename object_traits::image_type image_type;
typedef sqlite::insert_statement insert_statement_type;
public:
no_id_object_statements (connection_type&);
virtual
~no_id_object_statements ();
// Object image.
//
image_type&
image () {return image_;}
// Insert binding.
//
std::size_t
insert_image_version () const { return insert_image_version_;}
void
insert_image_version (std::size_t v) {insert_image_version_ = v;}
binding&
insert_image_binding () {return insert_image_binding_;}
// Select binding.
//
std::size_t
select_image_version () const { return select_image_version_;}
void
select_image_version (std::size_t v) {select_image_version_ = v;}
binding&
select_image_binding () {return select_image_binding_;}
bool*
select_image_truncated () {return select_image_truncated_;}
// Statements.
//
insert_statement_type&
persist_statement ()
{
if (persist_ == 0)
{
persist_.reset (
new (details::shared) insert_statement_type (
conn_,
object_traits::persist_statement,
object_traits::versioned, // Process if versioned.
insert_image_binding_,
0));
}
return *persist_;
}
public:
// select = total
// insert = total - inverse; inverse == 0 for object without id
//
static const std::size_t insert_column_count =
object_traits::column_count;
static const std::size_t select_column_count =
object_traits::column_count;
private:
no_id_object_statements (const no_id_object_statements&);
no_id_object_statements& operator= (const no_id_object_statements&);
private:
image_type image_;
// Select binding.
//
std::size_t select_image_version_;
binding select_image_binding_;
bind select_image_bind_[select_column_count];
bool select_image_truncated_[select_column_count];
// Insert binding.
//
std::size_t insert_image_version_;
binding insert_image_binding_;
bind insert_image_bind_[insert_column_count];
details::shared_ptr<insert_statement_type> persist_;
};
}
}
#include <odb/sqlite/no-id-object-statements.txx>
#include <odb/post.hxx>
#endif // ODB_SQLITE_NO_ID_OBJECT_STATEMENTS_HXX
@@ -0,0 +1,37 @@
// file : odb/sqlite/no-id-object-statements.txx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <cstring> // std::memset
namespace odb
{
namespace sqlite
{
template <typename T>
no_id_object_statements<T>::
~no_id_object_statements ()
{
}
template <typename T>
no_id_object_statements<T>::
no_id_object_statements (connection_type& conn)
: statements_base (conn),
select_image_binding_ (select_image_bind_, select_column_count),
insert_image_binding_ (insert_image_bind_, insert_column_count)
{
image_.version = 0;
select_image_version_ = 0;
insert_image_version_ = 0;
std::memset (insert_image_bind_, 0, sizeof (insert_image_bind_));
std::memset (select_image_bind_, 0, sizeof (select_image_bind_));
std::memset (
select_image_truncated_, 0, sizeof (select_image_truncated_));
for (std::size_t i (0); i < select_column_count; ++i)
select_image_bind_[i].truncated = select_image_truncated_ + i;
}
}
}
@@ -0,0 +1,99 @@
// file : odb/sqlite/polymorphic-object-result.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_POLYMORPHIC_OBJECT_RESULT_HXX
#define ODB_SQLITE_POLYMORPHIC_OBJECT_RESULT_HXX
#include <odb/pre.hxx>
#include <cstddef> // std::size_t
#include <odb/schema-version.hxx>
#include <odb/polymorphic-object-result.hxx>
#include <odb/details/shared-ptr.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx> // query_base, query_params
#include <odb/sqlite/statement.hxx>
#include <odb/sqlite/traits-calls.hxx>
namespace odb
{
namespace sqlite
{
template <typename T>
class polymorphic_object_result_impl:
public odb::polymorphic_object_result_impl<T>
{
public:
typedef odb::polymorphic_object_result_impl<T> base_type;
typedef typename base_type::id_type id_type;
typedef typename base_type::object_type object_type;
typedef typename base_type::pointer_type pointer_type;
typedef object_traits_impl<object_type, id_sqlite> object_traits;
typedef typename base_type::pointer_traits pointer_traits;
typedef typename base_type::root_type root_type;
typedef typename base_type::discriminator_type discriminator_type;
typedef object_traits_impl<root_type, id_sqlite> root_traits;
typedef typename object_traits::statements_type statements_type;
virtual
~polymorphic_object_result_impl ();
polymorphic_object_result_impl (
const query_base&,
const details::shared_ptr<select_statement>&,
statements_type&,
const schema_version_migration*);
virtual void
load (object_type*, bool fetch);
virtual id_type
load_id ();
virtual discriminator_type
load_discriminator ();
virtual void
next ();
virtual void
cache ();
virtual std::size_t
size ();
virtual void
invalidate ();
using base_type::current;
private:
void
load_image ();
private:
// We need to hold on to the query parameters because SQLite uses
// the parameter buffers to find each next row.
//
details::shared_ptr<query_params> params_;
details::shared_ptr<select_statement> statement_;
statements_type& statements_;
object_traits_calls<object_type> tc_;
};
}
}
#include <odb/sqlite/polymorphic-object-result.txx>
#include <odb/post.hxx>
#endif // ODB_SQLITE_POLYMORPHIC_OBJECT_RESULT_HXX
@@ -0,0 +1,288 @@
// file : odb/sqlite/polymorphic-object-result.txx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <cassert>
#include <odb/callback.hxx>
#include <odb/exceptions.hxx> // result_not_cached
#include <odb/sqlite/polymorphic-object-statements.hxx>
namespace odb
{
namespace sqlite
{
template <typename T>
polymorphic_object_result_impl<T>::
~polymorphic_object_result_impl ()
{
if (!this->end_)
statement_->free_result ();
}
template <typename T>
void polymorphic_object_result_impl<T>::
invalidate ()
{
if (!this->end_)
{
statement_->free_result ();
this->end_ = true;
}
params_.reset ();
statement_.reset ();
}
template <typename T>
polymorphic_object_result_impl<T>::
polymorphic_object_result_impl (
const query_base& q,
const details::shared_ptr<select_statement>& s,
statements_type& sts,
const schema_version_migration* svm)
: base_type (sts.connection ()),
params_ (q.parameters ()),
statement_ (s),
statements_ (sts),
tc_ (svm)
{
}
template <typename T>
void polymorphic_object_result_impl<T>::
load (object_type* pobj, bool fetch)
{
if (fetch)
load_image ();
typename statements_type::root_statements_type& rsts (
statements_.root_statements ());
// This is a top-level call so the statements cannot be locked.
//
assert (!rsts.locked ());
typename statements_type::auto_lock l (rsts);
typename object_traits::image_type& i (statements_.image ());
typename root_traits::image_type& ri (rsts.image ());
id_type id (root_traits::id (ri));
// Determine this object's dynamic type.
//
typedef typename root_traits::info_type info_type;
discriminator_type d (root_traits::discriminator (ri));
discriminator_type disc (d);
// Use the polymorphic_info() helper to get concrete_info if
// object_type is concrete and NULL if it is abstract.
//
const info_type* spi (polymorphic_info (object_traits::info));
const info_type& pi (
spi != 0 && spi->discriminator == d
? *spi
: root_traits::map->find (d));
typedef typename root_traits::pointer_type root_pointer_type;
typedef typename root_traits::pointer_traits root_pointer_traits;
typename object_traits::pointer_cache_traits::insert_guard ig;
if (pobj == 0)
{
// Need to create a new instance of the dynamic type.
//
root_pointer_type rp (pi.create ());
pointer_type p (
root_pointer_traits::template static_pointer_cast<object_type> (rp));
// Insert it as a root pointer (for non-unique pointers, rp should
// still be valid and for unique pointers this is a no-op).
//
ig.reset (
object_traits::pointer_cache_traits::insert (this->db_, id, rp));
pobj = &pointer_traits::get_ref (p);
current (p);
}
else
{
// We are loading into an existing instance. If the static and
// dynamic types differ, then make sure the instance is at least
// of the dynamic type.
//
if (&pi != &object_traits::info)
{
const info_type& dpi (root_traits::map->find (typeid (*pobj)));
if (&dpi != &pi && dpi.derived (pi))
throw object_not_persistent (); // @@ type_mismatch ?
}
}
callback_event ce (callback_event::pre_load);
pi.dispatch (info_type::call_callback, this->db_, pobj, &ce);
tc_.init (*pobj, i, &this->db_);
// Initialize the id image and binding and load the rest of the object
// (containers, dynamic part, etc).
//
typename object_traits::id_image_type& idi (statements_.id_image ());
root_traits::init (idi, id);
binding& idb (statements_.id_image_binding ());
if (idi.version != statements_.id_image_version () || idb.version == 0)
{
object_traits::bind (idb.bind, idi);
statements_.id_image_version (idi.version);
idb.version++;
}
tc_.load_ (statements_, *pobj, false);
// Load the dynamic part of the object unless static and dynamic
// types are the same.
//
if (&pi != &object_traits::info)
{
std::size_t d (object_traits::depth);
pi.dispatch (info_type::call_load, this->db_, pobj, &d);
};
rsts.load_delayed (tc_.version ());
l.unlock ();
ce = callback_event::post_load;
pi.dispatch (info_type::call_callback, this->db_, pobj, &ce);
object_traits::pointer_cache_traits::load (ig.position ());
ig.release ();
}
template <typename T>
typename polymorphic_object_result_impl<T>::id_type
polymorphic_object_result_impl<T>::
load_id ()
{
load_image ();
return root_traits::id (statements_.root_statements ().image ());
}
template <typename T>
typename polymorphic_object_result_impl<T>::discriminator_type
polymorphic_object_result_impl<T>::
load_discriminator ()
{
load_image ();
return root_traits::discriminator (
statements_.root_statements ().image ());
}
template <typename T>
void polymorphic_object_result_impl<T>::
next ()
{
this->current (pointer_type ());
if (!statement_->next ())
{
statement_->free_result ();
this->end_ = true;
}
}
template <typename T, typename R>
struct polymorphic_image_rebind
{
// Derived type version.
//
typedef object_traits_impl<T, id_sqlite> traits;
static bool
rebind (typename traits::statements_type& sts,
const schema_version_migration* svm)
{
typename traits::image_type& im (sts.image ());
if (traits::check_version (sts.select_image_versions (), im))
{
binding& b (sts.select_image_binding (traits::depth));
object_traits_calls<T> tc (svm);
tc.bind (b.bind, 0, 0, im, statement_select);
traits::update_version (
sts.select_image_versions (), im, sts.select_image_bindings ());
return true;
}
return false;
}
};
template <typename R>
struct polymorphic_image_rebind<R, R>
{
// Root type version.
//
typedef object_traits_impl<R, id_sqlite> traits;
static bool
rebind (typename traits::statements_type& sts,
const schema_version_migration* svm)
{
typename traits::image_type& im (sts.image ());
if (im.version != sts.select_image_version ())
{
binding& b (sts.select_image_binding ());
object_traits_calls<R> tc (svm);
tc.bind (b.bind, im, statement_select);
sts.select_image_version (im.version);
b.version++;
return true;
}
return false;
}
};
template <typename T>
void polymorphic_object_result_impl<T>::
load_image ()
{
typedef polymorphic_image_rebind<object_type, root_type> image_rebind;
// The image can grow between calls to load() as a result of other
// statements execution.
//
image_rebind::rebind (statements_, tc_.version ());
select_statement::result r (statement_->load ());
if (r == select_statement::truncated)
{
typename object_traits::image_type& im (statements_.image ());
if (tc_.grow (im, statements_.select_image_truncated ()))
im.version++;
if (image_rebind::rebind (statements_, tc_.version ()))
statement_->reload ();
}
}
template <typename T>
void polymorphic_object_result_impl<T>::
cache ()
{
}
template <typename T>
std::size_t polymorphic_object_result_impl<T>::
size ()
{
throw result_not_cached ();
}
}
}
@@ -0,0 +1,480 @@
// file : odb/sqlite/polymorphic-object-statements.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_POLYMORPHIC_OBJECT_STATEMENTS_HXX
#define ODB_SQLITE_POLYMORPHIC_OBJECT_STATEMENTS_HXX
#include <odb/pre.hxx>
#include <cstddef> // std::size_t
#include <odb/forward.hxx>
#include <odb/traits.hxx>
#include <odb/details/shared-ptr.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/forward.hxx>
#include <odb/sqlite/sqlite-types.hxx>
#include <odb/sqlite/binding.hxx>
#include <odb/sqlite/statement.hxx>
#include <odb/sqlite/statements-base.hxx>
#include <odb/sqlite/simple-object-statements.hxx>
namespace odb
{
namespace sqlite
{
//
// Implementation for polymorphic objects.
//
template <typename T>
class polymorphic_root_object_statements: public object_statements<T>
{
public:
typedef typename object_statements<T>::connection_type connection_type;
typedef typename object_statements<T>::object_traits object_traits;
typedef typename object_statements<T>::id_image_type id_image_type;
typedef
typename object_traits::discriminator_image_type
discriminator_image_type;
typedef
typename object_statements<T>::select_statement_type
select_statement_type;
public:
// Interface compatibility with derived_object_statements.
//
typedef polymorphic_root_object_statements root_statements_type;
root_statements_type&
root_statements ()
{
return *this;
}
public:
// Discriminator binding.
//
discriminator_image_type&
discriminator_image () {return discriminator_image_;}
std::size_t
discriminator_image_version () const
{return discriminator_image_version_;}
void
discriminator_image_version (std::size_t v)
{discriminator_image_version_ = v;}
binding&
discriminator_image_binding () {return discriminator_image_binding_;}
bool*
discriminator_image_truncated () {return discriminator_image_truncated_;}
// Id binding for discriminator retrieval.
//
id_image_type&
discriminator_id_image () {return discriminator_id_image_;}
std::size_t
discriminator_id_image_version () const
{return discriminator_id_image_version_;}
void
discriminator_id_image_version (std::size_t v)
{discriminator_id_image_version_ = v;}
binding&
discriminator_id_image_binding ()
{return discriminator_id_image_binding_;}
//
//
select_statement_type&
find_discriminator_statement ()
{
if (find_discriminator_ == 0)
{
find_discriminator_.reset (
new (details::shared) select_statement_type (
this->conn_,
object_traits::find_discriminator_statement,
false, // Doesn't need to be processed.
false, // Don't optimize.
discriminator_id_image_binding_,
discriminator_image_binding_));
}
return *find_discriminator_;
}
public:
polymorphic_root_object_statements (connection_type&);
virtual
~polymorphic_root_object_statements ();
// Static "override" (statements type).
//
void
load_delayed (const schema_version_migration* svm)
{
assert (this->locked ());
if (!this->delayed_.empty ())
this->template load_delayed_<polymorphic_root_object_statements> (
svm);
}
public:
static const std::size_t id_column_count =
object_statements<T>::id_column_count;
static const std::size_t discriminator_column_count =
object_traits::discriminator_column_count;
static const std::size_t managed_optimistic_column_count =
object_traits::managed_optimistic_column_count;
private:
// Discriminator image.
//
discriminator_image_type discriminator_image_;
std::size_t discriminator_image_version_;
binding discriminator_image_binding_;
bind discriminator_image_bind_[discriminator_column_count +
managed_optimistic_column_count];
bool discriminator_image_truncated_[discriminator_column_count +
managed_optimistic_column_count];
// Id image for discriminator retrieval (only used as a parameter).
//
id_image_type discriminator_id_image_;
std::size_t discriminator_id_image_version_;
binding discriminator_id_image_binding_;
bind discriminator_id_image_bind_[id_column_count];
details::shared_ptr<select_statement_type> find_discriminator_;
};
template <typename T>
class polymorphic_derived_object_statements: public statements_base
{
public:
typedef T object_type;
typedef object_traits_impl<object_type, id_sqlite> object_traits;
typedef typename object_traits::id_type id_type;
typedef typename object_traits::pointer_type pointer_type;
typedef typename object_traits::id_image_type id_image_type;
typedef typename object_traits::image_type image_type;
typedef typename object_traits::root_type root_type;
typedef
polymorphic_root_object_statements<root_type>
root_statements_type;
typedef typename object_traits::base_type base_type;
typedef
typename object_traits::base_traits::statements_type
base_statements_type;
typedef
typename object_traits::extra_statement_cache_type
extra_statement_cache_type;
typedef sqlite::insert_statement insert_statement_type;
typedef sqlite::select_statement select_statement_type;
typedef sqlite::update_statement update_statement_type;
typedef sqlite::delete_statement delete_statement_type;
typedef typename root_statements_type::auto_lock auto_lock;
public:
polymorphic_derived_object_statements (connection_type&);
virtual
~polymorphic_derived_object_statements ();
public:
// Delayed loading.
//
static void
delayed_loader (odb::database&,
const id_type&,
root_type&,
const schema_version_migration*);
public:
// Root and immediate base statements.
//
root_statements_type&
root_statements ()
{
return root_statements_;
}
base_statements_type&
base_statements ()
{
return base_statements_;
}
public:
// Object image.
//
image_type&
image ()
{
return image_;
}
// Insert binding.
//
std::size_t
insert_image_version () const { return insert_image_version_;}
void
insert_image_version (std::size_t v) {insert_image_version_ = v;}
std::size_t
insert_id_binding_version () const { return insert_id_binding_version_;}
void
insert_id_binding_version (std::size_t v) {insert_id_binding_version_ = v;}
binding&
insert_image_binding () {return insert_image_binding_;}
// Update binding.
//
std::size_t
update_image_version () const { return update_image_version_;}
void
update_image_version (std::size_t v) {update_image_version_ = v;}
std::size_t
update_id_binding_version () const { return update_id_binding_version_;}
void
update_id_binding_version (std::size_t v) {update_id_binding_version_ = v;}
binding&
update_image_binding () {return update_image_binding_;}
// Select binding.
//
std::size_t*
select_image_versions () { return select_image_versions_;}
binding*
select_image_bindings () {return select_image_bindings_;}
binding&
select_image_binding (std::size_t d)
{
return select_image_bindings_[object_traits::depth - d];
}
bool*
select_image_truncated () {return select_image_truncated_;}
// Object id binding (comes from the root statements).
//
id_image_type&
id_image () {return root_statements_.id_image ();}
std::size_t
id_image_version () const {return root_statements_.id_image_version ();}
void
id_image_version (std::size_t v) {root_statements_.id_image_version (v);}
binding&
id_image_binding () {return root_statements_.id_image_binding ();}
binding&
optimistic_id_image_binding () {
return root_statements_.optimistic_id_image_binding ();}
// Statements.
//
insert_statement_type&
persist_statement ()
{
if (persist_ == 0)
{
persist_.reset (
new (details::shared) insert_statement_type (
conn_,
object_traits::persist_statement,
object_traits::versioned, // Process if versioned.
insert_image_binding_,
0));
}
return *persist_;
}
select_statement_type&
find_statement (std::size_t d)
{
std::size_t i (object_traits::depth - d);
details::shared_ptr<select_statement_type>& p (find_[i]);
if (p == 0)
{
p.reset (
new (details::shared) select_statement_type (
conn_,
object_traits::find_statements[i],
object_traits::versioned, // Process if versioned.
false, // Don't optimize.
root_statements_.id_image_binding (),
select_image_bindings_[i]));
}
return *p;
}
update_statement_type&
update_statement ()
{
if (update_ == 0)
{
update_.reset (
new (details::shared) update_statement_type (
conn_,
object_traits::update_statement,
object_traits::versioned, // Process if versioned.
update_image_binding_));
}
return *update_;
}
delete_statement_type&
erase_statement ()
{
if (erase_ == 0)
{
erase_.reset (
new (details::shared) delete_statement_type (
conn_,
object_traits::erase_statement,
root_statements_.id_image_binding ()));
}
return *erase_;
}
// Extra (container, section) statement cache.
//
extra_statement_cache_type&
extra_statement_cache ()
{
return extra_statement_cache_.get (
conn_,
image_,
id_image (),
id_image_binding (),
&id_image_binding ()); // Note, not id+version.
}
public:
// select = total - id - separate_load + base::select
// insert = total - inverse
// update = total - inverse - id - readonly - separate_update
//
static const std::size_t id_column_count =
object_traits::id_column_count;
static const std::size_t select_column_count =
object_traits::column_count -
id_column_count -
object_traits::separate_load_column_count +
base_statements_type::select_column_count;
static const std::size_t insert_column_count =
object_traits::column_count -
object_traits::inverse_column_count;
static const std::size_t update_column_count = insert_column_count -
object_traits::id_column_count -
object_traits::readonly_column_count -
object_traits::separate_update_column_count;
private:
polymorphic_derived_object_statements (
const polymorphic_derived_object_statements&);
polymorphic_derived_object_statements&
operator= (const polymorphic_derived_object_statements&);
private:
root_statements_type& root_statements_;
base_statements_type& base_statements_;
extra_statement_cache_ptr<extra_statement_cache_type,
image_type,
id_image_type> extra_statement_cache_;
image_type image_;
// Select binding. Here we are have an array of statements/bindings
// one for each depth. In other words, if we have classes root, base,
// and derived, then we have the following array of statements:
//
// [0] d + b + r
// [1] d + b
// [2] d
//
// Also, because we have a chain of images bound to these statements,
// we have an array of versions, one entry for each base plus one for
// our own image.
//
// A poly-abstract class only needs the first statement and in this
// case we have only one entry in the the bindings and statements
// arrays (but not versions; we still have a chain of images).
//
std::size_t select_image_versions_[object_traits::depth];
binding select_image_bindings_[
object_traits::abstract ? 1 : object_traits::depth];
bind select_image_bind_[select_column_count];
bool select_image_truncated_[select_column_count];
// Insert binding. The id binding is copied from the hierarchy root.
//
std::size_t insert_image_version_;
std::size_t insert_id_binding_version_;
binding insert_image_binding_;
bind insert_image_bind_[insert_column_count];
// Update binding. The id suffix binding is copied from the hierarchy
// root.
//
std::size_t update_image_version_;
std::size_t update_id_binding_version_;
binding update_image_binding_;
bind update_image_bind_[update_column_count + id_column_count];
details::shared_ptr<insert_statement_type> persist_;
details::shared_ptr<select_statement_type> find_[
object_traits::abstract ? 1 : object_traits::depth];
details::shared_ptr<update_statement_type> update_;
details::shared_ptr<delete_statement_type> erase_;
};
}
}
#include <odb/sqlite/polymorphic-object-statements.txx>
#include <odb/post.hxx>
#endif // ODB_SQLITE_POLYMORPHIC_OBJECT_STATEMENTS_HXX
@@ -0,0 +1,146 @@
// file : odb/sqlite/polymorphic-object-statements.txx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <cstring> // std::memset
#include <odb/callback.hxx>
#include <odb/exceptions.hxx>
#include <odb/sqlite/connection.hxx>
#include <odb/sqlite/transaction.hxx>
#include <odb/sqlite/statement-cache.hxx>
#include <odb/sqlite/traits-calls.hxx>
namespace odb
{
namespace sqlite
{
//
// polymorphic_root_object_statements
//
template <typename T>
polymorphic_root_object_statements<T>::
~polymorphic_root_object_statements ()
{
}
template <typename T>
polymorphic_root_object_statements<T>::
polymorphic_root_object_statements (connection_type& conn)
: object_statements<T> (conn),
discriminator_image_binding_ (discriminator_image_bind_,
discriminator_column_count +
managed_optimistic_column_count),
discriminator_id_image_binding_ (discriminator_id_image_bind_,
id_column_count)
{
discriminator_image_.version = 0;
discriminator_id_image_.version = 0;
discriminator_image_version_ = 0;
discriminator_id_image_version_ = 0;
std::memset (discriminator_image_bind_,
0,
sizeof (discriminator_image_bind_));
std::memset (discriminator_id_image_bind_,
0,
sizeof (discriminator_id_image_bind_));
std::memset (discriminator_image_truncated_,
0,
sizeof (discriminator_image_truncated_));
for (std::size_t i (0);
i < discriminator_column_count + managed_optimistic_column_count;
++i)
{
discriminator_image_bind_[i].truncated =
discriminator_image_truncated_ + i;
}
}
//
// polymorphic_derived_object_statements
//
template <typename T>
polymorphic_derived_object_statements<T>::
~polymorphic_derived_object_statements ()
{
}
template <typename T>
polymorphic_derived_object_statements<T>::
polymorphic_derived_object_statements (connection_type& conn)
: statements_base (conn),
root_statements_ (conn.statement_cache ().find_object<root_type> ()),
base_statements_ (conn.statement_cache ().find_object<base_type> ()),
insert_image_binding_ (insert_image_bind_, insert_column_count),
update_image_binding_ (update_image_bind_,
update_column_count + id_column_count)
{
image_.base = &base_statements_.image ();
image_.version = 0;
for (std::size_t i (0); i < object_traits::depth; ++i)
select_image_versions_[i] = 0;
for (std::size_t i (0);
i < (object_traits::abstract ? 1 : object_traits::depth);
++i)
{
select_image_bindings_[i].bind = select_image_bind_;
select_image_bindings_[i].count = object_traits::find_column_counts[i];
}
insert_image_version_ = 0;
insert_id_binding_version_ = 0;
update_image_version_ = 0;
update_id_binding_version_ = 0;
std::memset (insert_image_bind_, 0, sizeof (insert_image_bind_));
std::memset (update_image_bind_, 0, sizeof (update_image_bind_));
std::memset (select_image_bind_, 0, sizeof (select_image_bind_));
std::memset (
select_image_truncated_, 0, sizeof (select_image_truncated_));
for (std::size_t i (0); i < select_column_count; ++i)
select_image_bind_[i].truncated = select_image_truncated_ + i;
}
template <typename T>
void polymorphic_derived_object_statements<T>::
delayed_loader (odb::database& db,
const id_type& id,
root_type& robj,
const schema_version_migration* svm)
{
connection_type& conn (transaction::current ().connection ());
polymorphic_derived_object_statements& sts (
conn.statement_cache ().find_object<object_type> ());
root_statements_type& rsts (sts.root_statements ());
object_type& obj (static_cast<object_type&> (robj));
// The same code as in object_statements::load_delayed_().
//
object_traits_calls<T> tc (svm);
if (!tc.find_ (sts, &id))
throw object_not_persistent ();
object_traits::callback (db, obj, callback_event::pre_load);
tc.init (obj, sts.image (), &db);
tc.load_ (sts, obj, false); // Load containers, etc.
rsts.load_delayed (svm);
{
typename root_statements_type::auto_unlock u (rsts);
object_traits::callback (db, obj, callback_event::post_load);
}
}
}
}
+16
View File
@@ -0,0 +1,16 @@
// file : odb/sqlite/prepared-query.cxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <odb/sqlite/prepared-query.hxx>
namespace odb
{
namespace sqlite
{
prepared_query_impl::
~prepared_query_impl ()
{
}
}
}
+35
View File
@@ -0,0 +1,35 @@
// file : odb/sqlite/prepared-query.hxx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SQLITE_PREPARED_QUERY_HXX
#define ODB_SQLITE_PREPARED_QUERY_HXX
#include <odb/pre.hxx>
#include <odb/prepared-query.hxx>
#include <odb/sqlite/version.hxx>
#include <odb/sqlite/query.hxx>
#include <odb/sqlite/details/export.hxx>
namespace odb
{
namespace sqlite
{
struct LIBODB_SQLITE_EXPORT prepared_query_impl: odb::prepared_query_impl
{
virtual
~prepared_query_impl ();
prepared_query_impl (odb::connection& c): odb::prepared_query_impl (c) {}
sqlite::query_base query;
};
}
}
#include <odb/post.hxx>
#endif // ODB_SQLITE_PREPARED_QUERY_HXX

Some files were not shown because too many files have changed in this diff Show More