Skip to content

Commit 9ff82b3

Browse files
committed
Merge branch 'master' into bs
2 parents a1249b9 + 7e65c6f commit 9ff82b3

36 files changed

+497
-110
lines changed

3rdparty/dyncall/ChangeLog

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
This file lists big/noteworthy changes, only...
22

3-
Version 0.7 (upcoming)
3+
Version 0.7
44
architecture:
55
o added subproject: portasm - portable (GNU AS,+Apple and MASM) assembly framework
6-
o added support for sparc (32-bit) (tested on linux/debian)
7-
o added support for sparc (64-bit) (tested on linux/debian, buggy on openbsd)
6+
o added subproject: autovar - predefined macro framework (was dyncall_macros.h)
7+
o added support for sparc (32-bit) (tested on linux/debian,openbsd,solaris)
8+
o added support for sparc (64-bit) (tested on linux/debian,openbsd,solaris)
89
o added support for Solaris and SunPro compiler for i386, x86_64, sparc and sparc64
910
o improved auto-detection via preprocessor defines
1011
dyncall updates:
@@ -20,7 +21,7 @@ dyncall updates:
2021
o bug fix for ppc32/sysv: ellipsis calls work now
2122
o updated API, introduced DC_CALL_C_ELLIPSIS_VARARGS
2223
o changed interface: dcMode does not reset internally anymore
23-
dyncallback updates:
24+
dyncallback updates:
2425
o uses portasm for x86,x64
2526
o added Solaris/x86/sunpro port (stable)
2627
o added Minix port (unstable)
@@ -31,17 +32,21 @@ dynload updates:
3132
o removed Dbghelf.lib dependency
3233
o bug fixes for cygwin/x86
3334
o fixes for beos/haiku
35+
o no dependencies to libdyncall sources.
3436
buildsys additions:
3537
o added zero-config (BSD,GNU,SUN) make files (Makefile.embedded)
3638
o added in/out-of-source configure2 w/ (BSD,GNU) make files (Makefile.generic')
3739
o added bootstrap lua script (download/build)
3840
o Nmakefile: more tests included (resolve_self)
3941
o improved cross-compilation for iOS (upgrade to 4.3 sdk)
4042
o darwin 8.0 support
43+
o added 'install' support for Makefile.embedded
4144
buildsys/gmake updates:
4245
o added support for msvc/x64 tool-chain
4346
o default settings for build-dir changed to '.'
4447
o cleanup: removed top-level Make{Prolog,Epilog,Rules} files and updated all sub-projects and tests
48+
o added support for DESTDIR staging installation
49+
o added support for manual page installation
4550
buildsys/cmake updates:
4651
o updated find module scripts (see cmake/Modules)
4752
o added support for using dyncall as sub-project (via *Config.cmake files)
@@ -50,6 +55,7 @@ buildsys/cmake updates:
5055
o fixes for CPack
5156
o fixes for universal builds on Mac OS X
5257
o supports SunPro with *.S files.
58+
o added experimental 'dynMake' portable make-based build-system (not stable, yet)
5359
documentation updates:
5460
o added dyncallback documentation
5561
o updated dyncall documentation

3rdparty/dyncall/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2007-2011 Daniel Adler <dadler@uni-goettingen.de>,
1+
Copyright (c) 2007-2012 Daniel Adler <dadler@uni-goettingen.de>,
22
Tassilo Philipp <tphilipp@potion-studios.com>
33

44
Permission to use, copy, modify, and distribute this software for any

3rdparty/dyncall/License.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2007-2010 Daniel Adler <dadler@uni-goettingen.de>,
1+
Copyright (c) 2007-2012 Daniel Adler <dadler@uni-goettingen.de>,
22
Tassilo Philipp <tphilipp@potion-studios.com>
33

44
Permission to use, copy, modify, and distribute this software for any

3rdparty/dyncall/Makefile.embedded

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
MAKEFILE = Makefile.embedded
22
MAKE_CMD = ${MAKE} -f ${MAKEFILE}
3-
.PHONY: all tests clean bsd linux sun sun-64bit sun-gcc sun-gcc-64bit
43
all:
54
cd dynload ; ${MAKE_CMD}
65
cd dyncall ; ${MAKE_CMD}
@@ -12,6 +11,10 @@ clean:
1211
cd dyncall ; ${MAKE_CMD} clean
1312
cd dyncallback ; ${MAKE_CMD} clean
1413
cd test ; ${MAKE_CMD} clean
14+
install:
15+
cd dynload ; ${MAKE_CMD} install
16+
cd dyncall ; ${MAKE_CMD} install
17+
cd dyncallback ; ${MAKE_CMD} install
1518
bsd:
1619
${MAKE_CMD} all
1720
linux:
@@ -34,3 +37,4 @@ sun-gcc:
3437
sun-gcc-64bit:
3538
CC=gcc CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all
3639

40+
.PHONY: all tests clean install bsd linux linux64 minix-gcc osx osx-universal sun sun-64bit sun-gcc sun-gcc-64bit

3rdparty/dyncall/README.Minix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ sh buildsys/scripts/batch-build-minix.sh
1919
Notes
2020
-----
2121

22-
As Minix as no dynamic linker, the default '-fPIC' CFLAGS need to be cleared,
22+
As Minix has no dynamic linker, the default '-fPIC' CFLAGS need to be cleared,
2323
which does the batch-build script setting CFLAGs for dyncall and dyncallback
2424
explicitly.
2525

3rdparty/dyncall/README.Solaris

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ Build with CMake, Sun make and SunPro for sparc64
5353
$ cmake -DCMAKE_C_FLAGS=-m64 -DCMAKE_ASM_FLAGS=-m64 -DCMAKE_CXX_FLAGS=-m64 .
5454
$ make
5555

56+
Installation
57+
------------
58+
$ make -f Makefile.embedded PREFIX=<some/prefix> install
59+
5660

5761
Tested Platforms
5862
----------------

3rdparty/dyncall/README.embedded

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,21 @@ Building the tests:
1818
-------------------
1919
$ cd test ; make -f Makefile.embedded <variant>
2020

21+
Installation:
22+
-------------
23+
$ make -f Makefile.embedded PREFIX=/usr/local install
24+
25+
Installation with support for DESTDIR:
26+
--------------------------------------
27+
$ make -f Makefile.embedded DESTDIR=/tmp/staging PREFIX=/usr/local install
28+
29+
2130
Available variants:
2231
-------------------
2332
bsd Free/Net/Open/DragonFly/Mir BSD
2433
linux Linux
25-
macosx
34+
osx Mac OS X
35+
osx-universal Mac OS X universal binaries (i386,x86_64 and ppc)
2636
sun SunOS and Sun Pro compiler
2737
sun-64bit SunOS and Sun Pro compiler for sparc64(? amd64)
2838
sun-gcc SunOS and GCC compiler
@@ -60,4 +70,12 @@ are Assembly files which are preprocessed by the C Preprocessor.
6070

6171
This feature is available by GCC and SunPro compilers.
6272

73+
Limitations
74+
-----------
75+
76+
Mac OS X universal static libraries require to use
77+
78+
'libtool -static -o libname.a obj1.o obj2.o ...' instead of 'ar cru libname.a obj1.o obj2.o'.
79+
We use predefined variables AR and ARFLAGS.
80+
The variant osx-universal uses AR=libtool.
6381

3rdparty/dyncall/README.iOS

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
DynCall for apple's iOS platforms (iPod touch, iPhone, iPad)
2+
3+
4+
Environment Setup for Cross-Compilation using iPhone SDK:
5+
6+
$ source buildsys/scripts/setenv-sdk-ios.sh
7+
8+
9+
Package Configuration
10+
11+
$ ./configure --target-iphoneos --with-iphonesdk=3.2
12+
13+
14+
Building
15+
16+
$ make
17+
18+
19+
Details:
20+
21+
Useful configure switches:
22+
23+
--target-iphoneos
24+
25+
--with-iphoensdk=<version> (tested with 2.0 up to 4.0)
26+
27+
--tool-gcc (default)
28+
--tool-llvm-gcc
29+
30+
--target-arm32-arm
31+
--target-arm32-thumb
32+
--target-universal
33+
34+
35+
Supported Tool-chains
36+
37+
gcc and llvm-gcc
38+
39+
40+
Supported SDKs
41+
42+
SDKs starting with 2.0 up to 4.0 have been tested.
43+
44+
45+
Bugs
46+
47+
No armv7 support.
48+
49+
50+
Building with Makefile.generic ..
51+
52+
$ source buildsys/scripts/setenv-sdk-ios.sh
53+
$ source buildsys/scripts/setenv-cross-ios.sh
54+
55+
make -f Makefile.generic ...
56+
57+
uses armv6 and sdk 3.2 as default, can be changed in 'setenv-cross-ios.sh'.
58+

3rdparty/dyncall/ToDo

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build-system:
1414
buildsys/bsdmake silently builds without configure file and
1515
no cmake-based build files is used at all.
1616

17-
workarond:
17+
workaround:
1818

1919
make -f Makefile
2020

@@ -48,21 +48,20 @@ dynload:
4848
dyncallback:
4949
------------
5050
- callback_plain's return value not correct anymore on NDS (maybe just broken testcode?)
51+
- add MIPS callbacks
52+
- finish PPC32 callbacks
53+
- add Plan9 support
5154

5255
urgent issues:
5356
--------------
57+
- add SPARC/SPARC64 calling conventions to doc's callconv-appendix !!!
5458
- finish dyncallback doc, finish dynload doc, add both to troff doc
5559
- Haiku/gmake build doesn't build dynload due to the fact, that elf.h is not found
56-
* does Haiku use ELF?
57-
* implement Haiku/dynload if not
58-
- dyncall_thunk.h is the only header that will be exposed to clients, that includes
59-
platform specific headers - would be nice to be able to only ship non-platform
60-
specific headers
60+
on default installations (one has to install the system headers)
61+
* add to doc
6162
- Solaris/gmake build doesn't build dynload and tests anymore (maybe not even dyncallback)
6263
- test arm32/ATPCS/THUMB (and then change Status in doc Appendix)
6364
- look over code and fix TODO or @@@ marks
64-
- add MIPS callbacks
65-
- finish PPC32 callbacks
6665
- consider moving bindings into dyncall/ such that releases include it in the future
6766
* or, alternatively, pack them separately and put them on the website, for releases
6867
- add note to documentation, that bindings are svn-only ATM
@@ -75,7 +74,7 @@ nice to have:
7574
-------------
7675
- enhance manual with a couple of examples (e.g. calling MessageBoxA on windows, etc.)
7776
- update: microsoft visual c++ build files - integrate all test suites in solution file
78-
- rename iPhoneOS to iOS
77+
- rename iPhoneOS to iOS (mostly done)
7978
- maybe rename DC__Arch_PowerPC to ...PPC32 for coherency reasons (...PPC64)?
8079
- consistency: on x64 platforms: make both ABIs available ('win64','sysv') for all x64 OS ports
8180
- microsoft build enhancement: autodetect assembly via C preprocessor (like with .S gcc files)
@@ -86,12 +85,12 @@ nice to have:
8685
bugs:
8786
-----
8887
- vararg function calls don't work for PPC32 System V ABI
88+
- callbacks don't work for PPC32 System V ABI
8989
- vararg function calls don't work for ARM THUMB mode (Daniel's new interface for modesetting for varag
9090
args should be used); adapt test/ellipsis
9191

9292
missing implementations (descending priority):
9393
----------------------------------------------
94-
- sparc, sparc64
9594
- ppc64
9695
- itanium
9796
- 68k, 88k, 6502, etc.

3rdparty/dyncall/buildsys/gmake/epilog.gmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#//////////////////////////////////////////////////////////////////////////////
22
#
3-
# Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>,
3+
# Copyright (c) 2007,2011 Daniel Adler <dadler@uni-goettingen.de>,
44
# Tassilo Philipp <tphilipp@potion-studios.com>
55
#
66
# Permission to use, copy, modify, and distribute this software for any
@@ -17,7 +17,6 @@
1717
#
1818
#//////////////////////////////////////////////////////////////////////////////
1919

20-
2120
ifndef BUILD_OS
2221
BUILD_OS=generic
2322
endif
@@ -29,6 +28,7 @@ include $(GMAKE_TOP)/tool/nasm.gmake
2928
endif
3029

3130
include $(GMAKE_TOP)/tool/latex.gmake
31+
include $(GMAKE_TOP)/tool/man.gmake
3232

3333

3434
ifndef BUILD_TOOL_pspsdk

0 commit comments

Comments
 (0)