Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
f6ae9357
Commit
f6ae9357
authored
15 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
[#1777] Add code indentation/formatting in the buil system
parent
c429d4fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
astylerc
+15
-0
15 additions, 0 deletions
astylerc
sflphone-common/Makefile.am
+11
-1
11 additions, 1 deletion
sflphone-common/Makefile.am
sflphone-common/globals.mak
+3
-0
3 additions, 0 deletions
sflphone-common/globals.mak
with
29 additions
and
1 deletion
astylerc
0 → 100644
+
15
−
0
View file @
f6ae9357
# Filename: sflphone-common/astylerc
# Purpose: config file for astyle
# http://astyle.sourceforge.net/astyle.html
# Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
# Savoir-faire Linux Inc
# http://www.sflphone.org
style=kr # Kernighan & Ritchie style formatting/indenting uses linux bracket
indent=spaces=4 # Use spaces instead of tabs for indentation
indent-classes # Indent 'class' and 'struct' blocks so that the blocks 'public:', 'protected:' and 'private:' are indented
indent-switches # Indent 'switch' blocks so that the 'case X:' statements are indented in the switch block
break-blocks # Pad empty lines around header blocks (e.g. 'if', 'while'...).
brackets=linux
unpad=paren
-d
This diff is collapsed.
Click to expand it.
sflphone-common/Makefile.am
+
11
−
1
View file @
f6ae9357
include
globals.mak
# Makefile.am
SOURCES
=
if
BUILD_TEST
TESTS_DIR
=
test
unittest
:
...
...
@@ -14,8 +18,14 @@ unittest:
@
echo
" -- You need the cppunit devel package to compile the unitary tests."
endif
ACLOCAL_AMFLAGS
=
-I
m4
indent
:
@
echo
"Indenting code:"
if
[
-f
$(
ASTYLERC
)
]
;
then
\
$(
indent
)
--options
=
$(
ASTYLERC
)
--recursive
*
.cpp
*
.h
;
\
fi
ACLOCAL_AMFLAGS
=
-I
m4
SUBDIRS
=
libs src ringtones po man
$(
TESTS_DIR
)
EXTRA_DIST
=
m4/
*
.m4 tools/
*
.sh platform/
*
images/
*
README.gentoo
This diff is collapsed.
Click to expand it.
sflphone-common/globals.mak
+
3
−
0
View file @
f6ae9357
...
...
@@ -3,6 +3,9 @@ src=$(top_srcdir)
sflcodecdir
=
$(
DESTDIR
)$(
libdir
)
/sflphone/codecs
sflplugindir
=
$(
DESTDIR
)$(
libdir
)
/sflphone/plugins
ASTYLERC
=
"../astylerc"
indent
=
"/usr/bin/astyle"
PJSIP_VERSION
=
"1.0.2"
# for pjsip
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment