-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jerily/import-js-components
Import js components
- Loading branch information
Showing
32 changed files
with
1,666 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Linux (with Tcl 9.0) | ||
on: [push] | ||
permissions: | ||
contents: read | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 7 | ||
steps: | ||
|
||
- name: Checkout Tcl | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: tcltk/tcl | ||
ref: core-9-0-b3-rc | ||
path: tcl | ||
- name: Configure Tcl | ||
working-directory: tcl/unix | ||
run: | | ||
./configure --prefix=$HOME/tcl_install || { | ||
cat config.log | ||
echo "::error::Failure during Configure Tcl" | ||
exit 1 | ||
} | ||
- name: Build Tcl | ||
working-directory: tcl/unix | ||
run: | | ||
make -j || { | ||
echo "::error::Failure during Build Tcl" | ||
exit 1 | ||
} | ||
- name: Install Tcl | ||
working-directory: tcl/unix | ||
run: | | ||
make install || { | ||
echo "::error::Failure during Install Tcl" | ||
exit 1 | ||
} | ||
- name: Build tdom | ||
shell: bash | ||
run: | | ||
curl -L -O http://tdom.org/downloads/tdom-0.9.4-src.tar.gz | ||
tar -xzvf tdom-0.9.4-src.tar.gz | ||
cd tdom-0.9.4-src/unix | ||
../configure --with-tcl=$HOME/tcl_install/lib --prefix=$HOME/tcl_install || { | ||
cat config.log | ||
echo "::error::Failure during Configure tdom" | ||
exit 1 | ||
} | ||
make -j || { | ||
echo "::error::Failure during Build tdom" | ||
exit 1 | ||
} | ||
make install || { | ||
echo "::error::Failure during Install tdom" | ||
exit 1 | ||
} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Configure | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/thtml_install -DCMAKE_PREFIX_PATH=$HOME/thtml_install -DTCL_INCLUDE_DIR=$HOME/tcl_install/include -DTCL_LIBRARY_DIR=$HOME/tcl_install/lib | ||
- name: Build | ||
working-directory: build | ||
run: | | ||
make -j || { | ||
echo "::error::Failure during Build" | ||
exit 1 | ||
} | ||
- name: Run Tests | ||
working-directory: build | ||
run: | | ||
PATH="$HOME/tcl_install/bin:$PATH" LD_LIBRARY_PATH="$HOME/tcl_install/lib" make test || { | ||
echo "::error::Failure during Test" | ||
exit 1 | ||
} | ||
- name: Test-Drive Installation | ||
working-directory: build | ||
run: | | ||
make install || { | ||
echo "::error::Failure during Install" | ||
exit 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package require thtml | ||
|
||
if { [llength $argv] != 3 } { | ||
puts "Usage: [file tail [info script]] <targetlang> <rootdir> <dir>" | ||
exit 1 | ||
} | ||
|
||
set target_lang [lindex $argv 0] | ||
|
||
if { $target_lang ni {c tcl}} { | ||
puts "Invalid target language: must be either 'c' or 'tcl'" | ||
exit 1 | ||
} | ||
|
||
set rootdir [lindex $argv 1] | ||
set dir [lindex $argv 2] | ||
|
||
::thtml::init [dict create build 1 cache 1 rootdir $rootdir target_lang $target_lang debug 1] | ||
set cachedir [::thtml::get_cachedir] | ||
file delete -force $cachedir | ||
file mkdir $cachedir | ||
|
||
puts [::thtml::build::compiledir $dir $target_lang] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.