mirror of https://gitlab.com/basile.b/dexed.git
fix the CI
This commit is contained in:
parent
3a9e270909
commit
760f2952a9
|
@ -21,14 +21,13 @@ release:
|
||||||
GIT_SUBMODULE_STRATEGY: normal
|
GIT_SUBMODULE_STRATEGY: normal
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -y
|
- apt-get update -y
|
||||||
- apt-get install -y dpkg
|
|
||||||
- apt-get install -y rpm
|
- apt-get install -y rpm
|
||||||
- apt-get install -y git
|
- apt-get install -y git
|
||||||
- apt-get install -y zip
|
- apt-get install -y zip
|
||||||
- apt-get install -y libcurl4-openssl-dev
|
- apt-get install -y libcurl4-openssl-dev
|
||||||
- curl -JLO https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.6/fpc-laz_3.0.4-1_amd64.deb/download && apt install -y ./fpc-laz_3.0.4-1_amd64.deb
|
- curl -JLO https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.8/fpc-laz_3.0.4-1_amd64.deb/download && apt install -y ./fpc-laz_3.0.4-1_amd64.deb
|
||||||
- curl -JLO https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.6/fpc-src_3.0.4-2_amd64.deb/download && apt install -y ./fpc-src_3.0.4-2_amd64.deb
|
- curl -JLO https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.8/fpc-src_3.0.4-2_amd64.deb/download && apt install -y ./fpc-src_3.0.4-2_amd64.deb
|
||||||
- curl -JLO https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.6/lazarus-project_2.0.6-0_amd64.deb/download && apt install -y ./lazarus-project_2.0.6-0_amd64.deb
|
- curl -JLO https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.8/lazarus-project_2.0.8-0_amd64.deb/download && apt install -y ./lazarus-project_2.0.8-0_amd64.deb
|
||||||
script:
|
script:
|
||||||
- bash setup/build-release.sh
|
- bash setup/build-release.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
|
@ -9,5 +9,8 @@
|
||||||
"iz" : {
|
"iz" : {
|
||||||
"path" : "../etc/iz"
|
"path" : "../etc/iz"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
"dflags" : [
|
||||||
|
"-link-defaultlib-shared=false"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
|
@ -434,6 +434,9 @@
|
||||||
<Debugging>
|
<Debugging>
|
||||||
<UseHeaptrc Value="True"/>
|
<UseHeaptrc Value="True"/>
|
||||||
</Debugging>
|
</Debugging>
|
||||||
|
<Options>
|
||||||
|
<LinkerOptions Value="-L..\bin --verbose"/>
|
||||||
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
<CompilerMessages>
|
<CompilerMessages>
|
||||||
|
@ -485,6 +488,7 @@
|
||||||
<UseHeaptrc Value="True"/>
|
<UseHeaptrc Value="True"/>
|
||||||
</Debugging>
|
</Debugging>
|
||||||
<Options>
|
<Options>
|
||||||
|
<LinkerOptions Value="-L..\bin --verbose"/>
|
||||||
<Win32>
|
<Win32>
|
||||||
<GraphicApplication Value="True"/>
|
<GraphicApplication Value="True"/>
|
||||||
</Win32>
|
</Win32>
|
||||||
|
@ -887,6 +891,7 @@
|
||||||
</Debugging>
|
</Debugging>
|
||||||
<LinkSmart Value="True"/>
|
<LinkSmart Value="True"/>
|
||||||
<Options>
|
<Options>
|
||||||
|
<LinkerOptions Value="-L..\bin --verbose"/>
|
||||||
<Win32>
|
<Win32>
|
||||||
<GraphicApplication Value="True"/>
|
<GraphicApplication Value="True"/>
|
||||||
</Win32>
|
</Win32>
|
||||||
|
|
|
@ -12,14 +12,22 @@ echo "building dexed release" $ver
|
||||||
if [ ! -d "./bin" ]; then
|
if [ ! -d "./bin" ]; then
|
||||||
mkdir "./bin"
|
mkdir "./bin"
|
||||||
fi
|
fi
|
||||||
LDC_SHARED10=$(find "/dlang/" -iname "libdruntime-ldc-shared.so.*" 2>/dev/null | grep -m 1 "lib/libdruntime-ldc-shared")
|
DEXED_BIN_PATH=$(readlink --canonicalize "./bin")
|
||||||
LDC_SHARED11=$(find "/dlang/" -iname "libdruntime-ldc-shared.so" 2>/dev/null | grep -m 1 "lib/libdruntime-ldc-shared")
|
SEARCH_PATH_LDC=$(find "/" -iname "libdruntime-ldc.a" 2>/dev/null | grep -m 1 "libdruntime")
|
||||||
LDC_SHARED20=$(find "/dlang/" -iname "libphobos2-ldc-shared.so.*" 2>/dev/null | grep -m 1 "lib/libphobos2-ldc-shared")
|
SEARCH_PATH_LDC=$(dirname $SEARCH_PATH_LDC)
|
||||||
LDC_SHARED21=$(find "/dlang/" -iname "libphobos2-ldc-shared.so" 2>/dev/null | grep -m 1 "lib/libphobos2-ldc-shared")
|
export LIBRARY_PATH="$LIBRARY_PATH":"$SEARCH_PATH_LDC":"$DEXED_BIN_PATH"
|
||||||
cp "$LDC_SHARED10" "./bin"
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$SEARCH_PATH_LDC":"$DEXED_BIN_PATH"
|
||||||
cp "$LDC_SHARED11" "./bin"
|
|
||||||
cp "$LDC_SHARED20" "./bin"
|
# libdexed-d
|
||||||
cp "$LDC_SHARED21" "./bin"
|
cd dexed-d
|
||||||
|
dub build --build=release --compiler=ldc2
|
||||||
|
if [ ! -f "../bin/libdexed-d.so" ]; then
|
||||||
|
echo "this explains linking issues..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
cp "../bin/libdexed-d.so" "/lib64/libdexed-d.so"
|
||||||
|
cp "../bin/libdexed-d.so" "/lib/libdexed-d.so"
|
||||||
|
cd ..
|
||||||
|
|
||||||
# dexed
|
# dexed
|
||||||
echo "building dexed..."
|
echo "building dexed..."
|
||||||
|
@ -69,7 +77,7 @@ echo "moving files and binaries..."
|
||||||
if [ ! -d setup/nux64 ]; then
|
if [ ! -d setup/nux64 ]; then
|
||||||
mkdir setup/nux64
|
mkdir setup/nux64
|
||||||
fi
|
fi
|
||||||
mv bin/dastworx setup/nux64/
|
mv bin/libdexed-d.so setup/nux64/
|
||||||
mv bin/dexed setup/nux64/
|
mv bin/dexed setup/nux64/
|
||||||
mv dcd/bin/dcd-server setup/nux64/
|
mv dcd/bin/dcd-server setup/nux64/
|
||||||
mv dcd/bin/dcd-client setup/nux64/
|
mv dcd/bin/dcd-client setup/nux64/
|
||||||
|
@ -92,7 +100,7 @@ SETUP_APP_NAME="dexed.$ver.linux64.setup"
|
||||||
echo "building the custom setup program..."
|
echo "building the custom setup program..."
|
||||||
SETUP_DC=$DC
|
SETUP_DC=$DC
|
||||||
if [ "$SETUP_DC" = ldc2 ]; then
|
if [ "$SETUP_DC" = ldc2 ]; then
|
||||||
SETUP_DC=ldmd
|
SETUP_DC=ldmd2
|
||||||
fi
|
fi
|
||||||
$SETUP_DC setup.d -O -release -Jnux64 -J./ -of"output/"$SETUP_APP_NAME
|
$SETUP_DC setup.d -O -release -Jnux64 -J./ -of"output/"$SETUP_APP_NAME
|
||||||
bash zip-nux64.sh
|
bash zip-nux64.sh
|
||||||
|
|
|
@ -17,15 +17,18 @@ cfgdir=$basdir/DEBIAN
|
||||||
bindir=$basdir/usr/bin
|
bindir=$basdir/usr/bin
|
||||||
pixdir=$basdir/usr/share/pixmaps
|
pixdir=$basdir/usr/share/pixmaps
|
||||||
shcdir=$basdir/usr/share/applications
|
shcdir=$basdir/usr/share/applications
|
||||||
|
libdir=$basdir/usr/lib64
|
||||||
|
|
||||||
mkdir -p $basdir
|
mkdir -p $basdir
|
||||||
mkdir -p $cfgdir
|
mkdir -p $cfgdir
|
||||||
mkdir -p $bindir
|
mkdir -p $bindir
|
||||||
mkdir -p $pixdir
|
mkdir -p $pixdir
|
||||||
mkdir -p $shcdir
|
mkdir -p $shcdir
|
||||||
|
mkdir -p $libdir
|
||||||
|
|
||||||
cp nux64/dexed $bindir
|
cp nux64/dexed $bindir
|
||||||
cp nux64/dexed.png $pixdir
|
cp nux64/dexed.png $pixdir
|
||||||
|
cp nux64/libdexed-d.so $libdir
|
||||||
|
|
||||||
echo "[Desktop Entry]
|
echo "[Desktop Entry]
|
||||||
Categories=Application;IDE;Development;
|
Categories=Application;IDE;Development;
|
||||||
|
|
|
@ -37,14 +37,17 @@ buildroot=$HOME/rpmbuild/BUILDROOT/$name_and_ver
|
||||||
bindir=$buildroot/usr/bin
|
bindir=$buildroot/usr/bin
|
||||||
pixdir=$buildroot/usr/share/pixmaps
|
pixdir=$buildroot/usr/share/pixmaps
|
||||||
shcdir=$buildroot/usr/share/applications
|
shcdir=$buildroot/usr/share/applications
|
||||||
|
libdir=$buildroot/usr/lib64
|
||||||
|
|
||||||
mkdir -p $buildroot
|
mkdir -p $buildroot
|
||||||
mkdir -p $bindir
|
mkdir -p $bindir
|
||||||
mkdir -p $pixdir
|
mkdir -p $pixdir
|
||||||
mkdir -p $shcdir
|
mkdir -p $shcdir
|
||||||
|
mkdir -p $libdir
|
||||||
|
|
||||||
cp nux64/dexed $bindir
|
cp nux64/dexed $bindir
|
||||||
cp nux64/dexed.png $pixdir
|
cp nux64/dexed.png $pixdir
|
||||||
|
cp nux64/libdexed-d.so $libdir
|
||||||
|
|
||||||
echo "[Desktop Entry]
|
echo "[Desktop Entry]
|
||||||
Categories=Application;IDE;Development;
|
Categories=Application;IDE;Development;
|
||||||
|
@ -71,6 +74,7 @@ Dexed is an IDE for the DMD D compiler.
|
||||||
|
|
||||||
%files
|
%files
|
||||||
/usr/bin/dexed
|
/usr/bin/dexed
|
||||||
|
/usr/lib64/libdexed-d.so
|
||||||
/usr/share/applications/dexed.desktop
|
/usr/share/applications/dexed.desktop
|
||||||
/usr/share/pixmaps/dexed.png
|
/usr/share/pixmaps/dexed.png
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,14 @@ version(X86) version(Windows)version = win32;
|
||||||
version(Windows)
|
version(Windows)
|
||||||
{
|
{
|
||||||
enum exeExt = ".exe";
|
enum exeExt = ".exe";
|
||||||
|
enum libExt = ".dll";
|
||||||
pragma(lib, "ole32.lib");
|
pragma(lib, "ole32.lib");
|
||||||
}
|
}
|
||||||
else enum exeExt = "";
|
else
|
||||||
|
{
|
||||||
|
enum exeExt = "";
|
||||||
|
enum libExt = ".so";
|
||||||
|
}
|
||||||
|
|
||||||
alias ImpType = immutable ubyte[];
|
alias ImpType = immutable ubyte[];
|
||||||
alias ResType = immutable Resource;
|
alias ResType = immutable Resource;
|
||||||
|
@ -36,6 +41,7 @@ struct Resource
|
||||||
immutable Resource[] ceResources =
|
immutable Resource[] ceResources =
|
||||||
[
|
[
|
||||||
Resource(cast(ImpType) import("dexed" ~ exeExt), "dexed" ~ exeExt, Kind.exe),
|
Resource(cast(ImpType) import("dexed" ~ exeExt), "dexed" ~ exeExt, Kind.exe),
|
||||||
|
Resource(cast(ImpType) import("libdexed-d" ~ libExt), "libdexed-d" ~ libExt, Kind.exe),
|
||||||
Resource(cast(ImpType) import("dexed.ico"), "dexed.ico", Kind.dat),
|
Resource(cast(ImpType) import("dexed.ico"), "dexed.ico", Kind.dat),
|
||||||
Resource(cast(ImpType) import("dexed.png"), "dexed.png", Kind.dat),
|
Resource(cast(ImpType) import("dexed.png"), "dexed.png", Kind.dat),
|
||||||
Resource(cast(ImpType) import("dexed.license.txt"), "dexed.license.txt", Kind.doc)
|
Resource(cast(ImpType) import("dexed.license.txt"), "dexed.license.txt", Kind.doc)
|
||||||
|
@ -428,7 +434,7 @@ void postInstall()
|
||||||
f.writeln("[Desktop Entry]");
|
f.writeln("[Desktop Entry]");
|
||||||
f.writeln("Name=dexed");
|
f.writeln("Name=dexed");
|
||||||
f.writeln("Path=" ~ exePath);
|
f.writeln("Path=" ~ exePath);
|
||||||
f.writeln("Exec=" ~ exePath ~ "dexed %f");
|
f.writeln("Exec=env LD_LIBRARY_PATH="~ exePath ~ " "~ exePath ~ "dexed %f");
|
||||||
f.writeln("Icon=" ~ datPath ~ "dexed.png");
|
f.writeln("Icon=" ~ datPath ~ "dexed.png");
|
||||||
f.writeln("Type=Application");
|
f.writeln("Type=Application");
|
||||||
f.writeln("Categories=Application;IDE;Development;");
|
f.writeln("Categories=Application;IDE;Development;");
|
||||||
|
|
|
@ -39,11 +39,10 @@ type
|
||||||
// Give a view on D `char[][]`
|
// Give a view on D `char[][]`
|
||||||
TDStrings = specialize TDArray<TDString>;
|
TDStrings = specialize TDArray<TDString>;
|
||||||
|
|
||||||
{$LINKLIB libphobos2-ldc-shared}
|
|
||||||
// Necessary to start the GC, run the static constructors, etc
|
// Necessary to start the GC, run the static constructors, etc
|
||||||
procedure rt_init(); cdecl; external 'libdruntime-ldc-shared';
|
procedure rt_init(); cdecl; external 'libdexed-d';
|
||||||
// Cleanup
|
// Cleanup
|
||||||
procedure rt_term(); cdecl; external 'libdruntime-ldc-shared';
|
procedure rt_term(); cdecl; external 'libdexed-d';
|
||||||
// Demangle a line possibly containing a D mangled name.
|
// Demangle a line possibly containing a D mangled name.
|
||||||
function ddemangle(const text: PChar): PChar; cdecl; external 'libdexed-d';
|
function ddemangle(const text: PChar): PChar; cdecl; external 'libdexed-d';
|
||||||
// Detects wether the source code for the module `src` contains the main() function.
|
// Detects wether the source code for the module `src` contains the main() function.
|
||||||
|
|
Loading…
Reference in New Issue