Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
66aeccda
Commit
66aeccda
authored
Jun 09, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure script
parent
1d2aa6e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
91 additions
and
25 deletions
+91
-25
.gitignore
.gitignore
+3
-0
Makefile
Makefile
+0
-11
configure
configure
+87
-13
cppa.creator.user
cppa.creator.user
+1
-1
No files found.
.gitignore
View file @
66aeccda
...
...
@@ -12,3 +12,6 @@ cppa.creator.user.1.3
libcppa.Makefile
cpp0x_test
cpp0x_test.dSYM/
Makefile
Makefile.rules
libcppa.Makefile
Makefile
deleted
100644 → 0
View file @
1d2aa6e9
all
:
./create_libcppa_Makefile.sh
>
libcppa.Makefile
make
-f
libcppa.Makefile
make
-C
unit_testing
make
-C
queue_performances
clean
:
make
-f
libcppa.Makefile clean
make
-C
unit_testing clean
make
-C
queue_performances clean
configure
View file @
66aeccda
#!/bin/bash
# some neede variables to create 'Makefile.rules'
HEADERS
=
""
SOURCES
=
""
NLINE
=
"
\\
n"
BSLASH
=
"
\\\\
"
# appends *.hpp from $1 to $HEADERS
function
append_hpp_from
()
{
for
i
in
"
$1
"
/
*
.hpp
;
do
HEADERS
=
"
$HEADERS
${
BSLASH
}${
NLINE
}
$i
"
done
}
# appends *.cpp from $1 to $SOURCES
function
append_cpp_from
()
{
for
i
in
"
$1
/"
*
.cpp
;
do
SOURCES
=
"
$SOURCES
${
BSLASH
}${
NLINE
}
$i
"
done
}
# default flags
gcc_flags
=
"-std=c++0x -pedantic -Wall -Wextra -g -O0 -I/opt/local/include/ -fpermissive"
# get all g++ binaries
gcc_found
=
$(
find /bin/ /usr/bin /opt/bin /opt/local/bin
-regex
"^.*g
\+\+
.*$"
2>/dev/null
)
# holds the finally selected g++ binary
gcc_selected
=
""
# checks if g++ binary $1 is able to compile cpp0x_test.cpp
function
compatibility_test
()
{
if
$1
$gcc_flags
-o
cpp0x_test cpp0x_test.cpp &>/dev/null
;
then
...
...
@@ -16,7 +36,7 @@ function compatibility_test()
fi
fi
}
# iterates over all found g++ binaries until a suitable binary is found
for
i
in
$gcc_found
;
do
version
=
$(
$i
-v
2>&1 |
grep
-oE
"gcc version [0-9](
\.
[0-9]){2}"
|
grep
-oE
"[0-9](
\.
[0-9]){2}"
)
if
test
"!"
$version
"<"
4.6.0
;
then
...
...
@@ -26,19 +46,73 @@ for i in $gcc_found ; do
fi
fi
done
# did we found a suitable g++ binary?
if
test
-z
"
$gcc_selected
"
;
then
echo
"no GCC >= 4.6.0 found ... quit"
exit
fi
echo
"chosen g++ binary:
$gcc_selected
"
# ok, write makefiles now
echo
"build Makefiles..."
# link file descriptor #6 to stdout
exec
6>&1
# redirect stdout to Makefile.rules
exec
>
Makefile.rules
printf
"%b
\n
"
"CXX =
$gcc_selected
"
printf
"%b
\n
"
"CXXFLAGS =
$gcc_flags
"
if
test
$(
uname
)
=
"Darwin"
;
then
printf
"%b
\n
"
"LIBS = -L/opt/local/lib -lboost_thread-mt"
else
printf
"%b
\n
"
"LIBS = "
fi
# redirect stdout to libcppa.Makefile
exec
>
libcppa.Makefile
append_hpp_from
"cppa"
append_hpp_from
"cppa/detail"
append_hpp_from
"cppa/util"
append_cpp_from
"src"
printf
"%b
\n
"
"include Makefile.rules"
printf
"%b
\n
"
"INCLUDE_FLAGS =
\$
(INCLUDES) -I./"
printf
"
\n
"
printf
"%b
\n
"
"HEADERS =
$HEADERS
"
printf
"
\n
"
printf
"%b
\n
"
"SOURCES =
$SOURCES
"
printf
"
\n
"
printf
"%b
\n
"
"OBJECTS =
\$
(SOURCES:.cpp=.o)"
printf
"
\n
"
printf
"%b
\n
"
"LIB_NAME =
$LIB_NAME
"
printf
"
\n
"
printf
"%b
\n
"
"%.o : %.cpp
\$
(HEADERS)"
printf
"%b
\n
"
"
\t\$
(CXX)
\$
(CXXFLAGS)
\$
(INCLUDE_FLAGS) -fPIC -c
\$
< -o
\$
@"
printf
"
\n
"
printf
"%b
\n
"
"
\$
libcppa :
\$
(OBJECTS)
\$
(HEADERS)"
if
test
"
$(
uname
)
"
"="
"Darwin"
;
then
printf
"%b
\n
"
"
\t\$
(CXX)
\$
(LIBS) -dynamiclib -o libcppa.dylib
\$
(OBJECTS)"
else
printf
"%b
\n
"
"
\t\$
(CXX)
\$
(LIBS) -shared -Wl,-soname,libcppa.so.0 -o libcppa.so.0.0.0
\$
(OBJECTS)"
printf
"%b
\n
"
"
\t
ln -s libcppa.so.0.0.0 libcppa.so.0.0"
printf
"%b
\n
"
"
\t
ln -s libcppa.so.0.0.0 libcppa.so.0"
printf
"%b
\n
"
"
\t
ln -s libcppa.so.0.0.0 libcppa.so"
fi
printf
"
\n
"
printf
"%b
\n
"
"all : libcppa
\$
(OBJECTS)"
printf
"
\n
"
printf
"%b
\n
"
"clean:"
printf
"%b
\n
"
"
\t
rm -f
\$
(LIB_NAME)
\$
(OBJECTS)"
# redirect stdout to Makefile
exec
>
Makefile
printf
"%b
\n
"
"all:"
printf
"%b
\n
"
"
\t
./create_libcppa_Makefile.sh > libcppa.Makefile"
printf
"%b
\n
"
"
\t
make -f libcppa.Makefile"
printf
"%b
\n
"
"
\t
make -C unit_testing"
printf
"%b
\n
"
"
\t
make -C queue_performances"
printf
"
\n
"
printf
"%b
\n
"
"clean:"
printf
"%b
\n
"
"
\t
make -f libcppa.Makefile clean"
printf
"%b
\n
"
"
\t
make -C unit_testing clean"
printf
"%b
\n
"
"
\t
make -C queue_performances clean"
echo
"selected =
$gcc_selected
"
#echo "GCC = $GCC"
rm
-f
Makefile.rules &>/dev/null
echo
"CXX =
$gcc_selected
"
>>
Makefile.rules
echo
"CXXFLAGS =
$gcc_flags
"
>>
Makefile.rules
echo
"LIBS = -L/opt/local/lib -lboost_thread-mt"
>>
Makefile.rules
# restore stdout
exec
1>&6
echo
"done"
cppa.creator.user
View file @
66aeccda
...
...
@@ -135,7 +135,7 @@
</data>
<data>
<variable>
ProjectExplorer.Project.Updater.EnvironmentId
</variable>
<value
type=
"QString"
>
{
23902c37-f07e-47cd-bb19-c366b9f708db
}
</value>
<value
type=
"QString"
>
{
07fcd197-092d-45a0-8500-3be614e6ae31
}
</value>
</data>
<data>
<variable>
ProjectExplorer.Project.Updater.FileVersion
</variable>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment