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
f6810a13
Commit
f6810a13
authored
Jun 09, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure and linux compatibility
parent
61968e31
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
19 deletions
+71
-19
.gitignore
.gitignore
+2
-0
Makefile.rules
Makefile.rules
+0
-12
configure
configure
+44
-0
cpp0x_test.cpp
cpp0x_test.cpp
+20
-0
create_libcppa_Makefile.sh
create_libcppa_Makefile.sh
+5
-7
No files found.
.gitignore
View file @
f6810a13
...
@@ -10,3 +10,5 @@ cppa.creator.user.1.3
...
@@ -10,3 +10,5 @@ cppa.creator.user.1.3
8threads
8threads
4threads
4threads
libcppa.Makefile
libcppa.Makefile
cpp0x_test
cpp0x_test.dSYM/
Makefile.rules
deleted
100644 → 0
View file @
61968e31
# the used GCC binary
CXX
=
/opt/local/bin/g++-mp-4.6
# compiler flags
#CXXFLAGS = -std=c++0x -pedantic -Wall -Wextra -O2 -I/opt/local/include/ -fpermissive
CXXFLAGS
=
-std
=
c++0x
-pedantic
-Wall
-Wextra
-g
-O0
-I
/opt/local/include/
-fpermissive
# external libraries
LIBS
=
-L
/opt/local/lib
-lboost_thread-mt
# external include directories
INCLUDES
=
configure
0 → 100755
View file @
f6810a13
#!/bin/bash
gcc_flags
=
"-std=c++0x -pedantic -Wall -Wextra -g -O0 -I/opt/local/include/ -fpermissive"
gcc_found
=
$(
find /bin/ /usr/bin /opt/bin /opt/local/bin
-regex
"^.*g
\+\+
.*$"
2>/dev/null
)
gcc_selected
=
""
function
compatibility_test
()
{
if
$1
$gcc_flags
-o
cpp0x_test cpp0x_test.cpp &>/dev/null
;
then
if
test
"
$(
./cpp0x_test
)
"
"!="
"yes"
;
then
return
-1
else
return
0
fi
fi
}
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
if
compatibility_test
"
$i
"
;
then
gcc_selected
=
$i
break
fi
fi
done
if
test
-z
"
$gcc_selected
"
;
then
echo
"no GCC >= 4.6.0 found ... quit"
exit
fi
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
echo
"done"
cpp0x_test.cpp
0 → 100644
View file @
f6810a13
#include <iostream>
template
<
class
Out
>
inline
Out
&
print
(
Out
&
out
)
{
return
out
;
}
template
<
class
Out
,
typename
A0
,
typename
...
Args
>
inline
Out
&
print
(
Out
&
out
,
const
A0
arg0
,
const
Args
&
...
args
)
{
return
print
(
out
<<
arg0
,
args
...);
}
int
main
()
{
print
(
std
::
cout
,
"y"
,
'e'
,
"s"
,
'\n'
);
return
0
;
}
create_libcppa_Makefile.sh
View file @
f6810a13
...
@@ -25,12 +25,6 @@ append_hpp_from "cppa/util"
...
@@ -25,12 +25,6 @@ append_hpp_from "cppa/util"
append_cpp_from
"src"
append_cpp_from
"src"
if
test
"
$(
uname
)
"
=
"Darwin"
;
then
LIB_NAME
=
"libcppa.dylib"
else
LIB_NAME
=
"libcppa.so"
fi
echo
"include Makefile.rules"
echo
"include Makefile.rules"
echo
"INCLUDE_FLAGS =
\$
(INCLUDES) -I./"
echo
"INCLUDE_FLAGS =
\$
(INCLUDES) -I./"
echo
echo
...
@@ -46,7 +40,11 @@ echo "%.o : %.cpp \$(HEADERS)"
...
@@ -46,7 +40,11 @@ echo "%.o : %.cpp \$(HEADERS)"
printf
"%b
\n
"
"
\t\$
(CXX)
\$
(CXXFLAGS)
\$
(INCLUDE_FLAGS) -fPIC -c
\$
< -o
\$
@"
printf
"%b
\n
"
"
\t\$
(CXX)
\$
(CXXFLAGS)
\$
(INCLUDE_FLAGS) -fPIC -c
\$
< -o
\$
@"
echo
echo
echo
"
\$
(LIB_NAME) :
\$
(OBJECTS)
\$
(HEADERS)"
echo
"
\$
(LIB_NAME) :
\$
(OBJECTS)
\$
(HEADERS)"
printf
"%b
\n
"
"
\t\$
(CXX)
\$
(LIBS) -dynamiclib -o
\$
(LIB_NAME)
\$
(OBJECTS)"
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)"
fi
echo
echo
echo
"all :
\$
(LIB_NAME)
\$
(OBJECTS)"
echo
"all :
\$
(LIB_NAME)
\$
(OBJECTS)"
echo
echo
...
...
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