10 * gcc >= 4.7 or clang >= 3.4 C compiller
17 git clone https://github.com/Softmotions/ejdb.git
21 cmake -DCMAKE_BUILD_TYPE=Release ../
24 # Or you can create tgz package:
28 ### CMake basic build(-D) options
31 // Build ejdb sample projects
34 // Build shared libraries
35 BUILD_SHARED_LIBS:BOOL=ON
40 // Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo.
41 CMAKE_BUILD_TYPE:STRING=Release
43 // Install path prefix, prepended onto install directories.
44 CMAKE_INSTALL_PREFIX:PATH=/usr/local
46 // Enable PPA package build
49 // Build .deb instalation packages
52 // Build .tgz package archive
55 // Upload debian packages to the launchpad ppa repository
59 ### Building Windows libs
61 You need to checkout the [MXE cross build environment](http://mxe.cc)
62 Then create/edit MXE settings file:
69 Save the following content in `settings.mk`:
73 MXE_TARGETS := x86_64-w64-mingw32.static i686-w64-mingw32.static
74 LOCAL_PKG_LIST := winpthreads pcre zlib lzo bzip2 cunit
75 .DEFAULT local-pkg-list:
76 local-pkg-list: $(LOCAL_PKG_LIST)
86 Build libejdb windows binaries:
89 export MXE_HOME=<mxe checkout dir>
90 cd <ejdb checkout dir>
93 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../win64-tc.cmake ..
97 EJDB binary package installation
98 ===================================
104 sudo add-apt-repository ppa:adamansky/ejdb
106 sudo apt-get install ejdb ejdb-dbg