|
| 1 | +This directory used to contain lots of build scripts for building |
| 2 | +MySQL on various platforms. They are mostly gone, use cmake instead. |
| 3 | + |
| 4 | +Some scripts have been kept for backward compatibility (other scripts |
| 5 | +depend on them). Others have been kept to illustrate how to enable |
| 6 | +gcov or gprof, or explicitly selecting 64bit architecture. If you |
| 7 | +want to use these scripts for building, you may want to speed things |
| 8 | +up a bit by setting environment variable MAKEFLAGS="-j8" |
| 9 | +(or some other number/flag depending on your environment) |
| 10 | + |
| 11 | +The recommended way to build MySQL for developers: |
| 12 | + |
| 13 | +cd <some build directory> |
| 14 | +cmake <path to source directory> |
| 15 | +make |
| 16 | + |
| 17 | +This will give you a release build, with compiler options taken from |
| 18 | +../cmake/build_configurations/compiler_options.cmake |
| 19 | +and "feature set" taken from |
| 20 | +../cmake/build_configurations/feature_set.cmake |
| 21 | + |
| 22 | +Adding -DWITH_DEBUG=1 to the cmake command line gives you a debug build. |
| 23 | + |
| 24 | + |
| 25 | +Building on Windows is slightly different: |
| 26 | +cd <some build directory> |
| 27 | +cmake <path to source directonry> |
| 28 | + |
| 29 | +devenv MySQL.sln /build Debug |
| 30 | +or |
| 31 | +devenv MySQL.sln /build RelWithDebInfo |
| 32 | + |
| 33 | + |
| 34 | +If you have special needs, you can disable the defaults by setting |
| 35 | +these cmake variables off: |
| 36 | + |
| 37 | +WITH_DEFAULT_COMPILER_OPTIONS |
| 38 | +WITH_DEFAULT_FEATURE_SET |
0 commit comments