-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure_mysql_client.sh
More file actions
executable file
·44 lines (35 loc) · 1.1 KB
/
Copy pathconfigure_mysql_client.sh
File metadata and controls
executable file
·44 lines (35 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# This is a helper script to configure mysql (client only) on mac.
# THIS DOES NOT BUILD ANYTHING!
# It will enter the source directory and run the configuration script. It will
# then return to this directory and you will have to manually enter the
# directory type 'make'.
#
########## BEGIN USER EDIT SECTION #############
srcDir=~/code/mysql-server
# Build options, each one beginning with '-D' because it's CMAKE
BUILD_OPTIONS=" \
-DWITH_UNIT_TESTS=OFF \
-DINSTALL_BINDIR=/usr/local/bin \
-DINSTALL_INCLUDEDIR=/usr/local/include \
-DINSTALL_LIBDIR=/usr/local/lib \
-DWITHOUT_SERVER=ON \
-DDOWNLOAD_BOOST=1 \
-DWITH_BOOST=./boost \
-DOPENSSL_INCLUDE_DIR=/usr/local/include \
-DOPENSSL_LIBRARIES=/usr/local/lib
"
#-DWITH_SSL=/usr/local/ssl
# Release or Debug?
BUILD_TYPE="-DCMAKE_BUILD_TYPE=Release"
########## END USER EDIT SECTION #############
# Let's begin. First, enter the new directory
originalDir=`pwd`
cd $srcDir
# Out-of-tree build
mkdir -p build
cd build
# Run the configure script
cmake .. $BUILD_OPTIONS $BUILD_TYPE
# Finally, return to the original directory
cd $originalDir