Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
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
Esteban Blanc
proview
Commits
7011e9bf
Commit
7011e9bf
authored
Sep 13, 2011
by
Claes Sjöfors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mac OS X build
parent
10137e3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
12 deletions
+86
-12
src/lib/rt/src/rt_errl.h
src/lib/rt/src/rt_errl.h
+1
-1
src/tools/pwre/src/os_macos/pwre.pl
src/tools/pwre/src/os_macos/pwre.pl
+27
-1
src/tools/pwre/src/os_macos/pwre_configure.sh
src/tools/pwre/src/os_macos/pwre_configure.sh
+58
-10
No files found.
src/lib/rt/src/rt_errl.h
View file @
7011e9bf
...
...
@@ -45,7 +45,7 @@
#if defined OS_LYNX
# define LOG_QUEUE_NAME "/pwrlogqueue"
#elif defined OS_POSIX
# if defined OS_FREEBSD
# if defined OS_FREEBSD
|| defined OS_MACOS
# define LOG_QUEUE_NAME "/tmp/pwrlogqueue"
# elif defined _POSIX_MESSAGE_PASSING
# define LOG_QUEUE_NAME "/pwrlogqueue"
...
...
src/tools/pwre/src/os_macos/pwre.pl
View file @
7011e9bf
...
...
@@ -151,7 +151,7 @@ sub configure()
exit
1
;
}
my
$fname
=
$ENV
{"
pwre_bin
"}
.
"
/pwre_configure.sh
";
my
$fname
=
$ENV
{"
pwre_bin
"}
.
"
/pwre_configure.sh
"
.
"
"
.
$_
[
0
]
.
"
"
.
$_
[
1
]
.
"
"
.
$_
[
2
]
;
system
(
$fname
);
}
...
...
@@ -277,6 +277,7 @@ sub ebuild # args: pass flavour
my
$build_opc
=
0
;
my
$build_profibus
=
0
;
my
$build_otherio
=
0
;
my
$build_misc
=
0
;
my
$build_ssabox
=
0
;
my
$build_tlog
=
0
;
my
$build_othermanu
=
0
;
...
...
@@ -298,6 +299,7 @@ sub ebuild # args: pass flavour
elsif
(
$value
[
0
]
eq
"
opc
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_opc
=
1
;
printf
(
"
-- opc
\n
");}
elsif
(
$value
[
0
]
eq
"
profibus
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_profibus
=
1
;
printf
(
"
-- profibus
\n
");}
elsif
(
$value
[
0
]
eq
"
otherio
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_otherio
=
1
;
printf
(
"
-- otherio
\n
");}
elsif
(
$value
[
0
]
eq
"
misc
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_misc
=
1
;
printf
(
"
-- misc
\n
");}
elsif
(
$value
[
0
]
eq
"
ssabox
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_ssabox
=
1
;
printf
(
"
-- ssabox
\n
");}
elsif
(
$value
[
0
]
eq
"
tlog
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_tlog
=
1
;
printf
(
"
-- tlog
\n
");}
elsif
(
$value
[
0
]
eq
"
othermanu
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_othermanu
=
1
;
printf
(
"
-- othermanu
\n
");}
...
...
@@ -368,6 +370,11 @@ sub ebuild # args: pass flavour
_build
("
lib
",
"
rt
",
"
src
",
"
all
");
merge
();
}
if
(
$build_misc
==
1
)
{
_module
("
misc
");
_build
("
lib
",
"
misc
",
"
src
",
"
all
");
merge
();
}
if
(
$build_ssabox
==
1
)
{
_module
("
ssabox
");
_build
("
lib
",
"
rt
",
"
src
",
"
all
");
...
...
@@ -436,6 +443,10 @@ sub ebuild # args: pass flavour
_module
("
telemecanique
");
merge
();
}
if
(
$build_misc
==
1
)
{
_module
("
misc
");
merge
();
}
}
elsif
(
$pass
eq
"
op
"
)
{
_module
("
xtt
");
...
...
@@ -512,6 +523,11 @@ sub ebuild # args: pass flavour
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_misc
==
1
)
{
_module
("
misc
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_ssabox
==
1
)
{
_module
("
ssabox
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
...
...
@@ -592,6 +608,9 @@ sub build_all_modules ()
_module
("
opc
");
build_all
(
$flavour
);
merge
();
_module
("
misc
");
build_all
(
$flavour
);
merge
();
_module
("
ssabox
");
build_all
(
$flavour
);
merge
();
...
...
@@ -690,6 +709,11 @@ sub build_all_wbl ()
system
(
"
rm
$load_dir
/*.dbs
");
_build
("
wbl
",
"
bcomp
",
"
src
",
"
lib
");
merge
();
_module
("
misc
");
my
(
$load_dir
)
=
$ENV
{"
pwr_load
"};
system
(
"
rm
$load_dir
/*.dbs
");
_build
("
wbl
",
"
misc
",
"
src
",
"
lib
");
merge
();
_module
("
ssabox
");
my
(
$load_dir
)
=
$ENV
{"
pwr_load
"};
system
(
"
rm
$load_dir
/*.dbs
");
...
...
@@ -826,6 +850,8 @@ sub create_all_modules ()
create
();
_module
("
bcomp
");
create
();
_module
("
misc
");
create
();
_module
("
profibus
");
create
();
_module
("
sev
");
...
...
src/tools/pwre/src/os_macos/pwre_configure.sh
View file @
7011e9bf
#!/bin/bash
pwre_help
()
{
cat
<<
EOF
pwre_configure.h
Arguments
--help Display help.
--version State fix version of loadfiles, eg
> pwre configure --version "29-MAY-2011 16:00:00"
--reset-version Reset previous version
EOF
}
pwre_config_init
()
{
d
=
`
eval date
+
\"
%F %X
\"
`
...
...
@@ -180,7 +198,7 @@ pwre_create_makedir()
cfile
=
"
$pwre_broot
/pwre_
${
pwre_hw
:3
}
_
${
pwre_os
:3
}
.cnf"
dos
=
`
eval echo
${
pwre_os
}
|
tr
[
:lower:]
[
:upper:]
`
dhw
=
`
eval echo
${
pwre_hw
}
|
tr
[
:lower:]
[
:upper:]
`
conf_cc_define
=
"-D
$dos
=1 -D
$dhw
=1 -DOS=
${
pwre_os
:3
}
-DHW=
${
pwre_hw
:3
}
-D_
${
dos
:3
}
"
conf_cc_define
=
"-D
$dos
=1 -D
OS_POSIX -D
$dhw
=1 -DOS=
${
pwre_os
:3
}
-DHW=
${
pwre_hw
:3
}
-D_
${
dos
:3
}
"
conf_lib
=
""
conf_libgtk
=
""
conf_libmotif
=
""
...
...
@@ -223,32 +241,55 @@ if test ! -e $pwre_croot; then
exit
fi
# Options
if
[
"
$1
"
=
"--help"
]
;
then
pwre_help
exit
elif
[
"
$1
"
=
"--version"
]
&&
[
"
$2
"
!=
""
]
&&
[
"
$3
"
!=
""
]
;
then
buildversion
=
$2
" "
$3
elif
[
"
$1
"
=
"--reset-version"
]
;
then
buildversion
=
""
elif
[
"
$1
"
!=
""
]
;
then
echo
"Unknown option
\"
$1
\"
"
exit
else
# Catch current version
if
[
-e
$cfile
]
;
then
ver
=
`
eval cat
$cfile
|
grep
"
\\
bexport PWRE_CONF_BUILDVERSION"
`
ver
=
${
ver
#*=\
"}
ver=
${
ver
%\
"}
buildversion=
$ver
fi
fi
pwre_create_blddir
pwre_create_makedir
pwre_config_init
if [ "
$buildversion
" != "" ]; then
echo "
export
PWRE_CONF_BUILDVERSION=\
"
$buildversion
\"
"
>>
$cfile
else
echo
"export PWRE_CONF_BUILDVERSION=
\"
0
\"
"
>>
$cfile
fi
#Gtk
echo
""
echo
"Mandatory :"
pwre_config_check_lib gtk GTK gtk gtk 0 /sw/lib/libgtk-x11-2.0.dylib
pwre_config_check_lib libantlr LIBANTLR lib lib 0 /usr/local/lib/libantlr.a
pwre_config_check_lib librpcsvc LIBRPCSVC lib lib 0 /usr/lib/librpcsvc.dylib
:/usr/lib/librpcsvc.a
pwre_config_check_lib libasound LIBASOUND lib lib 0 /usr/lib/libasound.dylib:/usr/lib/libasound.a
#
pwre_config_check_lib libasound LIBASOUND lib lib 0 /usr/lib/libasound.dylib
:/usr/lib/libasound.a
pwre_config_check_lib libpthread LIBPTHREAD lib lib 0 /usr/lib/libpthread.dylib
:/usr/lib/libpthread.a
pwre_config_check_lib libm LIBM lib lib 0 /usr/lib/libm.dylib
:/usr/lib/libm.a
pwre_config_check_lib libdb_cxx LIBDB_CXX lib lib 0 /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.dylib
:/usr/lib/libdb_cxx.so
pwre_config_check_lib libz LIBZ lib lib 0 /usr/lib/libz.dylib
:/usr/lib/libz.a
pwre_config_check_lib libcrypt LIBCRYPT lib lib 0 /usr/lib/libcrypt.dylib:/usr/lib/libcrypt.a
pwre_config_check_lib mysql MYSQL lib lib 1 /usr/lib/libmysqlclient.dylib
pwre_config_check_lib mq MQ lib lib 1 /usr/lib/libdmq.dylib
pwre_config_check_lib libpnioif PNAK lib lib 1 /usr/lib/libpnioif.so:/usr/local/lib/libpnioif.a
pwre_config_check_lib libusb LIBUSB lib lib 1 /usr/lib/libusb-1.0.so
pwre_config_check_lib librt LIBRT lib lib 0 /usr/lib/librt.dylib:/usr/lib/librt.a
#pwre_config_check_lib libcrypt LIBCRYPT lib lib 0 /usr/lib/libcrypt.dylib
:/usr/lib/libcrypt.a
#pwre_config_check_lib librt LIBRT lib lib 0 /usr/lib/librt.dylib
:/usr/lib/librt.a
pwre_config_check_lib libiconv LIBICONV lib lib 0 /usr/lib/libiconv.dylib
pwre_config_check_lib libfl LIBFL lib lib 0 /usr/lib/libfl.dylib
:/usr/lib/libfl.a
#set -o xtrace
pwre_config_check_include antlr ANTLR 1 /usr/local/include/antlr/CommonAST.hpp
pwre_config_check_include gtk GTK 1 /sw/include/gtk-2.0/gtk/gtk.h
pwre_config_check_include jni JNI 1 /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/jni.h
:
$jdk
/include/jni.h
...
...
@@ -256,6 +297,13 @@ pwre_config_check_include jni JNI 0 $jdk/include/linux/jni_md.h
pwre_config_check_include libdb_cxx LIBDB_CXX 0 /usr/local/BerkeleyDB.4.8/include/db_cxx.h
:/usr/lib/db_cxx.h
echo
""
echo
"Optional :"
pwre_config_check_lib mysql MYSQL lib lib 1 /usr/lib/libmysqlclient.dylib
pwre_config_check_lib mq MQ lib lib 1 /usr/lib/libdmq.dylib
pwre_config_check_lib libpnioif PNAK lib lib 1 /usr/lib/libpnioif.so
:/usr/local/lib/libpnioif.a
pwre_config_check_lib libusb LIBUSB lib lib 1 /usr/lib/libusb-1.0.so
export pwre_conf_alsa=1
...
...
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