Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Added docs for build_args
Browse files Browse the repository at this point in the history
  • Loading branch information
bhdouglass committed Aug 1, 2018
1 parent e905e87 commit d613f42
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions clickable/build_templates/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def make_install(self):
def _build(self):
command = 'cmake'

if self.config.conf_opts:
command = '{} {}'.format(command, self.config.conf_opts)
if self.config.build_args:
command = '{} {}'.format(command, self.config.build_args)

self.run_container_command('{} {}'.format(command, self.cwd))

Expand Down
4 changes: 2 additions & 2 deletions clickable/build_templates/qmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def _build(self):
else:
raise Exception('{} is not supported by the qmake build yet'.format(self.build_arch))

if self.config.conf_opts:
command = '{} {}'.format(command, self.config.conf_opts)
if self.config.build_args:
command = '{} {}'.format(command, self.config.build_args)

self.run_container_command('{} {}'.format(command, self.cwd))

Expand Down
2 changes: 1 addition & 1 deletion clickable/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Config(object):
'make_jobs': 0,
'gopath': None,
'docker_image': None,
'conf_opts': None,
'build_args': None,
}

PURE_QML_QMAKE = 'pure-qml-qmake'
Expand Down
5 changes: 5 additions & 0 deletions docs/clickable-json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,8 @@ gopath
------

Optional, the gopath on the host machine. If left blank, the ``GOPATH`` env var will be used.

build_args
----------

Optional, arguments to pass to qmake or cmake. Ex: ``CONFIG+=ubuntu``

0 comments on commit d613f42

Please sign in to comment.