void-packages/common/build-style
Đoàn Trần Công Danh 1af5a29d87 build-style/cmake: set CMAKE_BUILD_TYPE to None
- CMAKE_BUILD_TYPE=Release will force -O3 instead of respecting our
  CFLAGS and CXXFLAGS
- Theoretically, we could patch cmake to always use -O2 instead,
  however, patching will break users' expectation when compiling their
  our code.
- RelWithDebInfo could be another option if it's acceptable to always
  have debug symbol available.
- However, some projects ignore all CFLAGS and CXXFLAGS;
- Some other projects relies on CMAKE_BUILD_TYPE=Release to install to
  correct location and/or disable coverage.
- To get away with -O3, we need patching either ways, let's go with
  CMAKE_BUILD_TYPE=None, and patch all problematic softwares.
2021-04-03 09:52:55 +07:00
..
cargo.sh
cmake.sh build-style/cmake: set CMAKE_BUILD_TYPE to None 2021-04-03 09:52:55 +07:00
configure.sh
fetch.sh xbps-src: quote wrksrc to allow whitespace 2020-09-03 21:03:32 +02:00
gem.sh
gemspec.sh
gnu-configure.sh libtool: stop put /usr/lib{32,64} into RPATH 2021-02-21 07:44:26 +07:00
gnu-makefile.sh common/build-style/gnu-makefile: pass CXXFLAGS in make invocation. 2020-12-06 22:03:54 -03:00
go.sh common/build-style: remove go_get from Go style. 2021-02-20 02:01:31 -03:00
haskell-stack.sh xbps-src: quote wrksrc to allow whitespace 2020-09-03 21:03:32 +02:00
meson.sh build-style/meson.sh: move <lang>_args to build-in options section and fix cross compiling of rust code 2021-02-20 13:13:21 +01:00
meta.sh
perl-module.sh build-style/perl-module: put . into @INC 2021-02-06 13:10:59 +07:00
perl-ModuleBuild.sh
python-module.sh
python2-module.sh
python3-module.sh build-style/python3-module: prefer pytest in do_check 2020-12-09 15:45:53 -05:00
python3-pep517.sh build-style/python3-pep517: make sure ./build exists in do_install 2021-02-03 16:30:01 -05:00
qmake.sh build-style/qmake: look for modules in target 2021-03-08 10:40:33 +07:00
R-cran.sh
raku-dist.sh
README
ruby-module.sh build-style/ruby-module: fix _vendorlibdir because of multilib change 2021-02-24 07:37:52 +07:00
scons.sh
slashpackage.sh
texmf.sh common/build-style/texmf.sh: various improvments. 2021-01-19 19:46:52 +01:00
void-cross.sh cross*: drop the cross_triplet and _triplet variables 2021-03-15 23:37:10 +01:00
waf.sh build-style: change all build-styles to use /usr/libNN 2020-12-22 22:18:25 +01:00
waf3.sh build-style: change all build-styles to use /usr/libNN 2020-12-22 22:18:25 +01:00

BUILD STYLES
============

These shell snippets provide support for multiple build systems, i.e GNU configure,
CMake, etc. A build style file must provide at least the following functions:

	- do_configure
	- do_build
	- do_install

If a source package defines its own do_xxx() function, the function defined in
the build style file is simply ignored.