Template to bootstrap configure/automake projects for C++, libtool, Qt, NodeJS, PHP, Shell-Scripts, etc. Extends autotools, by building packages for Debian and RPM, specifying generic library dependencies, creating desktop applications with icons, etc. https://mrw.sh/development/bootstrap-build-environment
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
Marc Wäckerlin 3bb9c86e81 detect wrong options il y a 4 ans
debian fixed build for rpm and deb il y a 7 ans
doc better support for new C++ standards, for README.md and more options in build-in-docker.sh il y a 4 ans
scripts detect wrong options il y a 4 ans
AUTHORS AUTHOR updated to new homepage il y a 9 ans
COPYING update of build system il y a 6 ans
ChangeLog fix rpm builds il y a 6 ans
INSTALL better support for new C++ standards, for README.md and more options in build-in-docker.sh il y a 4 ans
NEWS initial release for packaging il y a 9 ans
README.md use README.md instead of README il y a 6 ans
autogen.sh updated build system il y a 8 ans
ax_check_qt.m4 fix severe bug in build dependencies that slowes down build time - all projects should be updated; fix more bugs in rependency resolving il y a 6 ans
ax_cxx_compile_stdcxx.m4 better support for new C++ standards, for README.md and more options in build-in-docker.sh il y a 4 ans
ax_cxx_compile_stdcxx_11.m4 updated build system il y a 8 ans
ax_init_standard_project.m4 better support for new C++ standards, for README.md and more options in build-in-docker.sh il y a 4 ans
bootstrap-build-environment.desktop.in fixed icon and desktop file il y a 9 ans
bootstrap-build-environment.spec.in fix rpm builds il y a 6 ans
bootstrap.sh better support for new C++ standards, for README.md and more options in build-in-docker.sh il y a 4 ans
build-in-docker.conf fix typo il y a 7 ans
build-in-docker.sh better support for new C++ standards, for README.md and more options in build-in-docker.sh il y a 4 ans
build-resource-file.sh new features and fixes il y a 9 ans
configure.ac fixed build for rpm and deb il y a 7 ans
dependency-graph.sh update of build system il y a 6 ans
mac-create-app-bundle.sh fix Mac OSX X11 dependency il y a 6 ans
makefile.am improve QT_PLUGIN_PATH detection; improve PROJECT_URL default; fix example dir; improve mac app build; tested build for deb and rpm il y a 6 ans
makefile_test.inc.am prepare to include makefiles il y a 8 ans
resolve-debbuilddeps.sh fix rpm builds il y a 6 ans
resolve-rpmbuilddeps.sh fix severe bug in build dependencies that slowes down build time - all projects should be updated; fix more bugs in rependency resolving il y a 6 ans
rpmsign.exp fixed build for rpm and deb il y a 7 ans
sql-to-dot.sed prepare to include makefiles il y a 8 ans
template.sh better support for new C++ standards, for README.md and more options in build-in-docker.sh il y a 4 ans

README.md

Simplify Your Project Build Environment

Automake and Autoconf based build environment that especially supports and preconfigures:

  • C++, including:
    • QT (without qmake, just using the AutoTools)
    • LibTool
    • Library dependencies
    • CPP-Unit
    • PKG-Config dependency file
  • Doxygen for documentation
  • Scripts
  • HTML / Web projects
  • Examples
  • Tests
  • Debian packaging
  • RPM packaging
  • Mac OSX App Bundle creation
  • Subversion
  • SQL to Doxygen schema documentation
  • Build in Docker
  • Resolve package dependencies
  • ...

Makefiles and other files are generated automatically, necessary build and dependency rules are automatically added. There are no redundancies. This reduces extremely the size of your configuration. The whole build system becomes extremely simple, lean and smart.

Simply setup a new project:

  1. create a subversion basic tree
  2. checkout subversion repository
  3. cd into the new project subversion working copy
  4. call with full path: /path/to/bootstrap.sh
  5. if trunk has been created, cd to trunk
  6. follow the instructions, i.e. edit configure.ac
  7. run again: /path/to/bootstrap.sh
  8. add some generated files: svn add COPYING ChangeLog INSTALL
  9. check files, i.e. all makefile.am, set Section in debian/control.in
  10. your project is setup and compilable, test: ./bootstrap.sh -b

For more details, see:

./bootstrap.sh -h

Example:

There is a just created empty subversion repository:

https://dev.marc.waeckerlin.org/svn/project-name

Setup a basic project:

svn co https://dev.marc.waeckerlin.org/svn/project-name
cd project-name
../bootstrap-build-environment/scripts/bootstrap.sh
cd trunk

The file AUTHORS is already correct due to my gnupg setup:

Firstname Lastname (https://my.homepage.xyz) <me@mysite.xyz>

Edit the file README, I add the following lines:

First line is the headline, the short description, e.g. in the packages

The following lines describe your project...
They also appear in the package description

Edit configure.ac, since I want to publish scripts, generate doxygen, debian and rpm packages, I enable the following lines:

AX_USE_SCRIPTS
AX_USE_DOXYGEN
AX_USE_DEBIAN_PACKAGING
AX_USE_RPM_PACKAGING

Also I check "Section" in debian/control.in and set it do development.

Then I continue, I rerun bootstrap.sh, this time with option -b which calls make distcheck at the end:

../../bootstrap-build-environment/scripts/bootstrap.sh -b

Add some additional files:

svn add trunk/{COPYING,INSTALL,ChangeLog}

Everything is fine, so checkin the changes and cleanup the system:

cd ..
svn ci -m "initial project creation"
cd ..
rm -rf project-name
svn co https://dev.marc.waeckerlin.org/svn/project-name/trunk project-name