Skip to content

Commit f97f1a0

Browse files
committed
Build curl from curl.se done
1 parent be7124c commit f97f1a0

File tree

4 files changed

+36
-32
lines changed

4 files changed

+36
-32
lines changed

1k/build1.ps1

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ if(!(Test-Path $install_dir -PathType Container)) {
9393
}
9494
if ($cb_tool -eq 'cmake') {
9595
$CONFIG_ALL_OPTIONS += "-DCMAKE_INSTALL_PREFIX=$install_dir"
96-
Write-Output ("CONFIG_ALL_OPTIONS=$CONFIG_ALL_OPTIONS, Count={0}" -f $CONFIG_ALL_OPTIONS.Count)
9796
$CMAKE_PATCH="${BUILDWARE_ROOT}\src\${LIB_NAME}\CMakeLists.txt"
9897
if(Test-Path $CMAKE_PATCH -PathType Leaf) {
9998
Copy-Item $CMAKE_PATCH .\CMakeLists.txt
@@ -102,11 +101,9 @@ if ($cb_tool -eq 'cmake') {
102101
$openssl_dir="${BUILDWARE_ROOT}\${INSTALL_ROOT}\openssl\"
103102
$CONFIG_ALL_OPTIONS += "-DOPENSSL_INCLUDE_DIR=${openssl_dir}\include"
104103
$CONFIG_ALL_OPTIONS += "-DOPENSSL_LIB_DIR=${openssl_dir}\lib"
105-
cmake -S . -B build_$BUILD_ARCH $CONFIG_ALL_OPTIONS
106-
}
107-
else {
108-
cmake -S . -B build_$BUILD_ARCH $CONFIG_ALL_OPTIONS
109104
}
105+
106+
cmake -S . -B build_$BUILD_ARCH $CONFIG_ALL_OPTIONS
110107
cmake --build build_$BUILD_ARCH --config Release
111108
cmake --install build_$BUILD_ARCH
112109
}
@@ -127,6 +124,11 @@ else { # regard a buildscript .bat provide by the library
127124

128125
Set-Location ..\..\
129126

127+
$install_script = "src\${LIB_NAME}\install1.ps1"
128+
if(Test-Path $install_script -PathType Leaf) {
129+
Invoke-Expression -Command "$install_script $install_dir ${BUILDWARE_ROOT}\buildsrc\${LIB_SRC}"
130+
}
131+
130132
$clean_script = "src\${LIB_NAME}\clean1.ps1"
131133
if(Test-Path $clean_script -PathType Leaf) {
132134
Invoke-Expression -Command "$clean_script $install_dir"

1k/build1.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,16 @@ mkdir -p $install_dir
156156

157157
if [ "$cb_tool" = "cmake" ] ; then
158158
CONFIG_ALL_OPTIONS="$CONFIG_TARGET $CONFIG_OPTIONS -DCMAKE_INSTALL_PREFIX=$install_dir"
159-
echo CONFIG_ALL_OPTIONS="$CONFIG_ALL_OPTIONS"
160159
CMAKE_PATCH="${BUILDWARE_ROOT}/src/${LIB_NAME}/CMakeLists.txt"
161160
if [ -f "${CMAKE_PATCH}" ] ; then
162161
cp -f ${CMAKE_PATCH} ./
163162
fi
164163
if [ "$LIB_NAME" = "curl" ]; then
165164
openssl_dir="${BUILDWARE_ROOT}/${INSTALL_ROOT}/openssl/"
166-
cmake -S . -B build_$BUILD_ARCH $CONFIG_ALL_OPTIONS -DOPENSSL_INCLUDE_DIR=${openssl_dir}include -DOPENSSL_LIB_DIR=${openssl_dir}lib
167-
else
168-
cmake -S . -B build_$BUILD_ARCH $CONFIG_ALL_OPTIONS
165+
CONFIG_ALL_OPTIONS="$CONFIG_ALL_OPTIONS -DOPENSSL_INCLUDE_DIR=${openssl_dir}include -DOPENSSL_LIB_DIR=${openssl_dir}lib"
169166
fi
167+
echo CONFIG_ALL_OPTIONS="$CONFIG_ALL_OPTIONS"
168+
cmake -S . -B build_$BUILD_ARCH $CONFIG_ALL_OPTIONS
170169
cmake --build build_$BUILD_ARCH --config Release
171170
cmake --install build_$BUILD_ARCH
172171
else

src/luajit/clean1.ps1

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
11
$install_dir = $args[0]
2-
$buildsrc_dir = $args[1]
32

4-
if ((Test-Path $install_dir -PathType Container)) {
5-
# copy prebuilt luajit manually
6-
mkdir "$install_dir\include"
7-
mkdir "$install_dir\lib"
8-
mkdir "$install_dir\bin"
9-
mkdir "$install_dir\bin\jit"
10-
11-
Copy-Item "$buildsrc_dir\src\lua51.lib" "$install_dir\lib\lua51.lib"
12-
Copy-Item "$buildsrc_dir\src\lua51.dll" "$install_dir\bin\lua51.dll"
13-
Copy-Item "$buildsrc_dir\src\luajit.exe" "$install_dir\bin\luajit.exe"
14-
Copy-Item -Path "$buildsrc_dir\src\jit\*.lua" -Destination "$install_dir\bin\jit" -Recurse
15-
16-
Copy-Item "$buildsrc_dir\src\lauxlib.h" "$install_dir\include\lauxlib.h"
17-
Copy-Item "$buildsrc_dir\src\lua.h" "$install_dir\include\lua.h"
18-
Copy-Item "$buildsrc_dir\src\lua.hpp" "$install_dir\include\lua.hpp"
19-
Copy-Item "$buildsrc_dir\src\luaconf.h" "$install_dir\include\luaconf.h"
20-
Copy-Item "$buildsrc_dir\src\luajit.h" "$install_dir\include\luajit.h"
21-
Copy-Item "$buildsrc_dir\src\lualib.h" "$install_dir\include\lualib.h"
22-
23-
echo "[windows] list ${install_dir}..."
24-
ls -R "$install_dir"
25-
}
3+
Write-Output "Nothing to clean for $install_dir"

src/luajit/install1.ps1

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
$install_dir = $args[0]
2+
$buildsrc_dir = $args[1]
3+
4+
if ((Test-Path $install_dir -PathType Container)) {
5+
# copy prebuilt luajit manually
6+
mkdir "$install_dir\include"
7+
mkdir "$install_dir\lib"
8+
mkdir "$install_dir\bin"
9+
mkdir "$install_dir\bin\jit"
10+
11+
Copy-Item "$buildsrc_dir\src\lua51.lib" "$install_dir\lib\lua51.lib"
12+
Copy-Item "$buildsrc_dir\src\lua51.dll" "$install_dir\bin\lua51.dll"
13+
Copy-Item "$buildsrc_dir\src\luajit.exe" "$install_dir\bin\luajit.exe"
14+
Copy-Item -Path "$buildsrc_dir\src\jit\*.lua" -Destination "$install_dir\bin\jit" -Recurse
15+
16+
Copy-Item "$buildsrc_dir\src\lauxlib.h" "$install_dir\include\lauxlib.h"
17+
Copy-Item "$buildsrc_dir\src\lua.h" "$install_dir\include\lua.h"
18+
Copy-Item "$buildsrc_dir\src\lua.hpp" "$install_dir\include\lua.hpp"
19+
Copy-Item "$buildsrc_dir\src\luaconf.h" "$install_dir\include\luaconf.h"
20+
Copy-Item "$buildsrc_dir\src\luajit.h" "$install_dir\include\luajit.h"
21+
Copy-Item "$buildsrc_dir\src\lualib.h" "$install_dir\include\lualib.h"
22+
23+
echo "[windows] list ${install_dir}..."
24+
ls -R "$install_dir"
25+
}

0 commit comments

Comments
 (0)