Merge lp:~pete-woods/hud/random-build-changes into lp:hud/phablet

Proposed by Pete Woods
Status: Merged
Approved by: Ted Gould
Approved revision: 373
Merged at revision: 372
Proposed branch: lp:~pete-woods/hud/random-build-changes
Merge into: lp:hud/phablet
Diff against target: 41 lines (+6/-3)
2 files modified
CMakeLists.txt (+5/-2)
debian/rules (+1/-1)
To merge this branch: bzr merge lp:~pete-woods/hud/random-build-changes
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+157297@code.launchpad.net

Commit message

Make docs only when asked for, and set C standard to C11

Description of the change

Make docs only when asked for, and set C standard to C11

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-04-02 16:30:44 +0000
3+++ CMakeLists.txt 2013-04-05 08:16:23 +0000
4@@ -10,6 +10,7 @@
5 message(FATAL_ERROR "In-tree build attempt detected, aborting. Set your build dir outside your source dir, delete CMakeCache.txt from source root and try again.")
6 endif()
7
8+option(ENABLE_DOCUMENTATION "Enable documentation." OFF)
9 option(ENABLE_TESTS "Enable tests." ON)
10 option(ENABLE_VOICE_TESTS "Enable voice tests" ON)
11 option(ENABLE_SCALABILITY_TESTS "Additional scalability tests that are potentially very slow to run." OFF)
12@@ -121,7 +122,7 @@
13 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
14 include_directories(${CMAKE_CURRENT_BINARY_DIR})
15
16-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -fPIC")
17+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -fPIC")
18
19 add_subdirectory(data)
20 add_subdirectory(libhud-client)
21@@ -143,4 +144,6 @@
22 endif()
23
24 add_subdirectory(tools-vala)
25-add_subdirectory(docs)
26+if(${ENABLE_DOCUMENTATION})
27+ add_subdirectory(docs)
28+endif()
29
30=== modified file 'debian/rules'
31--- debian/rules 2013-04-02 08:34:53 +0000
32+++ debian/rules 2013-04-05 08:16:23 +0000
33@@ -8,7 +8,7 @@
34 dh $@ --parallel
35
36 override_dh_auto_configure:
37- dh_auto_configure -- -DDEBIAN_TARGET_DIR="${DEBIAN_TARGET_DIR}" -DENABLE_VOICE_TESTS=OFF
38+ dh_auto_configure -- -DDEBIAN_TARGET_DIR="${DEBIAN_TARGET_DIR}" -DENABLE_DOCUMENTATION=ON -DENABLE_VOICE_TESTS=OFF
39
40 override_dh_install:
41 dh_install --fail-missing

Subscribers

People subscribed via source and target branches