 |
Changeset 2941
- Timestamp:
- 11/27/07 14:05:58
(1 year ago)
- Author:
- keinfarbton
- Message:
Exp D2: merge -r2655:2863, libs are no more called dtango
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2854 |
r2941 |
|
| 2 | 2 | [Environment] |
|---|
| 3 | 3 | |
|---|
| 4 | | DFLAGS=-I%@P%/../import -L-L%@P%/../lib -version=Posix -version=Tango -defaultlib=dtango-base-dmd -debuglib=dtango-base-dmd -L-ldtango-user-tango |
|---|
| | 4 | DFLAGS=-I%@P%/../import -L-L%@P%/../lib -version=Posix -version=Tango -defaultlib=tango-base-dmd -debuglib=tango-base-dmd -L-ltango-user-tango |
|---|
| r2854 |
r2941 |
|
| 1 | | #!/bin/bash |
|---|
| | 1 | #!/bin/bash |
|---|
| 2 | 2 | # Copyright (C) 2007 Gregor Richards |
|---|
| 3 | 3 | # Permission is granted to do anything you please with this software. |
|---|
| … | … | |
| 131 | 131 | if [ ! "`grep '\-L\-ltango' $DMDDIR/bin/dmd.conf`" ] |
|---|
| 132 | 132 | then |
|---|
| 133 | | sed -i.bak -e 's/^DFLAGS=.*$/& -L-ldtango-user-tango/' $DMDDIR/bin/dmd.conf |
|---|
| | 133 | sed -i.bak -e 's/^DFLAGS=.*$/& -L-ltango-user-tango/' $DMDDIR/bin/dmd.conf |
|---|
| 134 | 134 | fi |
|---|
| 135 | 135 | fi |
|---|
| r2854 |
r2941 |
|
| 1 | | #!/bin/bash |
|---|
| | 1 | #!/bin/bash |
|---|
| 2 | 2 | # Copyright (C) 2007 Gregor Richards |
|---|
| 3 | 3 | # Permission is granted to do anything you please with this software. |
|---|
| … | … | |
| 46 | 46 | |
|---|
| 47 | 47 | # 2) The rest |
|---|
| 48 | | if [ ! -e libdtango-user-tango.a ] |
|---|
| | 48 | if [ ! -e libtango-user-tango.a ] |
|---|
| 49 | 49 | then |
|---|
| 50 | 50 | cd lib || die 1 "Failed to cd to lib" |
|---|
| … | … | |
| 67 | 67 | |
|---|
| 68 | 68 | mkdir -p lib |
|---|
| 69 | | cp ../lib/libdtango-user-tango.a lib || die 1 "Failed to copy in the tango .a file" |
|---|
| | 69 | cp ../lib/libtango-user-tango.a lib || die 1 "Failed to copy in the tango .a file" |
|---|
| 70 | 70 | |
|---|
| 71 | 71 | find include/d -name .svn | xargs rm -rf |
|---|
| … | … | |
| 82 | 82 | chmod 0755 tango-$TANGO_VERSION-dmd.$DMD_VERSION-posix.sh |
|---|
| 83 | 83 | |
|---|
| 84 | | # 4) DMD |
|---|
| | 84 | # 4) DMD |
|---|
| 85 | 85 | if [ -e dmd ] |
|---|
| 86 | 86 | then |
|---|
| r2854 |
r2941 |
|
| 85 | 85 | |
|---|
| 86 | 86 | # Since Tango 0.99.3 |
|---|
| 87 | | if [ -e "$PREFIX/lib/libdtango-base-dmd.a" ] |
|---|
| | 87 | if [ -e "$PREFIX/lib/libtango-base-dmd.a" ] |
|---|
| 88 | 88 | then |
|---|
| 89 | | rm -f $PREFIX/lib/libdtango-base-dmd.a |
|---|
| | 89 | rm -f $PREFIX/lib/libtango-base-dmd.a |
|---|
| 90 | 90 | fi |
|---|
| 91 | 91 | |
|---|
| 92 | | if [ -e "$PREFIX/lib/libdtango-user-tango.a" ] |
|---|
| | 92 | if [ -e "$PREFIX/lib/libtango-user-tango.a" ] |
|---|
| 93 | 93 | then |
|---|
| 94 | | rm -f $PREFIX/lib/libdtango-user-tango.a |
|---|
| | 94 | rm -f $PREFIX/lib/libtango-user-tango.a |
|---|
| 95 | 95 | fi |
|---|
| 96 | 96 | |
|---|
| r2854 |
r2941 |
|
| 19 | 19 | path = args[1] ~ "\\tango"; |
|---|
| 20 | 20 | |
|---|
| 21 | | outf.write ("-c -n -p256\ndtango-user-tango.lib\n"); |
|---|
| | 21 | outf.write ("-c -n -p256\ntango-user-tango.lib\n"); |
|---|
| 22 | 22 | foreach(file; scan( path, ".d" ).files ) |
|---|
| 23 | 23 | { |
|---|
| … | … | |
| 34 | 34 | outf.close; |
|---|
| 35 | 35 | exec( "lib @tango.lsp" ); |
|---|
| 36 | | exec( "cmd /q /c del tango.lsp" ~ list ); |
|---|
| | 36 | //exec( "cmd /q /c del tango.lsp" ~ list ); |
|---|
| | 37 | exec( "cmd /q /c del tango.lsp *.obj" ); |
|---|
| 37 | 38 | } |
|---|
| 38 | 39 | |
|---|
| r2854 |
r2941 |
|
| 53 | 53 | { |
|---|
| 54 | 54 | restoreFile( binPath.file( "sc.ini" ) ); |
|---|
| 55 | | removeFile( libPath.file( "dtango-user-tango.lib" ) ); |
|---|
| 56 | | removeFile( libPath.file( "dtango-arch-win32.lib" ) ); |
|---|
| 57 | | removeFile( libPath.file( "dtango-base-dmd.lib" ) ); |
|---|
| | 55 | removeFile( libPath.file( "tango-user-tango.lib" ) ); |
|---|
| | 56 | removeFile( libPath.file( "tango-arch-win32.lib" ) ); |
|---|
| | 57 | removeFile( libPath.file( "tango-base-dmd.lib" ) ); |
|---|
| 58 | 58 | |
|---|
| 59 | 59 | removeFile( impPath.file( "object.di" ) ); |
|---|
| … | … | |
| 70 | 70 | copyFile( impPath.file( "object.di" ), "..\\" ); |
|---|
| 71 | 71 | |
|---|
| 72 | | copyFile( libPath.file( "dtango-user-tango.lib" ), ".\\" ); |
|---|
| 73 | | copyFile( libPath.file( "dtango-arch-win32.lib" ), ".\\" ); |
|---|
| 74 | | copyFile( libPath.file( "dtango-base-dmd.lib" ), ".\\" ); |
|---|
| | 72 | copyFile( libPath.file( "tango-user-tango.lib" ), ".\\" ); |
|---|
| | 73 | copyFile( libPath.file( "tango-arch-win32.lib" ), ".\\" ); |
|---|
| | 74 | copyFile( libPath.file( "tango-base-dmd.lib" ), ".\\" ); |
|---|
| 75 | 75 | |
|---|
| 76 | 76 | backupFile( binPath.file( "sc.ini" ) ); |
|---|
| … | … | |
| 215 | 215 | "[Environment]\n" |
|---|
| 216 | 216 | "LIB=\"" ~ libPath ~ "\"\n" |
|---|
| 217 | | "DFLAGS=\"-I" ~ impPath ~ "\" -version=Tango -defaultlib=dtango-base-dmd.lib -L+dtango-user-tango.lib\n" |
|---|
| | 217 | "DFLAGS=\"-I" ~ impPath ~ "\" -version=Tango -defaultlib=tango-base-dmd.lib -debuglib=tango-base-dmd.lib -L+tango-user-tango.lib\n" |
|---|
| 218 | 218 | "LINKCMD=%@P%\\..\\..\\dm\\bin\\link.exe\n"; |
|---|
| 219 | 219 | } |
|---|
| r2860 |
r2941 |
|
| 23 | 23 | |
|---|
| 24 | 24 | The script must be called from within lib/ and the resulting |
|---|
| 25 | | binaries will be found there. The build requires that libdtango-base-dmd.a/ |
|---|
| | 25 | binaries will be found there. The build requires that libtango-base-dmd.a/ |
|---|
| 26 | 26 | libgphobos.a already was built.' |
|---|
| 27 | 27 | exit 0 |
|---|
| … | … | |
| 148 | 148 | elif [ "$1" = "dmd" ] |
|---|
| 149 | 149 | then |
|---|
| 150 | | build dmd libdtango-user-tango.a libdtango-base-dmd.a |
|---|
| | 150 | build dmd libtango-user-tango.a libtango-base-dmd.a |
|---|
| 151 | 151 | elif [ "$1" = "gdc" ] |
|---|
| 152 | 152 | then |
|---|
| r2856 |
r2941 |
|
| 6 | 6 | |
|---|
| 7 | 7 | dmd -I..\..\.. -c -inline -release -O Macros.d Process.d Types.d UserGdi.d |
|---|
| 8 | | lib -c -n dtango-arch-win32.lib Macros.obj Process.obj Types.obj UserGdi.obj |
|---|
| | 8 | lib -c -n tango-arch-win32.lib Macros.obj Process.obj Types.obj UserGdi.obj |
|---|
| 9 | 9 | |
|---|
| 10 | | move /y dtango-arch-win32.lib ..\..\..\lib\. |
|---|
| | 10 | move /y tango-arch-win32.lib ..\..\..\lib\. |
|---|
| 11 | 11 | |
|---|
| 12 | 12 | del Macros.d Macros.obj |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D common runtime library for Linux |
|---|
| | 1 | # Makefile to build the common D runtime library for Linux |
|---|
| 2 | 2 | # Designed to work with GNU make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build library |
|---|
| | 7 | # Build the common library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=libdtango-cc-tango.a |
|---|
| 14 | | LIB_MASK=libdtango-cc-tango*.a |
|---|
| | 13 | LIB_TARGET=libtango-cc-tango.a |
|---|
| | 14 | LIB_MASK=libtango-cc-tango*.a |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | CP=cp -f |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D common runtime library for Win32 |
|---|
| | 1 | # Makefile to build the common D runtime library for Win32 |
|---|
| 2 | 2 | # Designed to work with DigitalMars make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build library |
|---|
| | 7 | # Build the common library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=dtango-cc-tango.lib |
|---|
| 14 | | LIB_MASK=dtango-cc-tango*.lib |
|---|
| | 13 | LIB_TARGET=tango-cc-tango.lib |
|---|
| | 14 | LIB_MASK=tango-cc-tango*.lib |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | CP=xcopy /y |
|---|
| r2854 |
r2941 |
|
| 25 | 25 | extern (Windows) export int WideCharToMultiByte(uint, uint, wchar_t*, int, char*, int, char*, int); |
|---|
| 26 | 26 | pragma(lib, "shell32.lib"); // needed for CommandLineToArgvW |
|---|
| 27 | | pragma(lib, "dtango-arch-win32.lib"); // links Tango's Win32 library to reduce EXE size |
|---|
| | 27 | pragma(lib, "tango-arch-win32.lib"); // links Tango's Win32 library to reduce EXE size |
|---|
| 28 | 28 | } |
|---|
| 29 | 29 | |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D compiler runtime library for Linux |
|---|
| | 1 | # Makefile to build the compiler runtime D library for Linux |
|---|
| 2 | 2 | # Designed to work with GNU make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build library |
|---|
| | 7 | # Build the compiler runtime library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=libdtango-rt-dmd.a |
|---|
| 14 | | LIB_MASK=libdtango-rt-dmd*.a |
|---|
| | 13 | LIB_TARGET=libtango-rt-dmd.a |
|---|
| | 14 | LIB_MASK=libtango-rt-dmd*.a |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | CP=cp -f |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D compiler runtime library for Win32 |
|---|
| | 1 | # Makefile to build the compiler runtime D library for Win32 |
|---|
| 2 | 2 | # Designed to work with DigitalMars make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build library |
|---|
| | 7 | # Build the compiler runtime library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=dtango-rt-dmd.lib |
|---|
| 14 | | LIB_MASK=dtango-rt-dmd*.lib |
|---|
| | 13 | LIB_TARGET=tango-rt-dmd.lib |
|---|
| | 14 | LIB_MASK=tango-rt-dmd*.lib |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | CP=xcopy /y |
|---|
| r2502 |
r2941 |
|
| 220 | 220 | rm -f gen_config1$(EXEEXT) gen_unix$(EXEEXT) gen_math$(EXEEXT) |
|---|
| 221 | 221 | rm -f frag-gen frag-math frag-unix |
|---|
| 222 | | rm -f $(config_d_src) $(configunix_d_src) |
|---|
| | 222 | rm -f $(config_d_src) |
|---|
| 223 | 223 | rm -f libgphobos.a |
|---|
| 224 | 224 | rm -f libgphobos_t.a |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D runtime library libdtango-base-dmd.a for Linux |
|---|
| | 1 | # Makefile to build the composite D runtime library for Linux |
|---|
| 2 | 2 | # Designed to work with GNU make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build libdtango-base-dmd.a |
|---|
| | 7 | # Build the runtime library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=libdtango-base-dmd.a |
|---|
| 14 | | LIB_MASK=libdtango-base-dmd*.a |
|---|
| | 13 | LIB_TARGET=libtango-base-dmd.a |
|---|
| | 14 | LIB_MASK=libtango-base-dmd*.a |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | DIR_CC=./common/tango |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D runtime library dtango-base-dmd.lib for Win32 |
|---|
| | 1 | # Makefile to build the composite D runtime library for Win32 |
|---|
| 2 | 2 | # Designed to work with DigitalMars make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build dtango-base-dmd.lib |
|---|
| | 7 | # Build the runtime library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=dtango-base-dmd.lib |
|---|
| 14 | | LIB_MASK=dtango-base-dmd*.lib |
|---|
| | 13 | LIB_TARGET=tango-base-dmd.lib |
|---|
| | 14 | LIB_MASK=tango-base-dmd*.lib |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | DIR_CC=common\tango |
|---|
| … | … | |
| 18 | 18 | DIR_GC=gc\basic |
|---|
| 19 | 19 | |
|---|
| 20 | | LIB_CC=$(DIR_CC)\dtango-cc-tango.lib |
|---|
| 21 | | LIB_RT=$(DIR_RT)\dtango-rt-dmd.lib |
|---|
| 22 | | LIB_GC=$(DIR_GC)\dtango-gc-basic.lib |
|---|
| | 20 | LIB_CC=$(DIR_CC)\tango-cc-tango.lib |
|---|
| | 21 | LIB_RT=$(DIR_RT)\tango-rt-dmd.lib |
|---|
| | 22 | LIB_GC=$(DIR_GC)\tango-gc-basic.lib |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | CP=xcopy /y |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D garbage collector library for Posix |
|---|
| | 1 | # Makefile to build the garbage collector D library for Posix |
|---|
| 2 | 2 | # Designed to work with GNU make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build library |
|---|
| | 7 | # Build the garbage collector library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=libdtango-gc-basic.a |
|---|
| 14 | | LIB_MASK=libdtango-gc-basic*.a |
|---|
| | 13 | LIB_TARGET=libtango-gc-basic.a |
|---|
| | 14 | LIB_MASK=libtango-gc-basic*.a |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | CP=cp -f |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D garbage collector library for Win32 |
|---|
| | 1 | # Makefile to build the garbage collector D library for Win32 |
|---|
| 2 | 2 | # Designed to work with DigitalMars make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build library |
|---|
| | 7 | # Build the garbage collector library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=dtango-gc-basic.lib |
|---|
| 14 | | LIB_MASK=dtango-gc-basic*.lib |
|---|
| | 13 | LIB_TARGET=tango-gc-basic.lib |
|---|
| | 14 | LIB_MASK=tango-gc-basic*.lib |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | CP=xcopy /y |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D garbage collector library for Posix |
|---|
| | 1 | # Makefile to build the garbage collector D library for Posix |
|---|
| 2 | 2 | # Designed to work with GNU make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build library |
|---|
| | 7 | # Build the garbage collector library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=libdtango-gc-stub.a |
|---|
| 14 | | LIB_MASK=libdtango-gc-stub*.a |
|---|
| | 13 | LIB_TARGET=libtango-gc-stub.a |
|---|
| | 14 | LIB_MASK=libtango-gc-stub*.a |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | CP=cp -f |
|---|
| r2854 |
r2941 |
|
| 1 | | # Makefile to build D garbage collector library for Win32 |
|---|
| | 1 | # Makefile to build the garbage collector D library for Win32 |
|---|
| 2 | 2 | # Designed to work with DigitalMars make |
|---|
| 3 | 3 | # Targets: |
|---|
| … | … | |
| 5 | 5 | # Same as make all |
|---|
| 6 | 6 | # make lib |
|---|
| 7 | | # Build library |
|---|
| | 7 | # Build the garbage collector library |
|---|
| 8 | 8 | # make doc |
|---|
| 9 | 9 | # Generate documentation |
|---|
| … | … | |
| 11 | 11 | # Delete unneeded files created by build process |
|---|
| 12 | 12 | |
|---|
| 13 | | LIB_TARGET=dtango-gc-stub.lib |
|---|
| 14 | | LIB_MASK=dtango-gc-stub*.lib |
|---|
| | 13 | LIB_TARGET=tango-gc-stub.lib |
|---|
| | 14 | LIB_MASK=tango-gc-stub*.lib |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | CP=xcopy /y |
|---|
| r2860 |
r2941 |
|
| 114 | 114 | |
|---|
| 115 | 115 | # Since Tango 0.99.3 |
|---|
| 116 | | if [ -e "$PREFIX/lib/libdtango-base-dmd.a" ] |
|---|
| 117 | | then |
|---|
| 118 | | rm -f $PREFIX/lib/libdtango-base-dmd.a |
|---|
| 119 | | fi |
|---|
| 120 | | |
|---|
| 121 | | if [ -e "$PREFIX/lib/libdtango-user-tango.a" ] |
|---|
| 122 | | then |
|---|
| 123 | | rm -f $PREFIX/lib/libdtango-user-tango.a |
|---|
| | 116 | if [ -e "$PREFIX/lib/libtango-base-dmd.a" ] |
|---|
| | 117 | then |
|---|
| | 118 | rm -f $PREFIX/lib/libtango-base-dmd.a |
|---|
| | 119 | fi |
|---|
| | 120 | |
|---|
| | 121 | if [ -e "$PREFIX/lib/libtango-user-tango.a" ] |
|---|
| | 122 | then |
|---|
| | 123 | rm -f $PREFIX/lib/libtango-user-tango.a |
|---|
| 124 | 124 | fi |
|---|
| 125 | 125 | |
|---|
| … | … | |
| 129 | 129 | |
|---|
| 130 | 130 | # Verify that runtime was built |
|---|
| 131 | | if [ ! -e libdtango-base-dmd.a ] |
|---|
| | 131 | if [ ! -e libtango-base-dmd.a ] |
|---|
| 132 | 132 | then |
|---|
| 133 | 133 | die "You must run build-dmd.sh before running install-dmd.sh" 4 |
|---|
| … | … | |
| 144 | 144 | cat > $PREFIX/bin/dmd.conf <<EOF |
|---|
| 145 | 145 | [Environment] |
|---|
| 146 | | DFLAGS=-I$PREFIX/include/d -defaultlib=dtango-base-dmd -debuglib=dtango-base-dmd -version=Tango -version=Posix -L-L"%@P%/../lib" |
|---|
| | 146 | DFLAGS=-I$PREFIX/include/d -defaultlib=tango-base-dmd -debuglib=tango-base-dmd -version=Tango -version=Posix -L-L"%@P%/../lib" |
|---|
| 147 | 147 | EOF |
|---|
| 148 | 148 | } |
|---|
| … | … | |
| 153 | 153 | mkdir -p $PREFIX/lib/ || die "Failed to create $PREFIX/lib (maybe you need root privileges?)" 5 |
|---|
| 154 | 154 | mkdir -p $PREFIX/bin/ || die "Failed to create $PREFIX/bin" 5 |
|---|
| 155 | | cp -pRvf libdtango-base-dmd.a $PREFIX/lib/ || die "Failed to copy libraries" 7 |
|---|
| | 155 | cp -pRvf libtango-base-dmd.a $PREFIX/lib/ || die "Failed to copy libraries" 7 |
|---|
| 156 | 156 | cp -pRvf ../object.di $PREFIX/include/d/object.di || die "Failed to copy source" 8 |
|---|
| 157 | 157 | if [ ! -e "$PREFIX/bin/dmd.conf" ] |
|---|
| … | … | |
| 168 | 168 | then |
|---|
| 169 | 169 | echo 'Appending -defaultlib switch to DFLAGS' |
|---|
| 170 | | sed -i.bak -e 's/^DFLAGS=.*$/& -defaultlib=dtango-base-dmd -debuglib=dtango-base-dmd/' $PREFIX/bin/dmd.conf |
|---|
| | 170 | sed -i.bak -e 's/^DFLAGS=.*$/& -defaultlib=tango-base-dmd -debuglib=tango-base-dmd/' $PREFIX/bin/dmd.conf |
|---|
| 171 | 171 | else |
|---|
| 172 | 172 | echo 'Found Tango enabled dmd.conf, assume it is working and leave it as is' |
|---|
| … | … | |
| 183 | 183 | die "object.di not properly installed to $PREFIX/include/d" 9 |
|---|
| 184 | 184 | fi |
|---|
| 185 | | if [ ! -e "$PREFIX/lib/libdtango-base-dmd.a" ] |
|---|
| 186 | | then |
|---|
| 187 | | die "libdtango-base-dmd.a not properly installed to $PREFIX/lib" 10 |
|---|
| | 185 | if [ ! -e "$PREFIX/lib/libtango-base-dmd.a" ] |
|---|
| | 186 | then |
|---|
| | 187 | die "libtango-base-dmd.a not properly installed to $PREFIX/lib" 10 |
|---|
| 188 | 188 | fi |
|---|
| 189 | 189 | if [ ! -e "$PREFIX/bin/dmd.conf" ] |
|---|
| r2810 |
r2941 |
|
| 55 | 55 | alias void function(Args) SlotFn; /// |
|---|
| 56 | 56 | |
|---|
| | 57 | alias opCall call; /// Alias to simplify chained calling. |
|---|
| | 58 | |
|---|
| 57 | 59 | |
|---|
| 58 | 60 | /** |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic