Dynamic Build

This commit is contained in:
2025-07-22 18:24:35 -05:00
parent c356866721
commit 394e5d8484
4 changed files with 34 additions and 7 deletions

View File

@@ -32,6 +32,25 @@ jobs:
passwordSecret: dockersecret
platforms: linux/amd64
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: Build Tar
runInContainer: true
image: onedev.site.tesses.net/dependencies/build:latest
interpreter: !DefaultInterpreter
commands: |
mkdir build2
cd build2
cmake -S .. -B . -DTESSESFRAMEWORK_ENABLE_SHARED=ON -DTESSESFRAMEWORK_ENABLE_STATIC=OFF
make -j12
make install DESTDIR=../crosslang
cd ..
tar cvzf crosslang-x86_64.tar.gz crosslang
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !PublishArtifactStep
name: Publish CrossLang Artifact
artifacts: crosslang-x86_64.tar.gz
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !DependencyFinishedTrigger
projects: tesses-framework

View File

@@ -45,6 +45,14 @@ if(CROSSLANG_FETCHCONTENT)
set(TESSESFRAMEWORK_ENABLE_EXAMPLES OFF)
set(TESSESFRAMEWORK_ENABLE_APPS OFF)
if(NOT TESSESFRAMEWORK_ENABLE_SHARED)
set(CROSSLANG_ENABLE_SHARED OFF)
endif()
if(NOT TESSESFRAMEWORK_ENABLE_STATIC)
set(CROSSLANG_ENABLE_STATIC OFF)
endif()
#set(CROSSLANG_ENABLE_SHARED OFF)
#set(TESSESFRAMEWORK_ENABLE_SHARED OFF)
#set(CROSSLANG_SHARED_EXECUTABLES OFF)
@@ -188,9 +196,6 @@ CROSSLANG_LINK_DEPS(crosslang_static)
if(CROSSLANG_FETCHCONTENT)
target_link_libraries(crosslang_static PUBLIC tessesframework)
if(TESSESFRAMEWORK_FETCHCONTENT AND TESSESFRAMEWORK_ENABLE_SDL2)
sdl2_fix(crosslang_static)
endif()
else()
target_link_libraries(crosslang_static PUBLIC TessesFramework::tessesframework)
endif()
@@ -204,9 +209,6 @@ add_library(crosslang_shared SHARED ${CROSSLANG_SOURCE})
CROSSLANG_LINK_DEPS(crosslang_shared)
if(CROSSLANG_FETCHCONTENT)
target_link_libraries(crosslang_shared PUBLIC tessesframework_shared)
if(TESSESFRAMEWORK_FETCHCONTENT AND TESSESFRAMEWORK_ENABLE_SDL2)
sdl2_fix(crosslang_shared)
endif()
else()
target_link_libraries(crosslang_shared PUBLIC TessesFramework::tessesframework_shared)
endif()

View File

@@ -48,6 +48,13 @@ make
sudo make install
```
## Build with shared libs only (no dependencies other than cmake and build-essentials)
```bash
cmake -S ../.. -B . -DTESSESFRAMEWORK_ENABLE_STATIC=OFF -DTESSESFRAMEWORK_ENABLE_SHARED=ON -DTESSESFRAMEWORK_FETCHCONTENT=ON
make -j`nproc`
sudo make install
```
## Run these commands to install crosslang (without plugin support)
Or use binaries from [here](https://crosslang.tesseslanguage.com/download/)

View File

@@ -1419,7 +1419,6 @@ namespace Tesses::CrossLang
RegisterOGC(gc, env);
RegisterProcess(gc,env);
RegisterClass(gc,env);
RegisterSDL2(gc,env);
gc->RegisterEverything(env);